Package org.alfresco.rest.api.impl
Class CategoriesImpl
java.lang.Object
org.alfresco.rest.api.impl.CategoriesImpl
- All Implemented Interfaces:
Categories
-
Constructor Summary
ConstructorsConstructorDescriptionCategoriesImpl(AuthorityService authorityService, CategoryService categoryService, Nodes nodes, NodeService nodeService, PermissionService permissionService, TypeConstraint typeConstraint) -
Method Summary
Modifier and TypeMethodDescriptioncreateSubcategories(String parentCategoryId, List<Category> categories, Parameters parameters) voiddeleteCategoryById(String id, Parameters parameters) getCategoryById(String id, Parameters params) getCategoryChildren(String parentCategoryId, Parameters params) linkNodeToCategories(String nodeId, List<Category> categoryLinks) Link node to categories.listCategoriesForNode(String nodeId) Get categories linked from node.voidunlinkNodeFromCategory(String nodeId, String categoryId, Parameters parameters) Unlink node from a category.updateCategoryById(String id, Category fixedCategoryModel) Update category by ID.
-
Constructor Details
-
CategoriesImpl
public CategoriesImpl(AuthorityService authorityService, CategoryService categoryService, Nodes nodes, NodeService nodeService, PermissionService permissionService, TypeConstraint typeConstraint)
-
-
Method Details
-
getCategoryById
- Specified by:
getCategoryByIdin interfaceCategories
-
createSubcategories
public List<Category> createSubcategories(String parentCategoryId, List<Category> categories, Parameters parameters) - Specified by:
createSubcategoriesin interfaceCategories
-
getCategoryChildren
public CollectionWithPagingInfo<Category> getCategoryChildren(String parentCategoryId, Parameters params) - Specified by:
getCategoryChildrenin interfaceCategories
-
updateCategoryById
Description copied from interface:CategoriesUpdate category by ID. Currently, it's possible only to update the name of category.- Specified by:
updateCategoryByIdin interfaceCategories- Parameters:
id- Category ID.fixedCategoryModel- Fixed category model.- Returns:
- Updated category.
-
deleteCategoryById
- Specified by:
deleteCategoryByIdin interfaceCategories
-
listCategoriesForNode
Description copied from interface:CategoriesGet categories linked from node. Read permission on node is required. Node type is restricted to specified vales from:TypeConstraint.- Specified by:
listCategoriesForNodein interfaceCategories- Parameters:
nodeId- Node ID.- Returns:
- Categories linked from node.
-
linkNodeToCategories
Description copied from interface:CategoriesLink node to categories. Change permission on node is required. Node types allowed for categorization are specified withinTypeConstraint.- Specified by:
linkNodeToCategoriesin interfaceCategories- Parameters:
nodeId- Node ID.categoryLinks- Category IDs to which content should be linked to.- Returns:
- Linked to categories.
-
unlinkNodeFromCategory
Description copied from interface:CategoriesUnlink node from a category.- Specified by:
unlinkNodeFromCategoryin interfaceCategories- Parameters:
nodeId- Node ID.categoryId- Category ID from which content node should be unlinked from.
-