Interface NodeLocatorService

  • All Known Implementing Classes:
    NodeLocatorServiceImpl

    @AlfrescoPublicApi
    public interface NodeLocatorService
    This service is responsible for locating NodeRefs in the repository using NodeLocator strategies.
    Since:
    4.0
    Author:
    Nick Smith
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.alfresco.service.cmr.repository.NodeRef getNode​(java.lang.String locatorName, org.alfresco.service.cmr.repository.NodeRef source, java.util.Map<java.lang.String,​java.io.Serializable> params)
      Locates and returns a NodeRef using the specified NodeLocator.
      void register​(java.lang.String locatorName, NodeLocator locator)  
    • Method Detail

      • getNode

        org.alfresco.service.cmr.repository.NodeRef getNode​(java.lang.String locatorName,
                                                            org.alfresco.service.cmr.repository.NodeRef source,
                                                            java.util.Map<java.lang.String,​java.io.Serializable> params)
        Locates and returns a NodeRef using the specified NodeLocator.
        Parameters:
        locatorName - the name of the NodeLocator to use.
        source - the source node. Can be null.
        params - An arbitrary set of parameters. Can be null.
        Returns:
        the node to be found or null.
      • register

        void register​(java.lang.String locatorName,
                      NodeLocator locator)