Class MTNodesCache2


  • public class MTNodesCache2
    extends java.lang.Object
    In-memory cache that stores nodeRefs per tenant. It is initialized using path to node and allows to retrieve nodeRef for current tenant.
    Author:
    Stas Sokolovsky, Mark Rogers
    • Constructor Detail

      • MTNodesCache2

        public MTNodesCache2()
    • Method Detail

      • init

        public void init()
        Spring bean init method
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • getNodeService

        public org.alfresco.service.cmr.repository.NodeService getNodeService()
      • getNodeForCurrentTenant

        public org.alfresco.service.cmr.repository.NodeRef getNodeForCurrentTenant()
        Returns nodeRef for current user tenant
        Returns:
        nodeRef Node Reference
      • onBootstrap

        public void onBootstrap()
      • getStoreName

        public java.lang.String getStoreName()
        Returns:
        Returns the name of the store
      • setStoreName

        public void setStoreName​(java.lang.String storeName)
      • getRootPath

        public java.lang.String getRootPath()
        Returns:
        Returns the WebDAV root path within the store
      • setRootPath

        public void setRootPath​(java.lang.String rootPath)
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)
      • getSearchService

        public org.alfresco.service.cmr.search.SearchService getSearchService()
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • getNamespaceService

        public org.alfresco.service.namespace.NamespaceService getNamespaceService()
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
      • getTenantService

        public org.alfresco.repo.tenant.TenantService getTenantService()
      • getEnabled

        public boolean getEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)