public class ContentDraftServiceImpl extends Object implements ContentDraftService
ContentDraftService.ConflictPolicy, ContentDraftService.DraftErrorCodes, ContentDraftService.DraftValidator
Constructor and Description |
---|
ContentDraftServiceImpl(ContentDraftService legacyContentDraftServiceImpl,
ContentDraftService sharedContentDraftServiceImpl,
SharedDraftsDarkFeatureHelper sharedDraftsDarkFeatureHelper) |
Modifier and Type | Method and Description |
---|---|
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, SharedDraftsDarkFeatureHelper sharedDraftsDarkFeatureHelper)
public Content publishNewDraft(Content content, Expansion... expansions)
ContentDraftService
publishNewDraft
in interface ContentDraftService
public Content publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
ContentDraftService
publishEditDraft
in interface ContentDraftService
content
- - 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 ContentDraftService.DraftValidator validator()
validator
in interface ContentDraftService
Copyright © 2003–2016 Atlassian. All rights reserved.