public class DocLibNodeLocator extends AbstractNodeLocator
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.Constructor and Description |
---|
DocLibNodeLocator() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
org.alfresco.service.cmr.repository.NodeRef |
getNode(org.alfresco.service.cmr.repository.NodeRef source,
Map<String,Serializable> params)
Finds the site in which the source
NodeRef resides and returns the Document Library container for that site. |
void |
setRepositoryHelper(Repository repositoryHelper) |
void |
setSiteService(SiteService siteService) |
getParameterDefinitions, setNodeLocatorService
public static final String NAME
public org.alfresco.service.cmr.repository.NodeRef getNode(org.alfresco.service.cmr.repository.NodeRef source, Map<String,Serializable> params)
NodeRef
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.source
- the starting point for locating the site Document Library.params
- Not used.public String getName()
getName
in class AbstractNodeLocator
public void setSiteService(SiteService siteService)
siteService
- the siteService to setpublic void setRepositoryHelper(Repository repositoryHelper)
repositoryHelper
- the repositoryHelper to setCopyright © 2005–2017 Alfresco Software. All rights reserved.