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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
DocLibNodeLocator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
org.alfresco.service.cmr.repository.NodeRef |
getNode(org.alfresco.service.cmr.repository.NodeRef source,
java.util.Map 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, setNodeLocatorServicepublic static final java.lang.String NAME
public org.alfresco.service.cmr.repository.NodeRef getNode(org.alfresco.service.cmr.repository.NodeRef source,
java.util.Map 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.sourceNode - the starting point for locating the site Document Library.params - Not used.public java.lang.String getName()
getName in class AbstractNodeLocatorpublic void setSiteService(SiteService siteService)
siteService - the siteService to setpublic void setRepositoryHelper(Repository repositoryHelper)
repositoryHelper - the repositoryHelper to setCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.