Interface CommercePromotionService
-
- All Known Implementing Classes:
DefaultCommercePromotionService
public interface CommercePromotionServiceService for getting information about promotions- Spring Bean ID:
- commercePromotionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 code
-
-
-
Method Detail
-
getProductPromotions
java.util.List<ProductPromotionModel> getProductPromotions()
Get the list ofProductPromotionModelinstances- Returns:
- The list of
ProductPromotionModel
-
getOrderPromotions
java.util.List<OrderPromotionModel> getOrderPromotions()
Get the list ofOrderPromotionModelinstances.- Returns:
- The list of
OrderPromotionModel
-
getProductPromotions
java.util.List<ProductPromotionModel> getProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
Get list ofProductPromotionModelinstances that belong to one of givenPromotionGroupModel- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- The list of
ProductPromotionModel - Throws:
java.lang.IllegalArgumentException- if parameter promotionGroups isnull
-
getOrderPromotions
java.util.List<OrderPromotionModel> getOrderPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
Get list ofOrderPromotionModelinstances instances that belong to one of givenPromotionGroupModel- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- The list of
OrderPromotionModel - Throws:
java.lang.IllegalArgumentException- if parameter promotionGroups isnull
-
getPromotion
AbstractPromotionModel getPromotion(java.lang.String code)
GetAbstractPromotionModelinstance base on its code- Parameters:
code- - promotion identifier- Returns:
AbstractPromotionModelinstance- Throws:
UnknownIdentifierException- if no Promotion with the specified code is foundAmbiguousIdentifierException- if more than one Promotion with the specified code is foundjava.lang.IllegalArgumentException- if parameter code isnull
-
-