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(StoreRef storeRef, String parentCategoryId, List<Category> categories, Parameters parameters) voiddeleteCategoryById(StoreRef storeRef, String id, Parameters parameters) getCategoryById(StoreRef storeRef, String id, Parameters parameters) getCategoryChildren(StoreRef storeRef, String parentCategoryId, Parameters parameters) linkNodeToCategories(StoreRef storeRef, String nodeId, List<Category> categoryLinks, Parameters parameters) Link node to categories.listCategoriesForNode(String nodeId, Parameters parameters) Get categories linked from node.voidunlinkNodeFromCategory(StoreRef storeRef, String nodeId, String categoryId, Parameters parameters) Unlink node from a category.updateCategoryById(StoreRef storeRef, String id, Category fixedCategoryModel, Parameters parameters) Update category by ID.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.rest.api.Categories
createSubcategories, deleteCategoryById, getCategoryById, getCategoryChildren, linkNodeToCategories, unlinkNodeFromCategory, updateCategoryById
-
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(StoreRef storeRef, String parentCategoryId, List<Category> categories, Parameters parameters) - Specified by:
createSubcategoriesin interfaceCategories
-
getCategoryChildren
public List<Category> getCategoryChildren(StoreRef storeRef, String parentCategoryId, Parameters parameters) - Specified by:
getCategoryChildrenin interfaceCategories
-
updateCategoryById
public Category updateCategoryById(StoreRef storeRef, String id, Category fixedCategoryModel, Parameters parameters) Description copied from interface:CategoriesUpdate category by ID. Currently, it's possible only to update the name of category.- Specified by:
updateCategoryByIdin interfaceCategories- Parameters:
storeRef- Reference to node store.id- Category ID.fixedCategoryModel- Fixed category model.parameters- Additional parameters.- 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.parameters- Additional parameters.- Returns:
- Categories linked from node.
-
linkNodeToCategories
public List<Category> linkNodeToCategories(StoreRef storeRef, String nodeId, List<Category> categoryLinks, Parameters parameters) 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:
storeRef- Reference to node store.nodeId- Node ID.categoryLinks- Category IDs to which content should be linked to.parameters- Additional parameters.- Returns:
- Linked to categories.
-
unlinkNodeFromCategory
public void unlinkNodeFromCategory(StoreRef storeRef, String nodeId, String categoryId, Parameters parameters) Description copied from interface:CategoriesUnlink node from a category.- Specified by:
unlinkNodeFromCategoryin interfaceCategories- Parameters:
storeRef- Reference to node store.nodeId- Node ID.categoryId- Category ID from which content node should be unlinked from.parameters- Additional parameters.
-