Interface SpacePropertyService.Validator
-
- All Known Implementing Classes:
SpacePropertyValidatorImpl
- Enclosing interface:
- SpacePropertyService
public static interface SpacePropertyService.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(JsonSpaceProperty newProperty)
Validate that a space property can be created, including permission checks.ValidationResult
validateDelete(JsonSpaceProperty property)
Validate that a space property can be deleted, including permission checks.ValidationResult
validateUpdate(JsonSpaceProperty property)
Validate that a space property can be updated, including permission checks.
-
-
-
Method Detail
-
validateCreate
ValidationResult validateCreate(JsonSpaceProperty newProperty)
Validate that a space property can be created, including permission checks.- Parameters:
newProperty
- the property to be created- Returns:
- an immutable Validation result.
-
validateUpdate
ValidationResult validateUpdate(JsonSpaceProperty property)
Validate that a space property can be updated, including permission checks.- Parameters:
property
- the property to be updated- Returns:
- an immutable Validation result.
-
validateDelete
ValidationResult validateDelete(JsonSpaceProperty property)
Validate that a space property can be deleted, including permission checks.- Parameters:
property
- the property to be deleted- Returns:
- an immutable Validation result.
-
-