Class RMContainerCacheManager

java.lang.Object
org.alfresco.module.org_alfresco_module_rm.util.RMContainerCacheManager
All Implemented Interfaces:
RecordsManagementCustomModel, RecordsManagementModel

public class RMContainerCacheManager extends Object implements RecordsManagementModel
Provides operations to manipulate the records management root cache
Author:
Tiago Salvado
See Also:
  • Constructor Details

    • RMContainerCacheManager

      public RMContainerCacheManager()
  • Method Details

    • setNodeService

      public void setNodeService(NodeService nodeService)
      Parameters:
      nodeService - node service
    • setCache

      public void setCache(SimpleCache<Pair<StoreRef,String>,Set<NodeRef>> cache)
      Parameters:
      cache -
    • isCached

      public boolean isCached(StoreRef storeRef)
      Verifies if there is cached nodes for supplied storeRef
      Parameters:
      storeRef -
      Returns:
      true if there are cached nodes, false otherwise
    • get

      public Set<NodeRef> get(StoreRef storeRef)
      Obtains the cached nodes for supplied storeRef
      Parameters:
      storeRef -
      Returns:
      a set containing the cached nodes
    • add

      public void add(NodeRef nodeRef)
      Caches the supplied node
      Parameters:
      nodeRef -
    • remove

      public void remove(NodeRef nodeRef)
      Removes the supplied entry from the cache
      Parameters:
      nodeRef -
    • reset

      public void reset()
      Resets the cache entries