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, putFuturepublic static final String VERSION
public RemoteContentVersionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
public RemoteContentVersionService.RemoteVersionFinder find(Expansion... expansions)
RemoteContentVersionServicefind in interface RemoteContentVersionServiceexpansions - expansions@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(ContentId contentId, int versionNumber)
deleteCompletionStage(ContentId, int) instead.RemoteContentVersionServicedelete in interface RemoteContentVersionServicecontentId - 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.RemoteContentVersionServicerestore in interface RemoteContentVersionServicecontentId - contentIdversionRestoreParameters - options for restoring version, including version number, message and restoreTitleexpansions - expansion for newly created version.public CompletionStage<Void> deleteCompletionStage(ContentId contentId, int versionNumber)
RemoteContentVersionServicedeleteCompletionStage in interface RemoteContentVersionServicecontentId - contentIdversionNumber - version number to deletepublic CompletionStage<Version> restoreCompletionStage(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
RemoteContentVersionServicerestoreCompletionStage in interface RemoteContentVersionServicecontentId - contentIdversionRestoreParameters - options for restoring version, including version number, message and restoreTitleexpansions - expansion for newly created version.Copyright © 2003–2020 Atlassian. All rights reserved.