Interface ContentTrashService.Validator

  • Enclosing interface:
    ContentTrashService

    public static interface ContentTrashService.Validator
    Provides methods for validating the trash, restore and purge methods.
    • Method Detail

      • validateTrash

        ValidationResult validateTrash​(Content content)
        Validate that a piece of content can be trashed, including permission checks.
        Parameters:
        content - the content to be trashed
        Returns:
        an immutable Validation result.
      • validateRestore

        ValidationResult validateRestore​(Content content)
        Validate that a piece of content can be restored, including permission checks.
        Parameters:
        content - the content to be restored
        Returns:
        an immutable Validation result.
      • validatePurge

        ValidationResult validatePurge​(Content content)
        Validate that a piece of content can be purged, including permission checks.
        Parameters:
        content - the content to be purged
        Returns:
        an immutable Validation result.