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.
-
-
-
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, then null is returned (this will only happen for relation created with older apiAsset.setRelation(String, String)
)- Returns:
- properties of the Asset Relation as
ModifiableValueMap
, returns null if no properties found.
-
getName
java.lang.String getName()
Returns the name of the relation- Returns:
- name of the relation
-
-