Class RemoteContentBlueprintServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentBlueprintService>
-
- com.atlassian.confluence.rest.client.RemoteContentBlueprintServiceImpl
-
- All Implemented Interfaces:
RemoteContentBlueprintService
public class RemoteContentBlueprintServiceImpl extends AbstractRemoteService<ContentBlueprintService> implements RemoteContentBlueprintService
This service implementation is used in create-content plugin RemoteContentBlueprintServiceAcceptanceTest
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Constructor Description RemoteContentBlueprintServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.sun.jersey.api.client.WebResource
newContentWebResource()
com.atlassian.util.concurrent.Promise<Content>
publishInstance(Content content, Expansion... expansions)
Deprecated.since 7.0.1.CompletionStage<Content>
publishInstanceCompletionStage(Content content, Expansion... expansions)
Publishes the draft from blueprints.-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
-
-
-
Constructor Detail
-
RemoteContentBlueprintServiceImpl
public RemoteContentBlueprintServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
publishInstance
@Deprecated public com.atlassian.util.concurrent.Promise<Content> publishInstance(Content content, Expansion... expansions)
Deprecated.since 7.0.1. UsepublishInstanceCompletionStage(Content, Expansion...)
instead.Description copied from interface:RemoteContentBlueprintService
Publishes the draft from blueprints. This will change the status of the current draft to current.- Specified by:
publishInstance
in interfaceRemoteContentBlueprintService
- Parameters:
content
- new content to be createdexpansions
- an array list of properties to expand on the content.- Returns:
- a Promise that resolves to the published content, with the given expansions
-
publishInstanceCompletionStage
public CompletionStage<Content> publishInstanceCompletionStage(Content content, Expansion... expansions)
Description copied from interface:RemoteContentBlueprintService
Publishes the draft from blueprints. This will change the status of the current draft to current.- Specified by:
publishInstanceCompletionStage
in interfaceRemoteContentBlueprintService
- Parameters:
content
- new content to be createdexpansions
- an array list of properties to expand on the content.- Returns:
- a CompletionStage that resolves to the published content, with the given expansions
-
newContentWebResource
public com.sun.jersey.api.client.WebResource newContentWebResource()
-
-