Class RMContainerCacheManager

    • Constructor Detail

      • RMContainerCacheManager

        public RMContainerCacheManager()
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - node service
      • setCache

        public void setCache​(org.alfresco.repo.cache.SimpleCache<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.StoreRef,​String>,​Set<org.alfresco.service.cmr.repository.NodeRef>> cache)
        Parameters:
        cache -
      • isCached

        public boolean isCached​(org.alfresco.service.cmr.repository.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<org.alfresco.service.cmr.repository.NodeRef> get​(org.alfresco.service.cmr.repository.StoreRef storeRef)
        Obtains the cached nodes for supplied storeRef
        Parameters:
        storeRef -
        Returns:
        a set containing the cached nodes
      • add

        public void add​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Caches the supplied node
        Parameters:
        nodeRef -
      • remove

        public void remove​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Removes the supplied entry from the cache
        Parameters:
        nodeRef -
      • reset

        public void reset()
        Resets the cache entries