Class SpaceServiceImpl.ValidatorImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.content.SpaceServiceImpl.ValidatorImpl
-
- All Implemented Interfaces:
SpaceService.Validator
- Enclosing class:
- SpaceServiceImpl
public class SpaceServiceImpl.ValidatorImpl extends Object implements SpaceService.Validator
-
-
Constructor Summary
Constructors Constructor Description ValidatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResult
validateArchive(Space space)
Validate that a Space can be archived, including permission checks.ValidationResult
validateCreate(Space space, boolean isPrivate)
Validate that a Space can be added, including permission checks.ValidationResult
validateDelete(Space space)
Validate that a Space can be deleted, including permission checks.ValidationResult
validateRestore(Space space)
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
public ValidationResult validateCreate(Space space, boolean isPrivate)
Description copied from interface:SpaceService.Validator
Validate that a Space can be added, including permission checks.- Specified by:
validateCreate
in interfaceSpaceService.Validator
- Parameters:
space
- the space to be createdisPrivate
- whether the space is private (true) or has default permissions (false)- Returns:
- an immutable Validation result.
-
validateUpdate
public ValidationResult validateUpdate(Space space)
Description copied from interface:SpaceService.Validator
Validate that a Space can be updated, including permission checks.- Specified by:
validateUpdate
in interfaceSpaceService.Validator
- Parameters:
space
- the space to be updated- Returns:
- an immutable Validation result.
-
validateDelete
public ValidationResult validateDelete(Space space)
Description copied from interface:SpaceService.Validator
Validate that a Space can be deleted, including permission checks.- Specified by:
validateDelete
in interfaceSpaceService.Validator
- Parameters:
space
- the space to be deleted- Returns:
- an immutable Validation result.
-
validateArchive
public ValidationResult validateArchive(Space space)
Description copied from interface:SpaceService.Validator
Validate that a Space can be archived, including permission checks.- Specified by:
validateArchive
in interfaceSpaceService.Validator
- Parameters:
space
- the space to be archived- Returns:
- an immutable Validation result.
-
validateRestore
public ValidationResult validateRestore(Space space)
Description copied from interface:SpaceService.Validator
Validate that a Space can be restored, including permission checks.- Specified by:
validateRestore
in interfaceSpaceService.Validator
- Parameters:
space
- the space to be restored- Returns:
- an immutable Validation result.
-
-