Interface ContentPropertyService.Validator

  • Enclosing interface:
    ContentPropertyService

    public static interface ContentPropertyService.Validator
    Provides methods for validating the create, update and delete methods.
    • Method Detail

      • validateCreate

        ValidationResult validateCreate​(JsonContentProperty newProperty)
        Validate that a content property can be created, including permission checks.
        Parameters:
        newProperty - the content to be created
        Returns:
        an immutable Validation result.
      • validateDelete

        ValidationResult validateDelete​(JsonContentProperty property)
        Validate that a content property can be deleted, including permission checks.
        Parameters:
        property - the content property to be deleted
        Returns:
        an immutable Validation result.