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)
Adds custom to the coupon group.
|
int |
countProductOrCategoryForPromotionSourceRule(java.lang.String code)
Finds 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)
Gets all assignable customer coupons can assign to given customer for search text
|
java.util.List<CustomerCouponModel> |
getAssignedCustomerCouponsForCustomer(CustomerModel customer,
java.lang.String text)
Gets assigned coupons for given customer and search text
|
protected CommonI18NService |
getCommonI18NService() |
java.util.List<java.lang.String> |
getCouponCodeForPromotionSourceRule(java.lang.String code)
Gets customer coupon code for promotion source rule
|
protected CouponDao |
getCouponDao() |
protected CouponNotificationDao |
getCouponNotificationDao() |
java.util.List<CouponNotificationModel> |
getCouponNotificationsForCustomer(CustomerModel customer)
Gets coupon notifications for customer
|
boolean |
getCouponNotificationStatus(java.lang.String couponCode)
Gets coupon notification status by coupon code
|
protected CouponRedemptionDao |
getCouponRedemptionDao() |
protected CustomerCouponDao |
getCustomerCouponDao() |
java.util.Optional<CustomerCouponModel> |
getCustomerCouponForCode(java.lang.String couponCode)
Gets customer Coupon for code
|
SearchPageData<CustomerCouponModel> |
getCustomerCouponsForCustomer(CustomerModel customer,
PageableData pageableData)
Gets all coupons of specific customer
|
java.util.List<CustomerCouponModel> |
getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
Gets all coupons of specific customer
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets excluded promotion source rules code list for category
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForProduct(java.lang.String productCode)
Gets excluded promotion source rules code list for product
|
protected LanguageDao |
getLanguageDao() |
SearchPageData<CustomerCouponModel> |
getPaginatedCouponsForCustomer(CustomerModel customer,
SearchPageData searchPageData)
Gets paginated coupons for customer
|
protected PromotionsDao |
getPromotionsDao() |
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
Gets promotion source rule for given coupon code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets promotion source rules code list for category
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForProduct(java.lang.String productCode)
Gets promotion source rules code list for product
|
protected UserService |
getUserService() |
java.util.Optional<CustomerCouponModel> |
getValidCustomerCouponByCode(java.lang.String couponCode)
Gets the customer coupon with enddate >= now for coupon code
|
void |
removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
Removes a record from CustomerCoupon
|
void |
removeCouponNotificationByCode(java.lang.String couponCode)
Removes customer interest coupon message.
|
void |
saveCouponNotification(java.lang.String couponCode)
Saves 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) |
protected java.lang.Boolean |
validateCouponDate(java.util.Date startDate,
java.util.Date endDate,
java.util.Date now) |
assertCouponCodeInOrder, checkMatch, clearCouponCode, containsCouponCode, getBaseSiteService, getCalculationService, getCouponCodeGenerationService, 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, waitgetCouponForCode, getValidatedCouponForCode, redeemCoupon, redeemCoupon, releaseCouponCode, validateCouponCode, verifyCouponCodepublic SearchPageData<CustomerCouponModel> getCustomerCouponsForCustomer(CustomerModel customer, PageableData pageableData)
CustomerCouponServicegetCustomerCouponsForCustomer in interface CustomerCouponServicecustomer - the specific customerpageableData - the pageable datapublic java.util.Optional<CustomerCouponModel> getValidCustomerCouponByCode(java.lang.String couponCode)
CustomerCouponServicegetValidCustomerCouponByCode in interface CustomerCouponServicecouponCode - customer coupon codeprotected java.lang.Boolean validateCouponDate(java.util.Date startDate,
java.util.Date endDate,
java.util.Date now)
public void assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
CustomerCouponServiceassignCouponToCustomer in interface CustomerCouponServicecouponCode - coupon codecustomer - customer modelpublic 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 CustomerCouponServicecode - coupon codepublic 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 CustomerCouponServicecouponCode - coupon codepublic 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<CouponNotificationModel> getCouponNotificationsForCustomer(CustomerModel customer)
CustomerCouponServicegetCouponNotificationsForCustomer in interface CustomerCouponServicecustomer - the specific customerpublic 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 textpublic SearchPageData<CustomerCouponModel> getPaginatedCouponsForCustomer(CustomerModel customer, SearchPageData searchPageData)
CustomerCouponServicegetPaginatedCouponsForCustomer in interface CustomerCouponServicecustomer - the specific customersearchPageData - the search page dataprotected 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 © 2018 SAP SE. All Rights Reserved.