public class LegacyDraftValidator extends Object implements ContentDraftService.DraftValidator
Constructor and Description |
---|
LegacyDraftValidator(ContentService contentService,
DraftManager draftManager,
PermissionManager permissionManager) |
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.
|
public LegacyDraftValidator(ContentService contentService, DraftManager draftManager, PermissionManager permissionManager)
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 versionCopyright © 2003–2016 Atlassian. All rights reserved.