Class PromotionExtendedPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.promotion.converters.populator.PromotionExtendedPopulator
-
- All Implemented Interfaces:
Populator<AbstractPromotionModel,PromotionData>
public class PromotionExtendedPopulator extends java.lang.Object implements Populator<AbstractPromotionModel,PromotionData>
Populator implementation forAbstractPromotionModelas source andPromotionDataas target type.
-
-
Constructor Summary
Constructors Constructor Description PromotionExtendedPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<PromotionRestrictionData>convertRestrictions(java.util.Collection<AbstractPromotionRestrictionModel> restrictions)protected Converter<AbstractPromotionRestrictionModel,PromotionRestrictionData>getPromotionRestrictionConverter()voidpopulate(AbstractPromotionModel source, PromotionData target)Populate the target instance with values from the source instance.voidsetPromotionRestrictionConverter(Converter<AbstractPromotionRestrictionModel,PromotionRestrictionData> promotionRestrictionConverter)
-
-
-
Method Detail
-
populate
public void populate(AbstractPromotionModel source, PromotionData target)
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 java.util.Collection<PromotionRestrictionData> convertRestrictions(java.util.Collection<AbstractPromotionRestrictionModel> restrictions)
-
getPromotionRestrictionConverter
protected Converter<AbstractPromotionRestrictionModel,PromotionRestrictionData> getPromotionRestrictionConverter()
-
setPromotionRestrictionConverter
public void setPromotionRestrictionConverter(Converter<AbstractPromotionRestrictionModel,PromotionRestrictionData> promotionRestrictionConverter)
-
-