Interface CommercePromotionDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCommercePromotionDao
public interface CommercePromotionDao extends Dao
Dao forAbstractPromotionModelaccess.- Spring Bean ID:
- commercePromotionDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<OrderPromotionModel>findOrderPromotions()Find all order promotionsjava.util.List<OrderPromotionModel>findOrderPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)Find all order promotions from promotion groupjava.util.List<ProductPromotionModel>findProductPromotions()Find all product promotionsjava.util.List<ProductPromotionModel>findProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)Find all product promotions from promotion groupjava.util.List<AbstractPromotionModel>findPromotionForCode(java.lang.String code)Find the promotion by given code.
-
-
-
Method Detail
-
findPromotionForCode
java.util.List<AbstractPromotionModel> findPromotionForCode(java.lang.String code)
Find the promotion by given code.- Parameters:
code- - promotion identifier- Returns:
- - found promotions list or empty list
- Throws:
java.lang.IllegalArgumentException- if the givencodeisnull
-
findProductPromotions
java.util.List<ProductPromotionModel> findProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
Find all product promotions from promotion group- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- all product promotions
- Throws:
java.lang.IllegalArgumentException- if the givenpromotionGroupsisnullor empty
-
findOrderPromotions
java.util.List<OrderPromotionModel> findOrderPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
Find all order promotions from promotion group- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- all order promotions
- Throws:
java.lang.IllegalArgumentException- if the givenpromotionGroupsisnullor empty
-
findProductPromotions
java.util.List<ProductPromotionModel> findProductPromotions()
Find all product promotions- Returns:
- all product promotions
-
findOrderPromotions
java.util.List<OrderPromotionModel> findOrderPromotions()
Find all order promotions- Returns:
- all order promotions
-
-