@ExperimentalApi
public interface ContentVersionService
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | ContentVersionService.ParameterVersionFinderFinder interface that allows to fetchMany(PageRequest) operation | 
| static interface  | ContentVersionService.ValidatorValidator provide validation on operations of this service. | 
| static interface  | ContentVersionService.VersionFinderFinder interface that allows to fetchOne() to find A versioned content. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | delete(ContentId contentId,
      int versionNumber)Delete the version of content. | 
| ContentVersionService.VersionFinder | find(Expansion... expansions)Returns a finder interface for setting search criterion for versions or content. | 
| 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. | 
| ContentVersionService.Validator | validator()return an instance of  ContentVersionService.Validator | 
ContentVersionService.VersionFinder find(Expansion... expansions)
expansions - ContentVersionService.Validator validator()
ContentVersionService.ValidatorContentVersionService.Validatorvoid delete(ContentId contentId, int versionNumber)
contentId - ContentIdversionNumber - version to deleteVersion restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
VersionRestoreParameterscontentId - contentIdversionRestoreParameters - A wrapper for all parameters related to restore a version. VersionRestoreParameters .expansions - expansions arrayCopyright © 2003–2017 Atlassian. All rights reserved.