public class XPathNodeLocator extends AbstractNodeLocator
NodeLocator
identifies a node from an XPath provided via the xpath
parameter.Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
QUERY_KEY |
static String |
STORE_ID_KEY |
static String |
STORE_TYPE_KEY |
Constructor and Description |
---|
XPathNodeLocator() |
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)
|
List<ParameterDefinition> |
getParameterDefinitions()
A list containing the parmameter defintions for this
NodeLocator . |
void |
setDefaultStore(String defaultStoreStr) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
setNodeLocatorService
public static final String NAME
public static final String QUERY_KEY
public static final String STORE_TYPE_KEY
public static final String STORE_ID_KEY
public org.alfresco.service.cmr.repository.NodeRef getNode(org.alfresco.service.cmr.repository.NodeRef source, Map<String,Serializable> params)
NodeRef
given a starting NodeRef
and a
Map
of parameters.
Returns null
if the specified node could not be found.source
- the starting point for locating a new node. The source node. Can be null
.params
- an arbitrary Map
of parameters.Can be null
.null
.public List<ParameterDefinition> getParameterDefinitions()
NodeLocator
.getParameterDefinitions
in interface NodeLocator
getParameterDefinitions
in class AbstractNodeLocator
public String getName()
getName
in class AbstractNodeLocator
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- the searchService to setpublic void setDefaultStore(String defaultStoreStr)
defaultStoreStr
- the defaultStoreStr to setCopyright © 2005–2017 Alfresco Software. All rights reserved.