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, putFuture
public RemoteContentDraftServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public com.atlassian.util.concurrent.Promise<Content> publishNewDraft(Content content, Expansion... expansions)
RemoteContentDraftService
publishNewDraft
in interface RemoteContentDraftService
public com.atlassian.util.concurrent.Promise<Content> publishEditDraft(Content content, ContentDraftService.ConflictPolicy conflictPolicy)
RemoteContentDraftService
publishEditDraft
in interface RemoteContentDraftService
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 automergepublic com.atlassian.util.concurrent.Promise<Void> deleteDraft(ContentId contentId)
RemoteContentDraftService
deleteDraft
in interface RemoteContentDraftService
contentId
- - id of the page/blogpost contentCopyright © 2003–2018 Atlassian. All rights reserved.