public static interface ContentDraftService.DraftValidator
| Modifier and Type | Method and Description | 
|---|---|
| MergeValidationResult | validateContentForPageCreate(Content content)Validate the publish new draft operation. | 
| MergeValidationResult | validateContentForPageUpdate(Content content,
                            ContentDraftService.ConflictPolicy conflictPolicy)Validate the publish edit draft operation. | 
| ValidationResult | validateDelete(ContentId contentId)Validates whether a draft can be deleted | 
MergeValidationResult validateContentForPageCreate(Content content)
content - - the content to publish, requires a valid content id of an existing draftMergeValidationResult validateContentForPageUpdate(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
content - - the content to publishconflictPolicy - - the policy to apply if a conflict occurs between the content being updated and the
                       existing versionValidationResult validateDelete(ContentId contentId)
contentId - - content id of the draft to deleteCopyright © 2003–2017 Atlassian. All rights reserved.