Class ContentServiceImpl.ValidatorImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.ValidatorImpl
-
- All Implemented Interfaces:
ContentService.Validator
- Enclosing class:
- ContentServiceImpl
public class ContentServiceImpl.ValidatorImpl extends Object implements ContentService.Validator
-
-
Constructor Summary
Constructors Constructor Description ValidatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.protected ValidationResult
validateUpdate(Content updatedContent, ContentEntityObject currentCeo)
-
-
-
Method Detail
-
validateDelete
public ValidationResult validateDelete(Content content)
Description copied from interface:ContentService.Validator
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.- Specified by:
validateDelete
in interfaceContentService.Validator
- Parameters:
content
- the content to be deleted- Returns:
- an immutable Validation result.
-
validateCreate
public ValidationResult validateCreate(Content newContent) throws ServiceException
Description copied from interface:ContentService.Validator
Validate that a piece of content can be included, including permission checks.- Specified by:
validateCreate
in interfaceContentService.Validator
- Parameters:
newContent
- the content to be created- Returns:
- an immutable Validation result.
- Throws:
ServiceException
-
validateUpdate
protected ValidationResult validateUpdate(Content updatedContent, ContentEntityObject currentCeo)
-
-