Package org.alfresco.repo.webdav
Class MTNodesCache2
- java.lang.Object
-
- org.alfresco.repo.webdav.MTNodesCache2
-
public class MTNodesCache2 extends java.lang.ObjectIn-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 Summary
Constructors Constructor Description MTNodesCache2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEnabled()org.alfresco.service.namespace.NamespaceServicegetNamespaceService()org.alfresco.service.cmr.repository.NodeRefgetNodeForCurrentTenant()Returns nodeRef for current user tenantorg.alfresco.service.cmr.repository.NodeServicegetNodeService()java.lang.StringgetRootPath()org.alfresco.service.cmr.search.SearchServicegetSearchService()java.lang.StringgetStoreName()org.alfresco.repo.tenant.TenantServicegetTenantService()voidinit()Spring bean init methodvoidonBootstrap()voidsetEnabled(boolean enabled)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetRootPath(java.lang.String rootPath)voidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)voidsetStoreName(java.lang.String storeName)voidsetTenantService(org.alfresco.repo.tenant.TenantService tenantService)
-
-
-
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)
-
-