Interface ICategoryService


public interface ICategoryService
https://wiki.alfresco.com/wiki/Classification_And_Categories
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    classifyNode(NodeRef targetNode, NodeRef categoryNode)
    Classifies a target node to a specific category.
    getCategoryTree(QName classifiableAspectName)
    Retuns all categories for given classifiable aspect.
  • Method Details

    • classifyNode

      void classifyNode(NodeRef targetNode, NodeRef categoryNode)
      Classifies a target node to a specific category.
      Parameters:
      targetNode - The node to classify.
      categoryNode - The category to which to classify the node.
    • getCategoryTree

      List<Category> getCategoryTree(QName classifiableAspectName)
      Retuns all categories for given classifiable aspect. This consists of a list of category roots WARNING: can be slow for many categories
      Parameters:
      classifiableAspectName - Should be aspect of type cm:classifiable
      Returns:
      List of categories