Class RecordCategoryUtil


  • public class RecordCategoryUtil
    extends Object
    Utility class for record categories
    Since:
    2.7
    Author:
    Ross Gale
    • Constructor Detail

      • RecordCategoryUtil

        public RecordCategoryUtil()
    • Method Detail

      • setNodeService

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

        public String getCategoryIdFromNodeId​(NodeRef nodeRef,
                                              boolean includeFolders)
        Return the record category id for a file plan element
        Parameters:
        nodeRef - the node reference of the file plan element
        includeFolders - return an id for records, folders and categories
        Returns:
        Record category identifier