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

All Known Implementing Classes:
ContentServiceImpl.ValidatorImpl
Enclosing interface:
ContentService

public static interface ContentService.Validator

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


Method Summary
 ValidationResult validateCreate(Content newContent)
          Validate that a piece of content can be included, including permission checks.
 ValidationResult validateDelete(Content content)
          Validate that a piece of content can be deleted, including permission checks.
 

Method Detail

validateDelete

ValidationResult validateDelete(Content content)
Validate that a piece of content can be deleted, including permission checks.

"Deletion" here refers to the operation ContentService.delete(Content) which may have different outcomes based on the type of content being deleted and its current status.

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

validateCreate

ValidationResult validateCreate(Content newContent)
                                throws ServiceException
Validate that a piece of content can be included, including permission checks.

Parameters:
newContent - the content to be created
Returns:
an immutable Validation result.
Throws:
ServiceException


Copyright © 2003–2015 Atlassian. All rights reserved.