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)
ContentVersionService
find
in interface ContentVersionService
public ContentVersionService.Validator validator()
ContentVersionService
ContentVersionService.Validator
validator
in interface ContentVersionService
ContentVersionService.Validator
public void delete(ContentId contentId, int versionNumber)
ContentVersionService
delete
in interface ContentVersionService
contentId
- ContentIdversionNumber
- version to deletepublic Version restore(ContentId contentId, VersionRestoreParameters versionRestoreParameters, Expansion... expansions)
ContentVersionService
VersionRestoreParameters
restore
in interface ContentVersionService
contentId
- contentIdversionRestoreParameters
- A wrapper for all parameters related to restore a version. VersionRestoreParameters
.expansions
- expansions arrayCopyright © 2003–2016 Atlassian. All rights reserved.