Class SearchUtil

  • Direct Known Subclasses:
    ClassificationReasonsUtil

    public class SearchUtil
    extends Object
    Parent class for records search utilities
    Since:
    2.7
    Author:
    Ross Gale
    • Field Detail

      • nodeService

        protected NodeService nodeService
        Node service
    • Constructor Detail

      • SearchUtil

        public SearchUtil()
    • Method Detail

      • setNodeService

        public void setNodeService​(NodeService nodeService)
        Setter for node service
        Parameters:
        nodeService - Node service
      • retrieveAllNodeIds

        protected Set<String> retrieveAllNodeIds​(NodeRef nodeRef)
        Use a container node ref and return the nodeIds of the contents
        Parameters:
        nodeRef - container
        Returns:
        list of nodeIds
      • getRootContainer

        protected NodeRef getRootContainer​(QName container)
        Helper method to get the classification reason root container. The method creates the container if it doesn't already exist.
        Returns:
        reference to the classification reason root container