Interface ProductAssetProvider<T extends ProductAsset>
- Type Parameters:
 T-
- All Known Implementing Classes:
 ExternalProductAssetProvider
public interface ProductAssetProvider<T extends ProductAsset>
Service used for fetching assets associated with products.
- 
Method Summary
Modifier and TypeMethodDescriptioncreateProductAsset(String productId, T asset, BatchContext<?> batchContext) voiddeleteProductAsset(String productId, String assetId, BatchContext<?> batchContext) readProductAssets(String productId, BatchContext<?> batchContext) Fetch any assets associated with the supplied product id.saveTranslations(String productId, String assetId, Locale locale, List<Translation> translations, BatchContext<?> batchContext) updateProductAsset(String productId, T asset, BatchContext<?> batchContext)  
- 
Method Details
- 
readProductAssets
Fetch any assets associated with the supplied product id.- Parameters:
 productId- The product id.- Returns:
 - The assets associated with the product.
 
 - 
createProductAsset
 - 
updateProductAsset
 - 
deleteProductAsset
 - 
saveTranslations
List<Translation> saveTranslations(String productId, String assetId, Locale locale, List<Translation> translations, BatchContext<?> batchContext)  
 -