Class PromotionExtendedPopulator
java.lang.Object
de.hybris.platform.commercefacades.promotion.converters.populator.PromotionExtendedPopulator
- All Implemented Interfaces:
Populator<AbstractPromotionModel,PromotionData>
public class PromotionExtendedPopulator
extends Object
implements Populator<AbstractPromotionModel,PromotionData>
Populator implementation for
AbstractPromotionModel as source and
PromotionData as target type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<PromotionRestrictionData>convertRestrictions(Collection<AbstractPromotionRestrictionModel> restrictions) voidpopulate(AbstractPromotionModel source, PromotionData target) Populate the target instance with values from the source instance.voidsetPromotionRestrictionConverter(Converter<AbstractPromotionRestrictionModel, PromotionRestrictionData> promotionRestrictionConverter)
-
Constructor Details
-
PromotionExtendedPopulator
public PromotionExtendedPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractPromotionModel,PromotionData> - Parameters:
source- the source objecttarget- the target to fill
-
convertRestrictions
protected Collection<PromotionRestrictionData> convertRestrictions(Collection<AbstractPromotionRestrictionModel> restrictions) -
getPromotionRestrictionConverter
protected Converter<AbstractPromotionRestrictionModel,PromotionRestrictionData> getPromotionRestrictionConverter() -
setPromotionRestrictionConverter
public void setPromotionRestrictionConverter(Converter<AbstractPromotionRestrictionModel, PromotionRestrictionData> promotionRestrictionConverter)
-