Package org.alfresco.repo.webdav
Class MTNodesCache2
- java.lang.Object
-
- org.alfresco.repo.webdav.MTNodesCache2
-
public class MTNodesCache2 extends 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 Summary
Constructors Constructor Description MTNodesCache2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEnabled()NamespaceServicegetNamespaceService()NodeRefgetNodeForCurrentTenant()Returns nodeRef for current user tenantNodeServicegetNodeService()StringgetRootPath()SearchServicegetSearchService()StringgetStoreName()TenantServicegetTenantService()voidinit()Spring bean init methodvoidonBootstrap()voidsetEnabled(boolean enabled)voidsetNamespaceService(NamespaceService namespaceService)voidsetNodeService(NodeService nodeService)voidsetRootPath(String rootPath)voidsetSearchService(SearchService searchService)voidsetStoreName(String storeName)voidsetTenantService(TenantService tenantService)
-
-
-
Method Detail
-
init
public void init()
Spring bean init method
-
setNodeService
public void setNodeService(NodeService nodeService)
-
getNodeService
public NodeService getNodeService()
-
getNodeForCurrentTenant
public NodeRef getNodeForCurrentTenant()
Returns nodeRef for current user tenant- Returns:
- nodeRef Node Reference
-
onBootstrap
public void onBootstrap()
-
getStoreName
public String getStoreName()
- Returns:
- Returns the name of the store
-
setStoreName
public void setStoreName(String storeName)
-
getRootPath
public String getRootPath()
- Returns:
- Returns the WebDAV root path within the store
-
setRootPath
public void setRootPath(String rootPath)
-
setSearchService
public void setSearchService(SearchService searchService)
-
getSearchService
public SearchService getSearchService()
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
-
getNamespaceService
public NamespaceService getNamespaceService()
-
setTenantService
public void setTenantService(TenantService tenantService)
-
getTenantService
public TenantService getTenantService()
-
getEnabled
public boolean getEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-