Package com.adobe.granite.asset.api
Interface AssetRelation
-
@ProviderType public interface AssetRelation
AssetRelation
defines theAsset
relation.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 Asset
getAsset()
Returns the relatedAsset
java.lang.String
getName()
Returns the name of the relationModifiableValueMap
getProperties()
Returns additional properties for the Asset relation.ValueMap
getValueMap()
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
-
-