Class MerchSnProductDetailsPopulator

java.lang.Object
com.hybris.merchandising.converters.populators.MerchSnProductDetailsPopulator
All Implemented Interfaces:
Populator<MerchSnDocumentContainer,Product>

public class MerchSnProductDetailsPopulator extends Object implements Populator<MerchSnDocumentContainer,Product>
Class populating product details to merch product from indexed document container
  • Constructor Details

    • MerchSnProductDetailsPopulator

      public MerchSnProductDetailsPopulator()
  • Method Details

    • populate

      public void populate(MerchSnDocumentContainer source, Product target) throws ConversionException
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<MerchSnDocumentContainer,Product>
      Parameters:
      source - the source object
      target - the target to fill
      Throws:
      ConversionException - if an error occurs
    • populatePrice

      protected void populatePrice(MerchSnDocumentContainer source, Product target)
    • populateProductDetails

      protected Map<String,Object> populateProductDetails(MerchSnDocumentContainer source)
      Method populating product specific details.
      Parameters:
      source - Object representing indexed document and configuration being used.
      Returns:
      Map contains name value pair of product properties.
    • populateCategory

      protected List<String> populateCategory(MerchSnDocumentContainer source)
      Method populating list of product categories
      Parameters:
      source - Object representing indexed document and configuration being used.
      Returns:
      List of categories that the product is in.
    • populatePageUrl

      protected String populatePageUrl(MerchSnDocumentContainer source)
      Method populating product page URL. It add baseCatalogPageUrl set in configuration to url field value.
      Parameters:
      source - Object representing indexed document and configuration being used.
      Returns:
      product page URL.
    • getReportingGroup

      protected String getReportingGroup(MerchSnDocumentContainer source)
      Method populating reporting group to use with the product. It uses rollup strategy field from merchandising configuration to populate proper value
      Parameters:
      source - Object representing indexed document and configuration being used.
      Returns:
      the reporting group to use for the product.