Class ProductPrimaryImagePopulator<SOURCE extends ProductModel,TARGET extends ProductData>

java.lang.Object
de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
de.hybris.platform.commercefacades.product.converters.populator.AbstractProductImagePopulator<SOURCE,TARGET>
de.hybris.platform.commercefacades.product.converters.populator.ProductPrimaryImagePopulator<SOURCE,TARGET>
All Implemented Interfaces:
Populator<SOURCE,TARGET>

public class ProductPrimaryImagePopulator<SOURCE extends ProductModel,TARGET extends ProductData> extends AbstractProductImagePopulator<SOURCE,TARGET>
Populate the product data with the product's primary image
  • Constructor Details

    • ProductPrimaryImagePopulator

      public ProductPrimaryImagePopulator()
  • Method Details

    • populate

      public void populate(SOURCE productModel, TARGET productData) throws ConversionException
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Parameters:
      productModel - the source object
      productData - the target to fill
      Throws:
      ConversionException - if an error occurs
    • getPrimaryImageMediaContainer

      protected MediaContainerModel getPrimaryImageMediaContainer(SOURCE productModel)