Class CategoryServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.CategoryServiceImpl
- All Implemented Interfaces:
CategoryService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.CategoryService
CategoryService.Validator -
Constructor Summary
ConstructorsConstructorDescriptionCategoryServiceImpl(SpaceManagerInternal spaceManager, LabelManager labelManager, LabelPermissionEnforcer labelPermissionEnforcer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(String spaceKey, String labelName) Adds a category to a space's description.voidremoveCategory(String spaceKey, String categoryName) Removes a category from a space's description.Returns a validator for category operations.
-
Constructor Details
-
CategoryServiceImpl
public CategoryServiceImpl(SpaceManagerInternal spaceManager, LabelManager labelManager, LabelPermissionEnforcer labelPermissionEnforcer)
-
-
Method Details
-
addCategory
Description copied from interface:CategoryServiceAdds a category to a space's description.- Specified by:
addCategoryin interfaceCategoryService- Parameters:
spaceKey- the key of the spacelabelName- the name of the category to add- Throws:
ServiceException- if the category cannot be added
-
removeCategory
Description copied from interface:CategoryServiceRemoves a category from a space's description.- Specified by:
removeCategoryin interfaceCategoryService- Parameters:
spaceKey- the key of the spacecategoryName- the name of the category to remove- Throws:
ServiceException- if the category cannot be removed
-
validator
Description copied from interface:CategoryServiceReturns a validator for category operations.- Specified by:
validatorin interfaceCategoryService- Returns:
- a
CategoryService.Validatorinstance
-