@ProviderType public interface AssetVersion extends Adaptable
AssetVersion
represents a particular version of an Asset
.
AssetVersion is created by AssetVersionManager
and retrieved via
AssetVersionManager.getVersion(String)
.
eg: // to create a version AssetVersionManager versionManager = resolver.adaptTo(AssetVersionManager.class); AssetVersion version = versionManager.createVersion("/path/to/asset/document.pdf", "Some label"); // to get existing versions Iterator<AssetVersion> versions = versionManager.listVersions("/path/to/asset/document.pdf"); ...
Implementor's Note: Implementations are required to provide an adapter to a read only
ValueMap
AssetVersionManager
,
ValueMap
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAssetPath()
Get path of the parent asset.
|
java.util.Calendar |
getCreated()
Get the creation date of this version.
|
java.lang.String |
getId()
Return the unique version id.
|
java.lang.String[] |
getLabels()
Returns all labels of this version.
|
java.lang.String |
getName()
Get name of this version.
|
java.lang.String |
getPath()
Get path of this version
|
Rendition |
getRendition(java.lang.String name)
Returns a named
Rendition if available. |
java.util.Iterator<Asset> |
listRelated(java.lang.String name)
Get all related Asset with the given name.
|
java.util.Iterator<AssetRelation> |
listRelations(java.lang.String name)
Get asset relations for a given relation name.
|
java.util.Iterator<? extends Rendition> |
listRenditions()
Returns an iterator for all
Rendition s of this asset version. |
java.lang.String[] getLabels()
java.lang.String getId()
java.lang.String getPath()
java.lang.String getAssetPath()
java.lang.String getName()
java.util.Calendar getCreated()
Rendition getRendition(java.lang.String name)
Rendition
if available.name
- Rendition name to searchAssetException
- If an error occurs trying to load the Rendition objectjava.util.Iterator<? extends Rendition> listRenditions()
Rendition
s of this asset version.java.util.Iterator<Asset> listRelated(java.lang.String name)
name
- of the relationjava.util.Iterator<AssetRelation> listRelations(java.lang.String name)
name
- Name of the relationAssetRelation
or an empty iterator if relations cannot be found with the given name.Copyright © 2010 - 2020 Adobe. All Rights Reserved