public class ContentDraftServiceImpl extends Object implements ContentDraftService
ContentDraftService.ConflictPolicy, ContentDraftService.DraftErrorCodes, ContentDraftService.DraftValidator| Constructor and Description | 
|---|
ContentDraftServiceImpl(ContentDraftService legacyContentDraftServiceImpl,
                       ContentDraftService sharedContentDraftServiceImpl,
                       CollaborativeEditingHelper collaborativeEditingHelper,
                       ContentEntityManager contentEntityManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
deleteDraft(ContentId contentId)
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 ContentDraftServiceImpl(ContentDraftService legacyContentDraftServiceImpl, ContentDraftService sharedContentDraftServiceImpl, CollaborativeEditingHelper collaborativeEditingHelper, ContentEntityManager contentEntityManager)
public Content publishNewDraft(Content content, Expansion... expansions)
ContentDraftServicepublishNewDraft in interface ContentDraftServicepublic 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 contentId)
ContentDraftServicedeleteDraft in interface ContentDraftServicecontentId - - id of the draft to deletepublic ContentDraftService.DraftValidator validator()
validator in interface ContentDraftServiceCopyright © 2003–2020 Atlassian. All rights reserved.