Class ProductPromotionsPopulator<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.ProductPromotionsPopulator<SOURCE,TARGET>
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class ProductPromotionsPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
extends AbstractProductPopulator<SOURCE,TARGET>
Populate the product data with product promotions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseSiteServiceprotected Converter<AbstractPromotionModel,PromotionData> protected PromotionsServiceprotected TimeServicevoidPopulate the target instance with values from the source instance.voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetPromotionsConverter(Converter<AbstractPromotionModel, PromotionData> promotionsConverter) voidsetPromotionsService(PromotionsService promotionsService) voidsetTimeService(TimeService timeService) Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
Constructor Details
-
ProductPromotionsPopulator
public ProductPromotionsPopulator()
-
-
Method Details
-
getPromotionsService
-
setPromotionsService
-
getPromotionsConverter
-
setPromotionsConverter
public void setPromotionsConverter(Converter<AbstractPromotionModel, PromotionData> promotionsConverter) -
getTimeService
-
setTimeService
-
getBaseSiteService
-
setBaseSiteService
-
populate
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
-