public class ContentServiceImpl.ValidatorImpl extends Object implements ContentService.Validator
Constructor and Description |
---|
ValidatorImpl() |
Modifier and Type | Method and 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) |
public ValidationResult validateDelete(Content content)
ContentService.Validator
"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.
validateDelete
in interface ContentService.Validator
content
- the content to be deletedpublic ValidationResult validateCreate(Content newContent) throws ServiceException
ContentService.Validator
validateCreate
in interface ContentService.Validator
newContent
- the content to be createdServiceException
protected ValidationResult validateUpdate(Content updatedContent, ContentEntityObject currentCeo)
Copyright © 2003–2018 Atlassian. All rights reserved.