public class ContentVersionServiceImpl extends Object implements ContentVersionService
ContentVersionService.ParameterVersionFinder, ContentVersionService.Validator, ContentVersionService.VersionFinder| Constructor and Description |
|---|
ContentVersionServiceImpl(VersionFinderFactory versionFinderFactory,
ContentEntityManagerInternal contentEntityManagerInternal,
PermissionManager permissionManager,
VersionFactory versionFactory,
ContentFactory contentFactory) |
| 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 |
public ContentVersionServiceImpl(VersionFinderFactory versionFinderFactory, ContentEntityManagerInternal contentEntityManagerInternal, PermissionManager permissionManager, VersionFactory versionFactory, ContentFactory contentFactory)
public ContentVersionService.VersionFinder find(Expansion... expansions)
ContentVersionServicefind in interface ContentVersionServicepublic ContentVersionService.Validator validator()
ContentVersionServiceContentVersionService.Validatorvalidator in interface ContentVersionServiceContentVersionService.Validatorpublic void delete(ContentId contentId, int versionNumber)
ContentVersionServicedelete in interface ContentVersionServicecontentId - ContentIdversionNumber - version to deletepublic Version restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
ContentVersionServiceVersionRestoreParametersrestore in interface ContentVersionServicecontentId - contentIdversionRestoreParameters - A wrapper for all parameters related to restore a version. VersionRestoreParameters .expansions - expansions arrayCopyright © 2003–2018 Atlassian. All rights reserved.