public class LegacyDraftValidator extends Object implements ContentDraftService.DraftValidator
Constructor and Description |
---|
LegacyDraftValidator(ContentService contentService,
DraftManager draftManager,
PermissionManager permissionManager,
PermissionCheckExemptions permissionCheckExemptions) |
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)
public MergeValidationResult validateContentForPageCreate(Content content)
ContentDraftService.DraftValidator
validateContentForPageCreate
in interface ContentDraftService.DraftValidator
content
- - the content to publish, requires a valid content id of an existing draftpublic MergeValidationResult validateContentForPageUpdate(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
ContentDraftService.DraftValidator
validateContentForPageUpdate
in interface ContentDraftService.DraftValidator
content
- - 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.DraftValidator
validateDelete
in interface ContentDraftService.DraftValidator
draftId
- - content id of the draft to deleteCopyright © 2003–2018 Atlassian. All rights reserved.