Class DocLibNodeLocator

  • All Implemented Interfaces:
    NodeLocator

    public class DocLibNodeLocator
    extends AbstractNodeLocator
    This NodeLocator identifies the site in which the source node resides and returns the Document Library container for that site. If no site can be found or the site does not have a Document Library then the Company Home is returned.
    Since:
    4.0
    Author:
    Nick Smith
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Constructor Detail

      • DocLibNodeLocator

        public DocLibNodeLocator()
    • 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 the site in which the source NodeRef resides and returns the Document Library container for that site. If no site can be found or the site does not have a Document Library then the Company Home is returned.
        Parameters:
        source - the starting point for locating the site Document Library.
        params - Not used.
        Returns:
        the Document Library or the Company Home.
      • setSiteService

        public void setSiteService​(SiteService siteService)
        Parameters:
        siteService - the siteService to set
      • setRepositoryHelper

        public void setRepositoryHelper​(Repository repositoryHelper)
        Parameters:
        repositoryHelper - the repositoryHelper to set