public class RemoteContentDraftServiceImpl extends AbstractRemoteService<ContentDraftService> implements RemoteContentDraftService
| Constructor and Description |
|---|
RemoteContentDraftServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
| 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.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuturepublic RemoteContentDraftServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public com.atlassian.util.concurrent.Promise<Content> publishNewDraft(Content content, Expansion... expansions)
RemoteContentDraftServicepublishNewDraft in interface RemoteContentDraftServicepublic com.atlassian.util.concurrent.Promise<Content> publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
RemoteContentDraftServicepublishEditDraft in interface RemoteContentDraftServicecontent - - 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 automergepublic com.atlassian.util.concurrent.Promise<Void> deleteDraft(ContentId contentId)
RemoteContentDraftServicedeleteDraft in interface RemoteContentDraftServicecontentId - - id of the page/blogpost contentCopyright © 2003–2018 Atlassian. All rights reserved.