Class PromotionsPopulator
java.lang.Object
de.hybris.platform.commercefacades.product.converters.populator.PromotionsPopulator
- All Implemented Interfaces:
Populator<AbstractPromotionModel,PromotionData>
public class PromotionsPopulator
extends Object
implements Populator<AbstractPromotionModel,PromotionData>
Converter implementation for
AbstractPromotionModel as source and
PromotionData as target type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDescriptions(List<String> descriptions, List<PromotionResultModel> promotionResults) protected List<PromotionResultModel>filter(List<PromotionResultModel> results, AbstractPromotionModel promotion) protected CartServicegetCouldFirePromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion) getFiredPromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion) protected PromotionResultServiceprotected PromotionsServicevoidpopulate(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)
-
Constructor Details
-
PromotionsPopulator
public PromotionsPopulator()
-
-
Method Details
-
setPromotionResultService
-
getPromotionResultService
-
setPromotionService
-
getPromotionService
-
setCartService
-
getCartService
-
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
-
processPromotionMessages
-
getCouldFirePromotionsMessages
protected List<String> getCouldFirePromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion) -
getFiredPromotionsMessages
protected List<String> getFiredPromotionsMessages(PromotionOrderResults promoOrderResults, AbstractPromotionModel promotion) -
addDescriptions
protected void addDescriptions(List<String> descriptions, List<PromotionResultModel> promotionResults) -
filter
protected List<PromotionResultModel> filter(List<PromotionResultModel> results, AbstractPromotionModel promotion)
-