Class RemoteContentVersionServiceImpl
- java.lang.Object
 - 
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentVersionService>
 - 
- com.atlassian.confluence.rest.client.impl.RemoteContentVersionServiceImpl
 
 
 
- 
- All Implemented Interfaces:
 RemoteContentVersionService
public class RemoteContentVersionServiceImpl extends AbstractRemoteService<ContentVersionService> implements RemoteContentVersionService
Remote service impl for testing ContentVersionService via REST client. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classRemoteContentVersionServiceImpl.RemoteVersionFinderImpl- 
Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.RemoteContentVersionService
RemoteContentVersionService.RemoteParameterVersionFinder, RemoteContentVersionService.RemoteVersionFinder 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringVERSION- 
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)Deprecated.since 8.8RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>deleteCompletionStage(ContentId contentId, int versionNumber)Delete the version of content.RemoteContentVersionService.RemoteVersionFinderfind(Expansion... expansions)Returns a finder interface for setting search criterion for versions or content.CompletionStage<Version>restoreCompletionStage(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)Restore on version of content, update current content with that version then increment version number of current version.- 
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, getFutureOptional, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteContentVersionService
delete, restore 
 - 
 
 - 
 
- 
- 
Field Detail
- 
VERSION
public static final String VERSION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
RemoteContentVersionServiceImpl
public RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor)
- Since:
 - 8.8
 
 
- 
RemoteContentVersionServiceImpl
@Deprecated public RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
Deprecated.since 8.8 
 - 
 
- 
Method Detail
- 
find
public RemoteContentVersionService.RemoteVersionFinder find(Expansion... expansions)
Description copied from interface:RemoteContentVersionServiceReturns a finder interface for setting search criterion for versions or content.- Specified by:
 findin interfaceRemoteContentVersionService- Parameters:
 expansions- expansions- Returns:
 - VersionFinder
 
 
- 
deleteCompletionStage
public CompletionStage<Void> deleteCompletionStage(ContentId contentId, int versionNumber)
Description copied from interface:RemoteContentVersionServiceDelete the version of content.- Specified by:
 deleteCompletionStagein interfaceRemoteContentVersionService- Parameters:
 contentId- contentIdversionNumber- version number to delete
 
- 
restoreCompletionStage
public CompletionStage<Version> restoreCompletionStage(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
Description copied from interface:RemoteContentVersionServiceRestore on version of content, update current content with that version then increment version number of current version.- Specified by:
 restoreCompletionStagein interfaceRemoteContentVersionService- Parameters:
 contentId- contentIdversionRestoreParameters- options for restoring version, including version number, message and restoreTitleexpansions- expansion for newly created version.- Returns:
 - The newly current version with expansions
 
 
 - 
 
 -