public class RemoteContentVersionServiceImpl extends AbstractRemoteService<ContentVersionService> implements RemoteContentVersionService
Modifier and Type | Class and Description |
---|---|
class |
RemoteContentVersionServiceImpl.RemoteVersionFinderImpl |
RemoteContentVersionService.RemoteParameterVersionFinder, RemoteContentVersionService.RemoteVersionFinder
Modifier and Type | Field and Description |
---|---|
static String |
VERSION |
provider
Constructor and Description |
---|
RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Void> |
delete(ContentId contentId,
int versionNumber)
Deprecated.
since 7.0.1. Use
deleteCompletionStage(ContentId, int) instead. |
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. Use
restoreCompletionStage(ContentId, VersionRestoreParameters, Expansion...) instead. |
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.
|
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
public static final String VERSION
public RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
public RemoteContentVersionService.RemoteVersionFinder find(Expansion... expansions)
RemoteContentVersionService
find
in interface RemoteContentVersionService
expansions
- expansions@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(ContentId contentId, int versionNumber)
deleteCompletionStage(ContentId, int)
instead.RemoteContentVersionService
delete
in interface RemoteContentVersionService
contentId
- contentIdversionNumber
- version number to delete@Deprecated public com.atlassian.util.concurrent.Promise<Version> restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
restoreCompletionStage(ContentId, VersionRestoreParameters, Expansion...)
instead.RemoteContentVersionService
restore
in interface RemoteContentVersionService
contentId
- contentIdversionRestoreParameters
- options for restoring version, including version number, message and restoreTitleexpansions
- expansion for newly created version.public CompletionStage<Void> deleteCompletionStage(ContentId contentId, int versionNumber)
RemoteContentVersionService
deleteCompletionStage
in interface RemoteContentVersionService
contentId
- contentIdversionNumber
- version number to deletepublic CompletionStage<Version> restoreCompletionStage(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
RemoteContentVersionService
restoreCompletionStage
in interface RemoteContentVersionService
contentId
- contentIdversionRestoreParameters
- options for restoring version, including version number, message and restoreTitleexpansions
- expansion for newly created version.Copyright © 2003–2021 Atlassian. All rights reserved.