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 Details

  • Constructor Details

    • DocLibNodeLocator

      public DocLibNodeLocator()
  • Method Details

    • getNode

      public NodeRef getNode(NodeRef source, Map<String,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.
    • getName

      public String getName()
      Specified by:
      getName in class AbstractNodeLocator
    • setSiteService

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

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