Interface CustomerCouponDao
-
- All Known Implementing Classes:
DefaultCustomerCouponDao
public interface CustomerCouponDao
Looks up items related to customer coupon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkCustomerCouponAvailableForCustomer(java.lang.String couponCode, CustomerModel customer)
Checks if the customer coupon is available for the customerint
countAssignedCouponForCustomer(java.lang.String couponCode, CustomerModel customer)
Counts the assigned customer coupons for the customer by coupon codejava.util.List<CustomerCouponForPromotionSourceRuleModel>
findAllCusCouponForSourceRules(PromotionSourceRuleModel rule)
Finds customer coupon for promotion source rules by promotion source rule modeljava.util.List<CustomerCouponForPromotionSourceRuleModel>
findAllCusCouponForSourceRules(PromotionSourceRuleModel rule, java.lang.String moduleName)
Finds customer coupon for promotion source rules by promotion source rule modeljava.util.List<CustomerCouponModel>
findAssignableCoupons(CustomerModel customer, java.lang.String text)
Finds assignable customer coupons for the customer by search textjava.util.List<CustomerCouponModel>
findAssignedCouponsByCustomer(CustomerModel customer, java.lang.String text)
Finds assigned customer coupons by the customer and search textjava.util.List<CatForPromotionSourceRuleModel>
findCategoryForPromotionSourceRuleByPromotion(java.lang.String code)
Finds category for promotion source rules by promotion source rulejava.util.List<CustomerCouponModel>
findCustomerCouponByPromotionSourceRule(java.lang.String code)
Finds customer coupons by promotion source ruleSearchPageData<CustomerCouponModel>
findCustomerCouponsByCustomer(CustomerModel customer, PageableData pageableData)
Finds paginated customer couponsjava.util.List<CustomerCouponModel>
findEffectiveCustomerCouponsByCustomer(CustomerModel customer)
Finds customer coupons for the customerjava.util.List<PromotionSourceRuleModel>
findExclPromotionSourceRuleByCategory(java.lang.String categoryCode)
Finds excluded promotion source rules by categoryjava.util.List<PromotionSourceRuleModel>
findExclPromotionSourceRuleByProduct(java.lang.String productCode)
Finds excluded promotion source rules by product codeSearchPageData<CustomerCouponModel>
findPaginatedCouponsByCustomer(CustomerModel customer, SearchPageData searchPageData)
Finds paginated customer coupons by the customer and searchPageDatajava.util.List<ProductForPromotionSourceRuleModel>
findProductForPromotionSourceRuleByPromotion(java.lang.String code)
Finds product for promotion source rules by codejava.util.List<PromotionSourceRuleModel>
findPromotionSourceRuleByCategory(java.lang.String categoryCode)
Finds promotion source rules by categoryjava.util.Optional<PromotionSourceRuleModel>
findPromotionSourceRuleByCode(java.lang.String code)
Finds promotion source rules by rule codejava.util.List<PromotionSourceRuleModel>
findPromotionSourceRuleByCouponCode(java.lang.String code)
Finds promotion source rules by customer coupon codejava.util.List<PromotionSourceRuleModel>
findPromotionSourceRuleByProduct(java.lang.String productCode)
Finds promotion source rules by product code
-
-
-
Method Detail
-
findCustomerCouponsByCustomer
SearchPageData<CustomerCouponModel> findCustomerCouponsByCustomer(CustomerModel customer, PageableData pageableData)
Finds paginated customer coupons- Parameters:
customer
- the customer modelpageableData
- the data used for pagination- Returns:
- the list of paginated CustomerCouponModel
-
findPromotionSourceRuleByCode
java.util.Optional<PromotionSourceRuleModel> findPromotionSourceRuleByCode(java.lang.String code)
Finds promotion source rules by rule code- Parameters:
code
- the rule code- Returns:
- the optional of PromotionSourceRuleModel
-
findPromotionSourceRuleByProduct
java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByProduct(java.lang.String productCode)
Finds promotion source rules by product code- Parameters:
productCode
- the product code- Returns:
- the list of PromotionSourceRuleModel
-
findExclPromotionSourceRuleByProduct
java.util.List<PromotionSourceRuleModel> findExclPromotionSourceRuleByProduct(java.lang.String productCode)
Finds excluded promotion source rules by product code- Parameters:
productCode
- the product code- Returns:
- the list of PromotionSourceRuleModel
-
findPromotionSourceRuleByCategory
java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByCategory(java.lang.String categoryCode)
Finds promotion source rules by category- Parameters:
categoryCode
- the category code- Returns:
- the list of PromotionSourceRuleModel
-
findExclPromotionSourceRuleByCategory
java.util.List<PromotionSourceRuleModel> findExclPromotionSourceRuleByCategory(java.lang.String categoryCode)
Finds excluded promotion source rules by category- Parameters:
categoryCode
- the category code- Returns:
- the list of PromotionSourceRuleModel
-
findCustomerCouponByPromotionSourceRule
java.util.List<CustomerCouponModel> findCustomerCouponByPromotionSourceRule(java.lang.String code)
Finds customer coupons by promotion source rule- Parameters:
code
- the promotion source rule code- Returns:
- the list of CustomerCouponModel
-
findPromotionSourceRuleByCouponCode
java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByCouponCode(java.lang.String code)
Finds promotion source rules by customer coupon code- Parameters:
coupon
- the coupon code- Returns:
- the list of PromotionSourceRuleModel
-
findProductForPromotionSourceRuleByPromotion
java.util.List<ProductForPromotionSourceRuleModel> findProductForPromotionSourceRuleByPromotion(java.lang.String code)
Finds product for promotion source rules by code- Parameters:
code
- the promotion source rule code- Returns:
- the list of ProductForPromotionSourceRuleModel
-
findCategoryForPromotionSourceRuleByPromotion
java.util.List<CatForPromotionSourceRuleModel> findCategoryForPromotionSourceRuleByPromotion(java.lang.String code)
Finds category for promotion source rules by promotion source rule- Parameters:
code
- the promotion source rule code- Returns:
- the list of CatForPromotionSourceRuleModel
-
findEffectiveCustomerCouponsByCustomer
java.util.List<CustomerCouponModel> findEffectiveCustomerCouponsByCustomer(CustomerModel customer)
Finds customer coupons for the customer- Parameters:
customer
- the customer model- Returns:
- the list of CustomerCouponModel
-
findAllCusCouponForSourceRules
java.util.List<CustomerCouponForPromotionSourceRuleModel> findAllCusCouponForSourceRules(PromotionSourceRuleModel rule)
Finds customer coupon for promotion source rules by promotion source rule model- Parameters:
rule
- the promotion source rule model- Returns:
- the list of CustomerCouponForPromotionSourceRuleModel
-
findAllCusCouponForSourceRules
java.util.List<CustomerCouponForPromotionSourceRuleModel> findAllCusCouponForSourceRules(PromotionSourceRuleModel rule, java.lang.String moduleName)
Finds customer coupon for promotion source rules by promotion source rule model- Parameters:
rule
- the promotion source rule modelmoduleName
- the specific module name- Returns:
- the list of CustomerCouponForPromotionSourceRuleModel
-
checkCustomerCouponAvailableForCustomer
boolean checkCustomerCouponAvailableForCustomer(java.lang.String couponCode, CustomerModel customer)
Checks if the customer coupon is available for the customer- Parameters:
couponCode
- the coupon codecustomer
- the customer model- Returns:
- true if the coupon is available for the customer and false otherwise
-
countAssignedCouponForCustomer
int countAssignedCouponForCustomer(java.lang.String couponCode, CustomerModel customer)
Counts the assigned customer coupons for the customer by coupon code- Parameters:
couponCode
- the coupon codecustomer
- the customer model- Returns:
- the total number of assigned coupons
-
findAssignableCoupons
java.util.List<CustomerCouponModel> findAssignableCoupons(CustomerModel customer, java.lang.String text)
Finds assignable customer coupons for the customer by search text- Parameters:
customer
- the customer modeltext
- the text used for searching assignable customer coupons- Returns:
- the list of CustomerCouponModel
-
findAssignedCouponsByCustomer
java.util.List<CustomerCouponModel> findAssignedCouponsByCustomer(CustomerModel customer, java.lang.String text)
Finds assigned customer coupons by the customer and search text- Parameters:
customer
- the customer modeltext
- the text used for searching assigned customer coupons- Returns:
- the list of CustomerCouponModel
-
findPaginatedCouponsByCustomer
SearchPageData<CustomerCouponModel> findPaginatedCouponsByCustomer(CustomerModel customer, SearchPageData searchPageData)
Finds paginated customer coupons by the customer and searchPageData- Parameters:
customer
- the customer modelsearchPageData
- the data used for pagination- Returns:
- the paginated CustomerCouponModel
-
-