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 Default Methods Deprecated Methods Modifier and Type Method Description default com.atlassian.util.concurrent.Promise<Void>delete(ContentId contentId, int versionNumber)Deprecated.since 8.7.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.default com.atlassian.util.concurrent.Promise<Version>restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)Deprecated.since 8.7.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
@Deprecated default com.atlassian.util.concurrent.Promise<Void> delete(ContentId contentId, int versionNumber)
Deprecated.since 8.7. UsedeleteCompletionStage(ContentId, int)instead.Delete the version of content.- Parameters:
contentId- contentIdversionNumber- version number to delete
-
restore
@Deprecated default com.atlassian.util.concurrent.Promise<Version> restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
Deprecated.since 8.7. UserestoreCompletionStage(ContentId, VersionRestoreParameters, Expansion...)instead.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
-
-