Interface CategoryService.Validator

Enclosing interface:
CategoryService

public static interface CategoryService.Validator
Provides methods for validating category operations.
  • Method Details

    • validateAddCategory

      ValidationResult validateAddCategory(String spaceKey, String categoryName)
      Validates if a user can add a category in a specified space.
      Parameters:
      spaceKey - the key of the space
      categoryName - the name of the category (do not include the prefix)
      Returns:
      a ValidationResult indicating if the add is permitted
    • validateEditCategory

      ValidationResult validateEditCategory(String spaceKey, String categoryName)
      Validates if a user can edit a category in a specified space.
      Parameters:
      spaceKey - the key of the space
      categoryName - the name of the category (do not include the prefix)
      Returns:
      a ValidationResult indicating if the edit is permitted