@ExperimentalApi public interface RemoteContentDraftService
ContentDraftServiceimplementation that communicates with Confluence remotely using the Confluence REST API.
Provides future returning equivalents for the methods in ContentDraftService.
|Modifier and Type||Method and Description|
Publishes the draft.
com.atlassian.util.concurrent.Promise<Content> publishNewDraft(Content content, Expansion... expansions)
content:- new content to be created
expansions:- An array list of properties to expand on the content.
NotFoundException- if the draft doesn't exist or the user doesn't have permission to view it
PermissionException- if the user does have permission to modify this draft
com.atlassian.util.concurrent.Promise<Content> publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
content- - page/blogpost content
conflictPolicy- - the policy to apply on a conflict, either abort or automerge. No mergeable conflicts will still return a 409 even if policy is automerge
NotFoundException- if the draft doesn't exist
ServiceException- if the updated content is missed spacekey or type
Copyright © 2003–2016 Atlassian. All rights reserved.