@ConsumerType
public interface ProductAssetHandler
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAssetProperties(ResourceResolver resolver,
java.lang.String assetReference)
Returns the rendering properties associated with the referenced asset.
|
java.lang.String |
getHandlerName()
Returns the handler name.
|
java.lang.String |
getReferencedAsset(Resource productAssetResource)
Returns the path of the asset that is referenced in the product asset.
|
java.lang.String |
getThumbnailUrl(Resource productAssetResource,
java.lang.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,
java.lang.String assetReference)
Indicates whether the asset (referenced by its path) is supported or not.
|
java.lang.String getHandlerName()
java.util.Map<java.lang.String,java.lang.Object> getAssetProperties(ResourceResolver resolver, java.lang.String assetReference)
resolver
- The resource resolverassetReference
- The path to the referenced assetjava.lang.String getReferencedAsset(Resource productAssetResource)
productAssetResource
- The product asset resourceboolean isSupportedReferencedAsset(ResourceResolver resolver, java.lang.String assetReference)
resolver
- The resource resolverassetReference
- The path to the referenced assetboolean isSupportedAsset(Resource productAssetResource)
productAssetResource
- The product asset resourcejava.lang.String getThumbnailUrl(Resource productAssetResource, java.lang.String selectorString)
productAssetResource
- The product assetselectorString
- The selector stringboolean isActive()
Copyright © 2010 - 2020 Adobe. All Rights Reserved