public class SpaceServiceImpl.ValidatorImpl extends Object implements SpaceService.Validator
Constructor and Description |
---|
ValidatorImpl() |
Modifier and Type | Method and Description |
---|---|
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 |
validateUpdate(Space space)
Validate that a Space can be updated, including permission checks.
|
public ValidationResult validateCreate(Space space, boolean isPrivate)
SpaceService.Validator
validateCreate
in interface SpaceService.Validator
space
- the space to be createdisPrivate
- whether the space is private (true) or has default permissions (false)public ValidationResult validateUpdate(Space space)
SpaceService.Validator
validateUpdate
in interface SpaceService.Validator
space
- the space to be updatedpublic ValidationResult validateDelete(Space space)
SpaceService.Validator
validateDelete
in interface SpaceService.Validator
space
- the space to be deletedCopyright © 2003–2021 Atlassian. All rights reserved.