Package org.alfresco.repo.nodelocator
Class XPathNodeLocator
java.lang.Object
org.alfresco.repo.nodelocator.AbstractNodeLocator
org.alfresco.repo.nodelocator.XPathNodeLocator
- All Implemented Interfaces:
NodeLocator
This
NodeLocator identifies a node from an XPath provided via the xpath parameter.- Since:
- 4.0
- Author:
- Nick Smith
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getNode(NodeRef source, Map<String, Serializable> params) A list containing the parmameter defintions for thisNodeLocator.voidsetDefaultStore(String defaultStoreStr) voidsetSearchService(SearchService searchService) Methods inherited from class org.alfresco.repo.nodelocator.AbstractNodeLocator
setNodeLocatorService
-
Field Details
-
NAME
- See Also:
-
QUERY_KEY
- See Also:
-
STORE_TYPE_KEY
- See Also:
-
STORE_ID_KEY
- See Also:
-
-
Constructor Details
-
XPathNodeLocator
public XPathNodeLocator()
-
-
Method Details
-
getNode
Finds aNodeRefgiven a startingNodeRefand aMapof parameters. Returnsnullif the specified node could not be found.- Parameters:
source- the starting point for locating a new node. The source node. Can benull.params- an arbitraryMapof parameters.Can benull.- Returns:
- the node to be found or
null.
-
getParameterDefinitions
A list containing the parmameter defintions for thisNodeLocator.- Specified by:
getParameterDefinitionsin interfaceNodeLocator- Overrides:
getParameterDefinitionsin classAbstractNodeLocator- Returns:
- a list of parameter definitions
-
getName
- Specified by:
getNamein classAbstractNodeLocator
-
setSearchService
- Parameters:
searchService- the searchService to set
-
setDefaultStore
- Parameters:
defaultStoreStr- the defaultStoreStr to set
-