Interface CategoryService.Validator
- Enclosing interface:
CategoryService
public static interface CategoryService.Validator
Provides methods for validating category operations.
-
Method Summary
Modifier and TypeMethodDescriptionvalidateAddCategory
(String spaceKey, String categoryName) Validates if a user can add a category in a specified space.validateEditCategory
(String spaceKey, String categoryName) Validates if a user can edit a category in a specified space.
-
Method Details
-
validateAddCategory
Validates if a user can add a category in a specified space.- Parameters:
spaceKey
- the key of the spacecategoryName
- the name of the category (do not include the prefix)- Returns:
- a
ValidationResult
indicating if the add is permitted
-
validateEditCategory
Validates if a user can edit a category in a specified space.- Parameters:
spaceKey
- the key of the spacecategoryName
- the name of the category (do not include the prefix)- Returns:
- a
ValidationResult
indicating if the edit is permitted
-