Interface RemoteContentVersionService
- All Known Implementing Classes:
RemoteContentVersionServiceImpl
@ExperimentalApi
public interface RemoteContentVersionService
Remote client for ContentVersionService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptiondeleteCompletionStage
(ContentId contentId, int versionNumber) Delete the version of content.Returns a finder interface for setting search criterion for versions or content.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 Details
-
find
Returns a finder interface for setting search criterion for versions or content.- Parameters:
expansions
- expansions- Returns:
- VersionFinder
-
deleteCompletionStage
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
-