Interface ContentPropertyService.Validator
-
- Enclosing interface:
- ContentPropertyService
public static interface ContentPropertyService.Validator
Provides methods for validating the create, update and delete methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidationResult
validateCreate(JsonContentProperty newProperty)
Validate that a content property can be created, including permission checks.ValidationResult
validateDelete(JsonContentProperty property)
Validate that a content property can be deleted, including permission checks.ValidationResult
validateUpdate(JsonContentProperty property)
Validate that a content property can be updated, including permission checks.
-
-
-
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.
-
validateUpdate
ValidationResult validateUpdate(JsonContentProperty property) throws ConflictException
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
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.
-
-