public class SpacePropertyValidatorImpl extends Object implements SpacePropertyService.Validator
Constructor and Description |
---|
SpacePropertyValidatorImpl(SpaceManagerInternal spaceManager,
PermissionManager permissionManager,
SpacePropertyFinderFactory finderFactory,
StorageJsonPropertyManager storageContentPropertyManager) |
Modifier and Type | Method and 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.
|
public SpacePropertyValidatorImpl(SpaceManagerInternal spaceManager, PermissionManager permissionManager, SpacePropertyFinderFactory finderFactory, StorageJsonPropertyManager storageContentPropertyManager)
public ValidationResult validateCreate(JsonSpaceProperty newProperty)
SpacePropertyService.Validator
validateCreate
in interface SpacePropertyService.Validator
newProperty
- the property to be createdpublic ValidationResult validateUpdate(JsonSpaceProperty property)
SpacePropertyService.Validator
validateUpdate
in interface SpacePropertyService.Validator
property
- the property to be updatedpublic ValidationResult validateDelete(JsonSpaceProperty property)
SpacePropertyService.Validator
validateDelete
in interface SpacePropertyService.Validator
property
- the property to be deletedCopyright © 2003–2016 Atlassian. All rights reserved.