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.sun.jersey.api.client.WebResource |
newContentWebResource() |
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.sun.jersey.api.client.WebResource newContentWebResource()
Copyright © 2003–2016 Atlassian. All rights reserved.