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) void
deleteCategoryById
(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.void
unlinkNodeFromCategory
(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:
getCategoryById
in interfaceCategories
-
createSubcategories
public List<Category> createSubcategories(String parentCategoryId, List<Category> categories, Parameters parameters) - Specified by:
createSubcategories
in interfaceCategories
-
getCategoryChildren
public CollectionWithPagingInfo<Category> getCategoryChildren(String parentCategoryId, Parameters params) - Specified by:
getCategoryChildren
in interfaceCategories
-
updateCategoryById
Description copied from interface:Categories
Update category by ID. Currently, it's possible only to update the name of category.- Specified by:
updateCategoryById
in interfaceCategories
- Parameters:
id
- Category ID.fixedCategoryModel
- Fixed category model.- Returns:
- Updated category.
-
deleteCategoryById
- Specified by:
deleteCategoryById
in interfaceCategories
-
listCategoriesForNode
Description copied from interface:Categories
Get categories linked from node. Read permission on node is required. Node type is restricted to specified vales from:TypeConstraint
.- Specified by:
listCategoriesForNode
in interfaceCategories
- Parameters:
nodeId
- Node ID.- Returns:
- Categories linked from node.
-
linkNodeToCategories
Description copied from interface:Categories
Link node to categories. Change permission on node is required. Node types allowed for categorization are specified withinTypeConstraint
.- Specified by:
linkNodeToCategories
in interfaceCategories
- Parameters:
nodeId
- Node ID.categoryLinks
- Category IDs to which content should be linked to.- Returns:
- Linked to categories.
-
unlinkNodeFromCategory
Description copied from interface:Categories
Unlink node from a category.- Specified by:
unlinkNodeFromCategory
in interfaceCategories
- Parameters:
nodeId
- Node ID.categoryId
- Category ID from which content node should be unlinked from.
-