Class ProductReviewsPopulator<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.ProductReviewsPopulator<SOURCE,TARGET>
-
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class ProductReviewsPopulator<SOURCE extends ProductModel,TARGET extends ProductData> extends AbstractProductPopulator<SOURCE,TARGET>
Populate the product data reviews for the product
-
-
Constructor Summary
Constructors Constructor Description ProductReviewsPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommonI18NServicegetCommonI18NService()protected Converter<CustomerReviewModel,ReviewData>getCustomerReviewConverter()protected CustomerReviewServicegetCustomerReviewService()voidpopulate(SOURCE productModel, TARGET productData)Populate the target instance with values from the source instance.voidsetCommonI18NService(CommonI18NService commonI18NService)voidsetCustomerReviewConverter(Converter<CustomerReviewModel,ReviewData> customerReviewConverter)voidsetCustomerReviewService(CustomerReviewService customerReviewService)-
Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
-
-
-
Method Detail
-
getCustomerReviewService
protected CustomerReviewService getCustomerReviewService()
-
setCustomerReviewService
public void setCustomerReviewService(CustomerReviewService customerReviewService)
-
getCustomerReviewConverter
protected Converter<CustomerReviewModel,ReviewData> getCustomerReviewConverter()
-
setCustomerReviewConverter
public void setCustomerReviewConverter(Converter<CustomerReviewModel,ReviewData> customerReviewConverter)
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
populate
public void populate(SOURCE productModel, TARGET productData) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Parameters:
productModel- the source objectproductData- the target to fill- Throws:
ConversionException- if an error occurs
-
-