Class DefaultCommercePromotionService
- java.lang.Object
-
- de.hybris.platform.commerceservices.promotion.impl.DefaultCommercePromotionService
-
- All Implemented Interfaces:
CommercePromotionService
public class DefaultCommercePromotionService extends java.lang.Object implements CommercePromotionService
Default implementation ofCommercePromotionService
-
-
Constructor Summary
Constructors Constructor Description DefaultCommercePromotionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommercePromotionDaogetCommercePromotionDao()java.util.List<OrderPromotionModel>getOrderPromotions()Get the list ofOrderPromotionModelinstances.java.util.List<OrderPromotionModel>getOrderPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)Get list ofOrderPromotionModelinstances instances that belong to one of givenPromotionGroupModeljava.util.List<ProductPromotionModel>getProductPromotions()Get the list ofProductPromotionModelinstancesjava.util.List<ProductPromotionModel>getProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)Get list ofProductPromotionModelinstances that belong to one of givenPromotionGroupModelAbstractPromotionModelgetPromotion(java.lang.String code)GetAbstractPromotionModelinstance base on its codevoidsetCommercePromotionDao(CommercePromotionDao commercePromotionDao)
-
-
-
Method Detail
-
getPromotion
public AbstractPromotionModel getPromotion(java.lang.String code)
Description copied from interface:CommercePromotionServiceGetAbstractPromotionModelinstance base on its code- Specified by:
getPromotionin interfaceCommercePromotionService- Parameters:
code- - promotion identifier- Returns:
AbstractPromotionModelinstance
-
getProductPromotions
public java.util.List<ProductPromotionModel> getProductPromotions()
Description copied from interface:CommercePromotionServiceGet the list ofProductPromotionModelinstances- Specified by:
getProductPromotionsin interfaceCommercePromotionService- Returns:
- The list of
ProductPromotionModel
-
getOrderPromotions
public java.util.List<OrderPromotionModel> getOrderPromotions()
Description copied from interface:CommercePromotionServiceGet the list ofOrderPromotionModelinstances.- Specified by:
getOrderPromotionsin interfaceCommercePromotionService- Returns:
- The list of
OrderPromotionModel
-
getProductPromotions
public java.util.List<ProductPromotionModel> getProductPromotions(java.util.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 java.util.List<OrderPromotionModel> getOrderPromotions(java.util.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
protected CommercePromotionDao getCommercePromotionDao()
-
setCommercePromotionDao
public void setCommercePromotionDao(CommercePromotionDao commercePromotionDao)
-
-