public class DefaultCustomerCouponService extends DefaultCouponService implements CustomerCouponService
CustomerCouponService| Constructor and Description |
|---|
DefaultCustomerCouponService() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
Add custom to the coupon group.
|
int |
countProductOrCategoryForPromotionSourceRule(java.lang.String code)
Find products is show all products, when coupon not asign with products and category condition will show all
products.
|
java.util.List<CustomerCouponModel> |
getAssignableCustomerCoupons(CustomerModel customer,
java.lang.String text)
get all assignable customer coupons can assign to given customer for search text
|
java.util.List<CustomerCouponModel> |
getAssignedCustomerCouponsForCustomer(CustomerModel customer,
java.lang.String text)
get assigned coupons for given customer and search text
|
protected CommonI18NService |
getCommonI18NService() |
java.util.List<java.lang.String> |
getCouponCodeForPromotionSourceRule(java.lang.String code)
Get customer coupon code for promotion source rule
|
protected CouponDao |
getCouponDao() |
protected CouponNotificationDao |
getCouponNotificationDao() |
boolean |
getCouponNotificationStatus(java.lang.String couponCode)
Return coupon notification status by coupon code
|
protected CouponRedemptionDao |
getCouponRedemptionDao() |
protected CustomerCouponDao |
getCustomerCouponDao() |
java.util.Optional<CustomerCouponModel> |
getCustomerCouponForCode(java.lang.String couponCode)
Get customer Coupon for code
|
SearchPageData<CustomerCouponModel> |
getCustomerCouponsForCustomer(CustomerModel customer,
PageableData pageableData)
Get all coupons of specific customer
|
java.util.List<CustomerCouponModel> |
getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
Get all coupons of specific customer
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
Get excluded promotion source rules code list for category
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForProduct(java.lang.String productCode)
Get excluded promotion source rules code list for product
|
protected LanguageDao |
getLanguageDao() |
protected PromotionsDao |
getPromotionsDao() |
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
Get promotion source rule for given coupon code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForCategory(java.lang.String categoryCode)
Get promotion source rules code list for category
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForProduct(java.lang.String productCode)
Get promotion source rules code list for product
|
protected UserService |
getUserService() |
CustomerCouponModel |
getValidCustomerCouponByCode(java.lang.String couponCode)
Get the customer coupon with enddate >= now for coupon code
|
void |
removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
Remove a record from CustomerCoupon
|
void |
removeCouponNotificationByCode(java.lang.String couponCode)
Remove customer interest coupon message.
|
void |
saveCouponNotification(java.lang.String couponCode)
Save customer interest coupon message.
|
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setCouponDao(CouponDao couponDao) |
void |
setCouponNotificationDao(CouponNotificationDao couponNotificationDao) |
void |
setCouponRedemptionDao(CouponRedemptionDao couponRedemptionDao) |
void |
setCustomerCouponDao(CustomerCouponDao customerCouponDao) |
void |
setLanguageDao(LanguageDao languageDao) |
void |
setPromotionsDao(PromotionsDao promotionsDao) |
void |
setUserService(UserService userService) |
assertCouponCodeInOrder, checkMatch, clearCouponCode, containsCouponCode, getBaseSiteService, getCalculationService, getCouponCodeGenerationService, getCouponDetails, getCouponForCode, getCouponManagementService, getModelService, getPromotionGroups, getPromotionsService, getValidatedCouponForCode, recalculateOrder, redeemCoupon, redeemCoupon, redeemCouponCode, releaseCouponCode, removeCouponAndTriggerCalculation, setBaseSiteService, setCalculationService, setCouponCodeGenerationService, setCouponManagementService, setModelService, setPromotionsService, validateCouponCode, verifyCouponCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCouponDetails, getCouponForCode, getValidatedCouponForCode, redeemCoupon, redeemCoupon, releaseCouponCode, validateCouponCode, verifyCouponCodepublic SearchPageData<CustomerCouponModel> getCustomerCouponsForCustomer(CustomerModel customer, PageableData pageableData)
CustomerCouponServicegetCustomerCouponsForCustomer in interface CustomerCouponServicecustomer - the specific customerpageableData - the pageable datapublic CustomerCouponModel getValidCustomerCouponByCode(java.lang.String couponCode)
CustomerCouponServicegetValidCustomerCouponByCode in interface CustomerCouponServicecouponCode - customer coupon codepublic void assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
CustomerCouponServiceassignCouponToCustomer in interface CustomerCouponServicecouponCode - coupon codepublic java.util.List<PromotionSourceRuleModel> getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
CustomerCouponServicegetPromotionSourceRuleForCouponCode in interface CustomerCouponServicecouponCode - the given coupon codepublic java.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForProduct(java.lang.String productCode)
CustomerCouponServicegetPromotionSourceRulesForProduct in interface CustomerCouponServiceproductCode - product codepublic java.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForProduct(java.lang.String productCode)
CustomerCouponServicegetExclPromotionSourceRulesForProduct in interface CustomerCouponServiceproductCode - product codepublic java.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForCategory(java.lang.String categoryCode)
CustomerCouponServicegetPromotionSourceRulesForCategory in interface CustomerCouponServicecategoryCode - category codepublic java.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
CustomerCouponServicegetExclPromotionSourceRulesForCategory in interface CustomerCouponServicecategoryCode - category codepublic java.util.List<java.lang.String> getCouponCodeForPromotionSourceRule(java.lang.String code)
CustomerCouponServicegetCouponCodeForPromotionSourceRule in interface CustomerCouponServicepublic int countProductOrCategoryForPromotionSourceRule(java.lang.String code)
CustomerCouponServicecountProductOrCategoryForPromotionSourceRule in interface CustomerCouponServicecode - promotion codepublic void saveCouponNotification(java.lang.String couponCode)
CustomerCouponServicesaveCouponNotification in interface CustomerCouponServicecouponCode - coupon codepublic void removeCouponNotificationByCode(java.lang.String couponCode)
CustomerCouponServiceremoveCouponNotificationByCode in interface CustomerCouponServicepublic boolean getCouponNotificationStatus(java.lang.String couponCode)
CustomerCouponServicegetCouponNotificationStatus in interface CustomerCouponServicecouponCode - coupon codepublic void removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
CustomerCouponServiceremoveCouponForCustomer in interface CustomerCouponServicecouponCode - the coupon codecustomer - the specific customerpublic java.util.Optional<CustomerCouponModel> getCustomerCouponForCode(java.lang.String couponCode)
CustomerCouponServicegetCustomerCouponForCode in interface CustomerCouponServicecouponCode - coupon codepublic java.util.List<CustomerCouponModel> getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
CustomerCouponServicegetEffectiveCustomerCouponsForCustomer in interface CustomerCouponServicecustomer - the specific customerpublic java.util.List<CustomerCouponModel> getAssignableCustomerCoupons(CustomerModel customer, java.lang.String text)
CustomerCouponServicegetAssignableCustomerCoupons in interface CustomerCouponServicecustomer - the given customertext - search textpublic java.util.List<CustomerCouponModel> getAssignedCustomerCouponsForCustomer(CustomerModel customer, java.lang.String text)
CustomerCouponServicegetAssignedCustomerCouponsForCustomer in interface CustomerCouponServicecustomer - the given customertext - search textprotected CouponRedemptionDao getCouponRedemptionDao()
public void setCouponRedemptionDao(CouponRedemptionDao couponRedemptionDao)
protected CustomerCouponDao getCustomerCouponDao()
protected UserService getUserService()
public void setUserService(UserService userService)
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
protected PromotionsDao getPromotionsDao()
public void setPromotionsDao(PromotionsDao promotionsDao)
protected LanguageDao getLanguageDao()
public void setLanguageDao(LanguageDao languageDao)
protected CouponDao getCouponDao()
public void setCouponDao(CouponDao couponDao)
protected CouponNotificationDao getCouponNotificationDao()
public void setCouponNotificationDao(CouponNotificationDao couponNotificationDao)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
Copyright © 2017 SAP SE. All Rights Reserved.