Interface ContentService.Validator

    • Method Detail

      • validateDelete

        ValidationResult validateDelete​(Content content)
        Validate that a piece of content can be deleted, including permission checks.

        "Deletion" here refers to the operation ContentService.delete(Content) which may have different outcomes based on the type of content being deleted and its current status.

        Parameters:
        content - the content to be deleted
        Returns:
        an immutable Validation result.
      • validateCreate

        ValidationResult validateCreate​(Content newContent)
                                 throws ServiceException
        Validate that a piece of content can be included, including permission checks.
        Parameters:
        newContent - the content to be created
        Returns:
        an immutable Validation result.
        Throws:
        ServiceException