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 executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<Void>delete(ContentId contentId, int versionNumber)Deprecated.since 7.0.1.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.com.atlassian.util.concurrent.Promise<Version>restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)Deprecated.since 7.0.1.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, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
-
-
-
-
Field Detail
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoteContentVersionServiceImpl
public RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
-
-
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
-
delete
@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(ContentId contentId, int versionNumber)
Deprecated.since 7.0.1. UsedeleteCompletionStage(ContentId, int)instead.Description copied from interface:RemoteContentVersionServicedelete the version of content.- Specified by:
deletein interfaceRemoteContentVersionService- Parameters:
contentId- contentIdversionNumber- version number to delete
-
restore
@Deprecated public com.atlassian.util.concurrent.Promise<Version> restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
Deprecated.since 7.0.1. UserestoreCompletionStage(ContentId, VersionRestoreParameters, Expansion...)instead.Description copied from interface:RemoteContentVersionServiceRestore on version of content, update current content with that version then increment version number of current version.- Specified by:
restorein 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
-
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
-
-