Class XPathNodeLocator

  • All Implemented Interfaces:
    NodeLocator

    public class XPathNodeLocator
    extends AbstractNodeLocator
    This NodeLocator identifies a node from an XPath provided via the xpath parameter.
    Since:
    4.0
    Author:
    Nick Smith
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
      static java.lang.String QUERY_KEY  
      static java.lang.String STORE_ID_KEY  
      static java.lang.String STORE_TYPE_KEY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      org.alfresco.service.cmr.repository.NodeRef getNode​(org.alfresco.service.cmr.repository.NodeRef source, java.util.Map<java.lang.String,​java.io.Serializable> params)
      Finds a NodeRef given a starting NodeRef and a Map of parameters.
      java.util.List<ParameterDefinition> getParameterDefinitions()
      A list containing the parmameter defintions for this NodeLocator.
      void setDefaultStore​(java.lang.String defaultStoreStr)  
      void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XPathNodeLocator

        public XPathNodeLocator()
    • Method Detail

      • getNode

        public org.alfresco.service.cmr.repository.NodeRef getNode​(org.alfresco.service.cmr.repository.NodeRef source,
                                                                   java.util.Map<java.lang.String,​java.io.Serializable> params)
        Finds a NodeRef given a starting NodeRef and a Map of parameters. Returns null if the specified node could not be found.
        Parameters:
        source - the starting point for locating a new node. The source node. Can be null.
        params - an arbitrary Map of parameters.Can be null.
        Returns:
        the node to be found or null.
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)
        Parameters:
        searchService - the searchService to set
      • setDefaultStore

        public void setDefaultStore​(java.lang.String defaultStoreStr)
        Parameters:
        defaultStoreStr - the defaultStoreStr to set