Interface SpaceService.Validator
-
- All Known Implementing Classes:
SpaceServiceImpl.ValidatorImpl
- Enclosing interface:
- SpaceService
public static interface SpaceService.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
validateArchive(Space spaceToArchive)
Validate that a Space can be archived, including permission checks.ValidationResult
validateCreate(Space newSpace, boolean isPrivate)
Validate that a Space can be added, including permission checks.ValidationResult
validateDelete(Space spaceToDelete)
Validate that a Space can be deleted, including permission checks.ValidationResult
validateRestore(Space spaceToRestore)
Validate that a Space can be restored, including permission checks.ValidationResult
validateUpdate(Space space)
Validate that a Space can be updated, including permission checks.
-
-
-
Method Detail
-
validateCreate
ValidationResult validateCreate(Space newSpace, boolean isPrivate)
Validate that a Space can be added, including permission checks.- Parameters:
newSpace
- the space to be createdisPrivate
- whether the space is private (true) or has default permissions (false)- Returns:
- an immutable Validation result.
-
validateUpdate
ValidationResult validateUpdate(Space space)
Validate that a Space can be updated, including permission checks.- Parameters:
space
- the space to be updated- Returns:
- an immutable Validation result.
-
validateDelete
ValidationResult validateDelete(Space spaceToDelete)
Validate that a Space can be deleted, including permission checks.- Parameters:
spaceToDelete
- the space to be deleted- Returns:
- an immutable Validation result.
-
validateArchive
ValidationResult validateArchive(Space spaceToArchive)
Validate that a Space can be archived, including permission checks.- Parameters:
spaceToArchive
- the space to be archived- Returns:
- an immutable Validation result.
-
validateRestore
ValidationResult validateRestore(Space spaceToRestore)
Validate that a Space can be restored, including permission checks.- Parameters:
spaceToRestore
- the space to be restored- Returns:
- an immutable Validation result.
-
-