Class PromotionsPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.product.converters.populator.PromotionsPopulator
-
- All Implemented Interfaces:
Populator<AbstractPromotionModel,PromotionData>
public class PromotionsPopulator extends java.lang.Object implements Populator<AbstractPromotionModel,PromotionData>
Converter implementation forAbstractPromotionModelas source andPromotionDataas target type.
-
-
Constructor Summary
Constructors Constructor Description PromotionsPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDescriptions(java.util.List<java.lang.String> descriptions, java.util.List<PromotionResultModel> promotionResults)protected java.util.List<PromotionResultModel>filter(java.util.List<PromotionResultModel> results, AbstractPromotionModel promotion)protected CartServicegetCartService()protected java.util.List<java.lang.String>getCouldFirePromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion)protected java.util.List<java.lang.String>getFiredPromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion)protected PromotionResultServicegetPromotionResultService()protected PromotionsServicegetPromotionService()voidpopulate(AbstractPromotionModel source, PromotionData target)Populate the target instance with values from the source instance.protected voidprocessPromotionMessages(AbstractPromotionModel source, PromotionData prototype)voidsetCartService(CartService cartService)voidsetPromotionResultService(PromotionResultService promotionResultService)voidsetPromotionService(PromotionsService promotionService)
-
-
-
Method Detail
-
setPromotionResultService
public void setPromotionResultService(PromotionResultService promotionResultService)
-
getPromotionResultService
protected PromotionResultService getPromotionResultService()
-
setPromotionService
public void setPromotionService(PromotionsService promotionService)
-
getPromotionService
protected PromotionsService getPromotionService()
-
setCartService
public void setCartService(CartService cartService)
-
getCartService
protected CartService getCartService()
-
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
-
processPromotionMessages
protected void processPromotionMessages(AbstractPromotionModel source, PromotionData prototype)
-
getCouldFirePromotionsMessages
protected java.util.List<java.lang.String> getCouldFirePromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion)
-
getFiredPromotionsMessages
protected java.util.List<java.lang.String> getFiredPromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion)
-
addDescriptions
protected void addDescriptions(java.util.List<java.lang.String> descriptions, java.util.List<PromotionResultModel> promotionResults)
-
filter
protected java.util.List<PromotionResultModel> filter(java.util.List<PromotionResultModel> results, AbstractPromotionModel promotion)
-
-