public class LegacyDraftValidator extends Object implements ContentDraftService.DraftValidator
| Constructor and Description | 
|---|
| LegacyDraftValidator(ContentService contentService,
                    DraftManager draftManager,
                    PermissionManager permissionManager,
                    PermissionCheckExemptions permissionCheckExemptions,
                    ContentDraftManagerInternal contentDraftManager,
                    ScopesRequestCacheDelegate scopesRequestCacheDelegate) | 
| 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 draftId)Validates whether a draft can be deleted | 
public LegacyDraftValidator(ContentService contentService, DraftManager draftManager, PermissionManager permissionManager, PermissionCheckExemptions permissionCheckExemptions, ContentDraftManagerInternal contentDraftManager, ScopesRequestCacheDelegate scopesRequestCacheDelegate)
public MergeValidationResult validateContentForPageCreate(Content content)
ContentDraftService.DraftValidatorvalidateContentForPageCreate in interface ContentDraftService.DraftValidatorcontent - the content to publish, requires a valid content id of an existing draftpublic MergeValidationResult validateContentForPageUpdate(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
ContentDraftService.DraftValidatorvalidateContentForPageUpdate in interface ContentDraftService.DraftValidatorcontent - the content to publishconflictPolicy - the policy to apply if a conflict occurs between the content being updated and the
                       existing versionpublic ValidationResult validateDelete(ContentId draftId)
ContentDraftService.DraftValidatorvalidateDelete in interface ContentDraftService.DraftValidatordraftId - content id of the draft to deleteCopyright © 2003–2022 Atlassian. All rights reserved.