org.alfresco.repo.webdav
Class MTNodesCache2

java.lang.Object
  extended by org.alfresco.repo.webdav.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.


Constructor Summary
MTNodesCache2()
           
 
Method Summary
 boolean getEnabled()
           
 org.alfresco.service.namespace.NamespaceService getNamespaceService()
           
 org.alfresco.service.cmr.repository.NodeRef getNodeForCurrentTenant()
          Returns nodeRef for current user tenant
 org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 java.lang.String getRootPath()
           
 org.alfresco.service.cmr.search.SearchService getSearchService()
           
 java.lang.String getStoreName()
           
 org.alfresco.repo.tenant.TenantService getTenantService()
           
 void init()
           
 void onBootstrap()
           
 void setEnabled(boolean enabled)
           
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setRootPath(java.lang.String rootPath)
           
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
           
 void setStoreName(java.lang.String storeName)
           
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTNodesCache2

public MTNodesCache2()
Method Detail

init

public void init()

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
Throws:
ServletException - if the store name was not set

setStoreName

public void setStoreName(java.lang.String storeName)

getRootPath

public java.lang.String getRootPath()
Returns:
Returns the WebDAV root path within the store
Throws:
ServletException - if the root path was not set

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)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.