public interface ProductAssetHandler
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAssetProperties(ResourceResolver resolver,
String assetReference)
Returns the rendering properties associated with the referenced asset.
|
String |
getHandlerName()
Returns the handler name.
|
String |
getReferencedAsset(Resource productAssetResource)
Returns the path of the asset that is referenced in the product asset.
|
String |
getThumbnailUrl(Resource productAssetResource,
String selectorString)
Returns the URL to the product's thumbnail image, based on the given selector string.
|
boolean |
isActive()
Indicates whether the handler is active or not.
|
boolean |
isSupportedAsset(Resource productAssetResource)
Indicates whether the product asset is supported or not.
|
boolean |
isSupportedReferencedAsset(ResourceResolver resolver,
String assetReference)
Indicates whether the asset (referenced by its path) is supported or not.
|
String getHandlerName()
Map<String,Object> getAssetProperties(ResourceResolver resolver, String assetReference)
resolver - The resource resolverassetReference - The path to the referenced assetString getReferencedAsset(Resource productAssetResource)
productAssetResource - The product asset resourceboolean isSupportedReferencedAsset(ResourceResolver resolver, String assetReference)
resolver - The resource resolverassetReference - The path to the referenced assetboolean isSupportedAsset(Resource productAssetResource)
productAssetResource - The product asset resourceString getThumbnailUrl(Resource productAssetResource, String selectorString)
productAssetResource - The product assetselectorString - The selector stringboolean isActive()
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"