public class LegacyContentDraftServiceImpl extends Object implements ContentDraftService
ContentDraftService.ConflictPolicy, ContentDraftService.DraftErrorCodes, ContentDraftService.DraftValidator| Modifier and Type | Field and Description |
|---|---|
static String |
INTERNAL_DRAFT |
| Constructor and Description |
|---|
LegacyContentDraftServiceImpl(PermissionManager permissionManager,
ContentService contentService,
DraftManager draftManager,
PermissionCheckExemptions permissionCheckExemptions,
AccessModeService accessModeService,
DefaultCustomContentManager customContentManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDraft(ContentId draftId)
Deletes the draft for this content.
|
Content |
publishEditDraft(Content content,
ContentDraftService.ConflictPolicy conflictPolicy)
Update existing page/blog post that has an existing draft
|
Content |
publishNewDraft(Content content,
Expansion... expansions)
Publishes the draft.
|
ContentDraftService.DraftValidator |
validator() |
public static final String INTERNAL_DRAFT
public LegacyContentDraftServiceImpl(PermissionManager permissionManager, ContentService contentService, DraftManager draftManager, PermissionCheckExemptions permissionCheckExemptions, AccessModeService accessModeService, DefaultCustomContentManager customContentManager)
public Content publishNewDraft(Content content, Expansion... expansions) throws ServiceException
ContentDraftServicepublishNewDraft in interface ContentDraftServiceNotFoundException - if the draft doesn't exist or the user
doesn't have permission to view itPermissionException - if the user does have permission to
modify this draftServiceExceptionpublic Content publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
ContentDraftServicepublishEditDraft in interface ContentDraftServicecontent - - page/blog post content, requires a valid content id of an existing draftconflictPolicy - - the policy to apply on a conflict, either abort or automerge. No mergeable conflicts
will still return a 409 even if policy is automergepublic void deleteDraft(ContentId draftId)
ContentDraftServicedeleteDraft in interface ContentDraftServicedraftId - - id of the draft to deletepublic ContentDraftService.DraftValidator validator()
validator in interface ContentDraftServiceCopyright © 2003–2021 Atlassian. All rights reserved.