Package org.alfresco.repo.site
Class DocLibNodeLocator
- java.lang.Object
-
- org.alfresco.repo.nodelocator.AbstractNodeLocator
-
- org.alfresco.repo.site.DocLibNodeLocator
-
- All Implemented Interfaces:
NodeLocator
public class DocLibNodeLocator extends AbstractNodeLocator
ThisNodeLocatoridentifies the site in which the source node resides and returns the Document Library container for that site. If no site can be found or the site does not have a Document Library then the Company Home is returned.- Since:
- 4.0
- Author:
- Nick Smith
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description DocLibNodeLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()org.alfresco.service.cmr.repository.NodeRefgetNode(org.alfresco.service.cmr.repository.NodeRef source, java.util.Map<java.lang.String,java.io.Serializable> params)Finds the site in which the sourceNodeRefresides and returns the Document Library container for that site.voidsetRepositoryHelper(Repository repositoryHelper)voidsetSiteService(SiteService siteService)-
Methods inherited from class org.alfresco.repo.nodelocator.AbstractNodeLocator
getParameterDefinitions, setNodeLocatorService
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNode
public org.alfresco.service.cmr.repository.NodeRef getNode(org.alfresco.service.cmr.repository.NodeRef source, java.util.Map<java.lang.String,java.io.Serializable> params)Finds the site in which the sourceNodeRefresides and returns the Document Library container for that site. If no site can be found or the site does not have a Document Library then the Company Home is returned.- Parameters:
source- the starting point for locating the site Document Library.params- Not used.- Returns:
- the Document Library or the Company Home.
-
getName
public java.lang.String getName()
- Specified by:
getNamein classAbstractNodeLocator
-
setSiteService
public void setSiteService(SiteService siteService)
- Parameters:
siteService- the siteService to set
-
setRepositoryHelper
public void setRepositoryHelper(Repository repositoryHelper)
- Parameters:
repositoryHelper- the repositoryHelper to set
-
-