public class RemoteContentVersionServiceImpl extends AbstractRemoteService<ContentVersionService> implements RemoteContentVersionService
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteContentVersionServiceImpl.RemoteVersionFinderImpl |
RemoteContentVersionService.RemoteParameterVersionFinder, RemoteContentVersionService.RemoteVersionFinder| 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)
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)
Restore on version of content, update current content with that version then increment version number of current version.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, 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 - expansionspublic com.atlassian.util.concurrent.Promise<Void> delete(ContentId contentId, int versionNumber)
RemoteContentVersionServicedelete in interface RemoteContentVersionServicecontentId - contentIdversionNumber - version number to deletepublic com.atlassian.util.concurrent.Promise<Version> restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
RemoteContentVersionServicerestore in interface RemoteContentVersionServicecontentId - contentIdversionRestoreParameters - options for restoring version, including version number, message and restoreTitleexpansions - expansion for newly created version.Copyright © 2003–2017 Atlassian. All rights reserved.