Interface ContentTrashService.Validator
- Enclosing interface:
- ContentTrashService
public static interface ContentTrashService.Validator
Provides methods for validating the trash, restore and purge methods.
-
Method Summary
Modifier and TypeMethodDescriptionvalidatePurge
(Content content) Validate that a piece of content can be purged, including permission checks.validateRestore
(Content content) Validate that a piece of content can be restored, including permission checks.validateTrash
(Content content) Validate that a piece of content can be trashed, including permission checks.
-
Method Details
-
validateTrash
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
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
Validate that a piece of content can be purged, including permission checks.- Parameters:
content
- the content to be purged- Returns:
- an immutable Validation result.
-