@ExperimentalApi
public interface RemoteContentDraftService
ContentDraftService implementation 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 |
|---|---|
com.atlassian.util.concurrent.Promise<Void> |
deleteDraft(ContentId contentId)
Deletes the draft.
|
com.atlassian.util.concurrent.Promise<Content> |
publishEditDraft(Content content,
ContentDraftService.ConflictPolicy conflictPolicy)
Update content
|
com.atlassian.util.concurrent.Promise<Content> |
publishNewDraft(Content content,
Expansion... expansions)
Publishes the draft.
|
com.atlassian.util.concurrent.Promise<Content> publishNewDraft(Content content, Expansion... expansions)
content: - new content to be createdexpansions: - 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 itPermissionException - if the user does have permission to modify this draftcom.atlassian.util.concurrent.Promise<Content> publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
content - - page/blogpost contentconflictPolicy - - the policy to apply on a conflict, either abort or automerge. No mergeable conflicts will still return a 409 even if policy is automergeNotFoundException - if the draft doesn't existServiceException - if the updated content is missed spacekey or typeCopyright © 2003–2021 Atlassian. All rights reserved.