Interface ContentPropertyService.Validator
- Enclosing interface:
ContentPropertyService
public static interface ContentPropertyService.Validator
Provides methods for validating the create, update and delete methods.
-
Method Summary
Modifier and TypeMethodDescriptionvalidateCreate(JsonContentProperty newProperty) Validate that a content property can be created, including permission checks.validateDelete(JsonContentProperty property) Validate that a content property can be deleted, including permission checks.validateUpdate(JsonContentProperty property) Validate that a content property can be updated, including permission checks.
-
Method Details
-
validateCreate
Validate that a content property can be created, including permission checks.- Parameters:
newProperty- the content to be created- Returns:
- an immutable Validation result.
-
validateUpdate
Validate that a content property can be updated, including permission checks.- Parameters:
property- the content property to be updated- Returns:
- an immutable Validation result.
- Throws:
ConflictException
-
validateDelete
Validate that a content property can be deleted, including permission checks.- Parameters:
property- the content property to be deleted- Returns:
- an immutable Validation result.
-