Interface Categories

All Known Implementing Classes:
CategoriesImpl

@Experimental public interface Categories
  • Method Details

    • getCategoryById

      Category getCategoryById(String id, Parameters parameters)
    • createSubcategories

      List<Category> createSubcategories(String parentCategoryId, List<Category> categories, Parameters parameters)
    • getCategoryChildren

      CollectionWithPagingInfo<Category> getCategoryChildren(String parentCategoryId, Parameters parameters)
    • updateCategoryById

      Category updateCategoryById(String id, Category fixedCategoryModel)
      Update category by ID. Currently, it's possible only to update the name of category.
      Parameters:
      id - Category ID.
      fixedCategoryModel - Fixed category model.
      Returns:
      Updated category.
    • deleteCategoryById

      void deleteCategoryById(String id, Parameters parameters)
    • listCategoriesForNode

      List<Category> listCategoriesForNode(String nodeId)
      Get categories linked from node. Read permission on node is required. Node type is restricted to specified vales from: TypeConstraint.
      Parameters:
      nodeId - Node ID.
      Returns:
      Categories linked from node.
    • linkNodeToCategories

      List<Category> linkNodeToCategories(String nodeId, List<Category> categoryLinks)
      Link node to categories. Change permission on node is required. Node types allowed for categorization are specified within TypeConstraint.
      Parameters:
      nodeId - Node ID.
      categoryLinks - Category IDs to which content should be linked to.
      Returns:
      Linked to categories.
    • unlinkNodeFromCategory

      void unlinkNodeFromCategory(String nodeId, String categoryId, Parameters parameters)
      Unlink node from a category.
      Parameters:
      nodeId - Node ID.
      categoryId - Category ID from which content node should be unlinked from.