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 org.alfresco.service.cmr.repository.NodeService nodeService
        Node service
    • Constructor Detail

      • SearchUtil

        public SearchUtil()
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Setter for node service
        Parameters:
        nodeService - Node service
      • retrieveAllNodeIds

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

        protected org.alfresco.service.cmr.repository.NodeRef getRootContainer​(org.alfresco.service.namespace.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