Package org.alfresco.repo.site
Class DocLibNodeLocator
java.lang.Object
org.alfresco.repo.nodelocator.AbstractNodeLocator
org.alfresco.repo.site.DocLibNodeLocator
- All Implemented Interfaces:
NodeLocator
This
NodeLocator identifies 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getNode(NodeRef source, Map<String, 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 Details
-
NAME
- See Also:
-
-
Constructor Details
-
DocLibNodeLocator
public DocLibNodeLocator()
-
-
Method Details
-
getNode
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
- Specified by:
getNamein classAbstractNodeLocator
-
setSiteService
- Parameters:
siteService- the siteService to set
-
setRepositoryHelper
- Parameters:
repositoryHelper- the repositoryHelper to set
-