Interface RemoteContentVersionService
-
- All Known Implementing Classes:
RemoteContentVersionServiceImpl
@ExperimentalApi public interface RemoteContentVersionServiceRemote client for ContentVersionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRemoteContentVersionService.RemoteParameterVersionFinderstatic interfaceRemoteContentVersionService.RemoteVersionFinder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<Void>delete(ContentId contentId, int versionNumber)delete the version of content.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)Restore on version of content, update current content with that version then increment version number of current version.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.
-
-
-
Method Detail
-
find
RemoteContentVersionService.RemoteVersionFinder find(Expansion... expansions)
Returns a finder interface for setting search criterion for versions or content.- Parameters:
expansions- expansions- Returns:
- VersionFinder
-
delete
com.atlassian.util.concurrent.Promise<Void> delete(ContentId contentId, int versionNumber)
delete the version of content.- Parameters:
contentId- contentIdversionNumber- version number to delete
-
restore
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.- 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
CompletionStage<Void> deleteCompletionStage(ContentId contentId, int versionNumber)
delete the version of content.- Parameters:
contentId- contentIdversionNumber- version number to delete
-
restoreCompletionStage
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.- 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
-
-