Class ProductImagePopulator
java.lang.Object
com.hybris.merchandising.converters.populators.ProductImagePopulator
- All Implemented Interfaces:
Populator<ProductIndexContainer,Product>
public class ProductImagePopulator
extends Object
implements Populator<ProductIndexContainer,Product>
Populates
ProductImagePopulator from ProductIndexContainer which encapsulates the information regarding the
indexed product details-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpopulate(ProductIndexContainer source, Product target) Populate the target instance with values from the source instance.populateProductImage(ProductIndexContainer source, String propertyName) Helper method to populate image information associated with the product.
-
Field Details
-
THUMBNAIL_IMAGE
- See Also:
-
MAIN_IMAGE
- See Also:
-
-
Constructor Details
-
ProductImagePopulator
public ProductImagePopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ProductIndexContainer,Product> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
populateProductImage
Helper method to populate image information associated with the product.- Parameters:
source- theProductIndexContainerrepresenting the Solr index.propertyName- the property name being retrieved from the index.- Returns:
- image information for the given key
-