public interface AssetVersionManager
AssetVersionManager
provides methods to manage AssetVersion
s.
AssetVersionManager is created by adapting ResourceResolver
to AssetVersionManager
AssetVersionManager versionManager = resolver.adaptTo(AssetVersionManager.class);
Modifier and Type | Method and Description |
---|---|
AssetVersion |
createVersion(java.lang.String assetPath,
java.lang.String label)
Creates a new version of an
Asset . |
AssetVersion |
getVersion(java.lang.String versionId)
Returns an
AssetVersion corresponding to the given versionId. |
java.util.Iterator<? extends AssetVersion> |
listVersions(java.lang.String assetPath)
Lists all available versions at the given path.
|
Asset |
restore(java.lang.String versionId)
Restores an
Asset . |
AssetVersion createVersion(java.lang.String assetPath, java.lang.String label)
Asset
.assetPath
- Absolute path of the asset to versionlabel
- Version label to be added to the newly created versionAssetException
- if version cannot be created.Asset restore(java.lang.String versionId)
Asset
.versionId
- version ID to be restoredAsset
AssetException
- if version with the given ID cannot be restoredAssetVersion getVersion(java.lang.String versionId)
AssetVersion
corresponding to the given versionId.versionId
- version ID to be looked upjava.util.Iterator<? extends AssetVersion> listVersions(java.lang.String assetPath)
assetPath
- Absolute path of the AssetAssetVersion
s of the given path or an empty iterator if no version has been created yetAssetException
- if versions cannot be retrieved for the given Asset path"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"