Class SpacePropertyValidatorImpl
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.spaceproperty.SpacePropertyValidatorImpl
- All Implemented Interfaces:
SpacePropertyService.Validator
@Component("spacePropertyValidator")
public class SpacePropertyValidatorImpl
extends Object
implements SpacePropertyService.Validator
-
Constructor Summary
ConstructorDescriptionSpacePropertyValidatorImpl
(SpaceManager spaceManager, PermissionManager permissionManager, SpacePropertyFinderFactory finderFactory, StorageJsonPropertyManager storageContentPropertyManager, RetentionFeatureChecker retentionFeatureChecker) -
Method Summary
Modifier and TypeMethodDescriptionvalidateCreate
(JsonSpaceProperty newProperty) Validate that a space property can be created, including permission checks.validateDelete
(JsonSpaceProperty property) Validate that a space property can be deleted, including permission checks.validateUpdate
(JsonSpaceProperty property) Validate that a space property can be updated, including permission checks.
-
Constructor Details
-
SpacePropertyValidatorImpl
@Autowired public SpacePropertyValidatorImpl(SpaceManager spaceManager, PermissionManager permissionManager, SpacePropertyFinderFactory finderFactory, StorageJsonPropertyManager storageContentPropertyManager, RetentionFeatureChecker retentionFeatureChecker)
-
-
Method Details
-
validateCreate
Description copied from interface:SpacePropertyService.Validator
Validate that a space property can be created, including permission checks.- Specified by:
validateCreate
in interfaceSpacePropertyService.Validator
- Parameters:
newProperty
- the property to be created- Returns:
- an immutable Validation result.
-
validateUpdate
Description copied from interface:SpacePropertyService.Validator
Validate that a space property can be updated, including permission checks.- Specified by:
validateUpdate
in interfaceSpacePropertyService.Validator
- Parameters:
property
- the property to be updated- Returns:
- an immutable Validation result.
-
validateDelete
Description copied from interface:SpacePropertyService.Validator
Validate that a space property can be deleted, including permission checks.- Specified by:
validateDelete
in interfaceSpacePropertyService.Validator
- Parameters:
property
- the property to be deleted- Returns:
- an immutable Validation result.
-