public class AncestorNodeLocator extends AbstractNodeLocator
NodeLocator identifies an ancestor of the source node.
The node returned can be of a specific type and/or have a specific aspect applied.
If no parameters are passed the immediate primary parent is returned.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASPECT_KEY |
static java.lang.String |
NAME |
static java.lang.String |
TYPE_KEY |
| Constructor and Description |
|---|
AncestorNodeLocator() |
| 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 a
NodeRef given a starting NodeRef and a
Map of parameters. |
java.util.List |
getParameterDefinitions()
A list containing the parmameter defintions for this
NodeLocator. |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
setNodeLocatorServicepublic static final java.lang.String NAME
public static final java.lang.String TYPE_KEY
public static final java.lang.String ASPECT_KEY
public org.alfresco.service.cmr.repository.NodeRef getNode(org.alfresco.service.cmr.repository.NodeRef source,
java.util.Map params)
NodeRef given a starting NodeRef and a
Map of parameters.
Returns null if the specified node could not be found.params - an arbitrary Map of parameters.Can be null.null.public java.util.List getParameterDefinitions()
NodeLocator.getParameterDefinitions in interface NodeLocatorgetParameterDefinitions in class AbstractNodeLocatorpublic java.lang.String getName()
getName in class AbstractNodeLocatorpublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the nodeService to setpublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - the namespaceService to setCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.