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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringMethod populating reporting group to use with the product.voidpopulate(MerchSnDocumentContainer source, Product target) Populate the target instance with values from the source instance.Method populating list of product categoriesprotected StringMethod populating product page URL.protected voidpopulatePrice(MerchSnDocumentContainer source, Product target) Method populating product specific details.
-
Constructor Details
-
MerchSnProductDetailsPopulator
public MerchSnProductDetailsPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<MerchSnDocumentContainer,Product> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
populatePrice
-
populateProductDetails
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
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
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
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.
-