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 class
RemoteContentVersionServiceImpl.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 String
VERSION
-
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.RemoteVersionFinder
find(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:RemoteContentVersionService
Returns a finder interface for setting search criterion for versions or content.- Specified by:
find
in 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:RemoteContentVersionService
delete the version of content.- Specified by:
delete
in 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:RemoteContentVersionService
Restore on version of content, update current content with that version then increment version number of current version.- Specified by:
restore
in 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:RemoteContentVersionService
delete the version of content.- Specified by:
deleteCompletionStage
in interfaceRemoteContentVersionService
- Parameters:
contentId
- contentIdversionNumber
- version number to delete
-
restoreCompletionStage
public CompletionStage<Version> restoreCompletionStage(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
Description copied from interface:RemoteContentVersionService
Restore on version of content, update current content with that version then increment version number of current version.- Specified by:
restoreCompletionStage
in 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
-
-