Class ContentVersionServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.ContentVersionServiceImpl
- All Implemented Interfaces:
 ContentVersionService
Implement ContentVersionService
- Since:
 - 5.10
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.ContentVersionService
ContentVersionService.ParameterVersionFinder, ContentVersionService.Validator, ContentVersionService.VersionFinder - 
Constructor Summary
ConstructorsConstructorDescriptionContentVersionServiceImpl(VersionFinderFactory versionFinderFactory, ContentEntityManagerInternal contentEntityManagerInternal, PermissionManager permissionManager, VersionFactory versionFactory, ContentFactory contentFactory)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidDelete the version of content.Returns a finder interface for setting search criterion for versions or content.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.return an instance ofContentVersionService.Validator 
- 
Constructor Details
- 
ContentVersionServiceImpl
public ContentVersionServiceImpl(VersionFinderFactory versionFinderFactory, ContentEntityManagerInternal contentEntityManagerInternal, PermissionManager permissionManager, VersionFactory versionFactory, ContentFactory contentFactory)  
 - 
 - 
Method Details
- 
find
Description copied from interface:ContentVersionServiceReturns a finder interface for setting search criterion for versions or content.- Specified by:
 findin interfaceContentVersionService- Returns:
 - VersionFinder
 
 - 
validator
Description copied from interface:ContentVersionServicereturn an instance ofContentVersionService.Validator- Specified by:
 validatorin interfaceContentVersionService- Returns:
 ContentVersionService.Validator
 - 
delete
Description copied from interface:ContentVersionServiceDelete the version of content. When one version is deleted, all the versions after this version will have their version number reduced by one. e.g.: remove of version 3, will result version 4 becomes new version 3 and so on.- Specified by:
 deletein interfaceContentVersionService- Parameters:
 contentId- ContentIdversionNumber- version to delete
 - 
restore
public Version restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions) Description copied from interface:ContentVersionServiceRestore on version of content, update current content with that version then increment version number of current version. e.g.: One content had 3 versions. Restore version 2 will create a new version 4, which has the same content as version 2. The number of the version to restore, comment for the restore and other options are contained in theVersionRestoreParameters- Specified by:
 restorein interfaceContentVersionService- Parameters:
 contentId- contentIdversionRestoreParameters- A wrapper for all parameters related to restore a version.VersionRestoreParameters.expansions- expansions array- Returns:
 - The new current version with expansions
 
 
 -