public static interface ContentService.Validator
| 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.
|
ValidationResult validateDelete(Content content)
"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.
content - the content to be deletedValidationResult validateCreate(Content newContent) throws ServiceException
newContent - the content to be createdServiceExceptionCopyright © 2003–2022 Atlassian. All rights reserved.