com.atlassian.confluence.api.service.content
Interface ContentPropertyService.Validator

Enclosing interface:
ContentPropertyService

public static interface ContentPropertyService.Validator

Provides methods for validating the create, update and delete methods.


Method Summary
 ValidationResult validateCreate(JsonContentProperty newProperty)
          Validate that a content property can be created, including permission checks.
 ValidationResult validateDelete(JsonContentProperty property)
          Validate that a content property can be deleted, including permission checks.
 ValidationResult validateUpdate(JsonContentProperty property)
          Validate that a content property can be updated, including permission checks.
 

Method Detail

validateCreate

ValidationResult validateCreate(JsonContentProperty newProperty)
Validate that a content property can be created, including permission checks.

Parameters:
newProperty - the content to be created
Returns:
an immutable Validation result.

validateUpdate

ValidationResult validateUpdate(JsonContentProperty property)
                                throws ConflictException
Validate that a content property can be updated, including permission checks.

Parameters:
property - the content property to be updated
Returns:
an immutable Validation result.
Throws:
ConflictException

validateDelete

ValidationResult validateDelete(JsonContentProperty property)
Validate that a content property can be deleted, including permission checks.

Parameters:
property - the content property to be deleted
Returns:
an immutable Validation result.


Copyright © 2003–2015 Atlassian. All rights reserved.