Class DefaultCommercePromotionService
java.lang.Object
de.hybris.platform.commerceservices.promotion.impl.DefaultCommercePromotionService
- All Implemented Interfaces:
CommercePromotionService
Default implementation of
CommercePromotionService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommercePromotionDaoGet the list ofOrderPromotionModelinstances.getOrderPromotions(Collection<PromotionGroupModel> promotionGroups) Get list ofOrderPromotionModelinstances instances that belong to one of givenPromotionGroupModelGet the list ofProductPromotionModelinstancesgetProductPromotions(Collection<PromotionGroupModel> promotionGroups) Get list ofProductPromotionModelinstances that belong to one of givenPromotionGroupModelgetPromotion(String code) GetAbstractPromotionModelinstance base on its codevoidsetCommercePromotionDao(CommercePromotionDao commercePromotionDao)
-
Constructor Details
-
DefaultCommercePromotionService
public DefaultCommercePromotionService()
-
-
Method Details
-
getPromotion
Description copied from interface:CommercePromotionServiceGetAbstractPromotionModelinstance base on its code- Specified by:
getPromotionin interfaceCommercePromotionService- Parameters:
code- - promotion identifier- Returns:
AbstractPromotionModelinstance
-
getProductPromotions
Description copied from interface:CommercePromotionServiceGet the list ofProductPromotionModelinstances- Specified by:
getProductPromotionsin interfaceCommercePromotionService- Returns:
- The list of
ProductPromotionModel
-
getOrderPromotions
Description copied from interface:CommercePromotionServiceGet the list ofOrderPromotionModelinstances.- Specified by:
getOrderPromotionsin interfaceCommercePromotionService- Returns:
- The list of
OrderPromotionModel
-
getProductPromotions
public List<ProductPromotionModel> getProductPromotions(Collection<PromotionGroupModel> promotionGroups) Description copied from interface:CommercePromotionServiceGet list ofProductPromotionModelinstances that belong to one of givenPromotionGroupModel- Specified by:
getProductPromotionsin interfaceCommercePromotionService- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- The list of
ProductPromotionModel
-
getOrderPromotions
public List<OrderPromotionModel> getOrderPromotions(Collection<PromotionGroupModel> promotionGroups) Description copied from interface:CommercePromotionServiceGet list ofOrderPromotionModelinstances instances that belong to one of givenPromotionGroupModel- Specified by:
getOrderPromotionsin interfaceCommercePromotionService- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- The list of
OrderPromotionModel
-
getCommercePromotionDao
-
setCommercePromotionDao
-