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.Validatorcontent - the content to be deletedpublic ValidationResult validateCreate(Content newContent) throws ServiceException
ContentService.ValidatorvalidateCreate in interface ContentService.ValidatornewContent - the content to be createdServiceExceptionprotected ValidationResult validateUpdate(Content updatedContent, ContentEntityObject currentCeo)
Copyright © 2003–2019 Atlassian. All rights reserved.