Interface CommercePromotionDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCommercePromotionDao
Dao for
AbstractPromotionModel access.- Spring Bean ID:
- commercePromotionDao
-
Method Summary
Modifier and TypeMethodDescriptionFind all order promotionsfindOrderPromotions(Collection<PromotionGroupModel> promotionGroups) Find all order promotions from promotion groupFind all product promotionsfindProductPromotions(Collection<PromotionGroupModel> promotionGroups) Find all product promotions from promotion groupfindPromotionForCode(String code) Find the promotion by given code.
-
Method Details
-
findPromotionForCode
Find the promotion by given code.- Parameters:
code- - promotion identifier- Returns:
- - found promotions list or empty list
- Throws:
IllegalArgumentException- if the givencodeisnull
-
findProductPromotions
Find all product promotions from promotion group- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- all product promotions
- Throws:
IllegalArgumentException- if the givenpromotionGroupsisnullor empty
-
findOrderPromotions
Find all order promotions from promotion group- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- all order promotions
- Throws:
IllegalArgumentException- if the givenpromotionGroupsisnullor empty
-
findProductPromotions
List<ProductPromotionModel> findProductPromotions()Find all product promotions- Returns:
- all product promotions
-
findOrderPromotions
List<OrderPromotionModel> findOrderPromotions()Find all order promotions- Returns:
- all order promotions
-