Package com.adobe.granite.asset.api
Interface AssetRelation
-
@ProviderType public interface AssetRelationAssetRelationdefines theAssetrelation.To get a relation see
Asset.listRelations(String). To create a relation seeAsset.addRelation(String, String, java.util.Map)andAsset.addRelation(String, String)To update additional properties for a relation seegetProperties()- Since:
- 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssetgetAsset()Returns the relatedAssetjava.lang.StringgetName()Returns the name of the relationModifiableValueMapgetProperties()Returns additional properties for the Asset relation.ValueMapgetValueMap()Returns the additional properties for the Asset relation as a ValueMap.
-
-
-
Method Detail
-
getAsset
Asset getAsset()
Returns the relatedAsset- Returns:
- asset instance of related asset
-
getProperties
ModifiableValueMap getProperties()
Returns additional properties for the Asset relation. It returns aModifiableValueMap, that can be used to modify existing relation properties. If there are no properties or the user does not have write permissions, then null is returned- Returns:
- properties of the Asset Relation as
ModifiableValueMap, returns null if no properties found.
-
getValueMap
ValueMap getValueMap()
Returns the additional properties for the Asset relation as a ValueMap.- Returns:
- properties of the Asset Relation as
ValueMap, will not be null
-
getName
java.lang.String getName()
Returns the name of the relation- Returns:
- name of the relation
-
-