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)
Assigns the customer coupon to the current customer
|
int |
countProductOrCategoryForPromotionSourceRule(java.lang.String code)
Counts the number of products and categories mapped with promotion source rule
|
java.util.List<CustomerCouponModel> |
getAssignableCustomerCoupons(CustomerModel customer,
java.lang.String text)
Gets assignable customer coupons
|
java.util.List<CustomerCouponModel> |
getAssignedCustomerCouponsForCustomer(CustomerModel customer,
java.lang.String text)
Gets assigned customer coupons
|
protected CategoryService |
getCategoryService() |
protected CommonI18NService |
getCommonI18NService() |
java.util.List<java.lang.String> |
getCouponCodeForPromotionSourceRule(java.lang.String code)
Gets customer coupon codes by promotion source rule
|
protected CouponDao |
getCouponDao() |
protected CouponNotificationDao |
getCouponNotificationDao() |
java.util.List<CouponNotificationModel> |
getCouponNotificationsForCustomer(CustomerModel customer)
Gets coupon notifications for the 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 models by coupon code
|
SearchPageData<CustomerCouponModel> |
getCustomerCouponsForCustomer(CustomerModel customer,
PageableData pageableData)
Gets paginated customer coupon models for the customer by pageableData
|
java.util.List<CustomerCouponModel> |
getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
Gets effective customer coupons of the customer
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets excluded promotion source rules by category
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForProduct(java.lang.String productCode)
Gets excluded promotion source rules by product code
|
protected LanguageDao |
getLanguageDao() |
SearchPageData<CustomerCouponModel> |
getPaginatedCouponsForCustomer(CustomerModel customer,
SearchPageData searchPageData)
Gets paginated customer coupon data by searchPageData
|
protected PromotionsDao |
getPromotionsDao() |
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
Gets promotion source rule by coupon code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets promotion source rules by category
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForProduct(java.lang.String productCode)
Gets promotion source rules by product code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourcesRuleForProductCategories(ProductModel product)
Gets promotionSourceRule for categories of product
|
protected UserService |
getUserService() |
java.util.Optional<CustomerCouponModel> |
getValidCustomerCouponByCode(java.lang.String couponCode)
Gets valid customer coupon models by coupon code
|
void |
removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
Removes customer coupon for the customer
|
void |
removeCouponNotificationByCode(java.lang.String couponCode)
Removes customer coupon notification
|
void |
saveCouponNotification(java.lang.String couponCode)
Saves customer coupon notification
|
void |
setCategoryService(CategoryService categoryService) |
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 customer modelpageableData - the data used for paginationpublic java.util.Optional<CustomerCouponModel> getValidCustomerCouponByCode(java.lang.String couponCode)
CustomerCouponServicegetValidCustomerCouponByCode in interface CustomerCouponServicecouponCode - the 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 - the coupon codecustomer - the customer modelpublic java.util.List<PromotionSourceRuleModel> getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
CustomerCouponServicegetPromotionSourceRuleForCouponCode in interface CustomerCouponServicecouponCode - the coupon codepublic java.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForProduct(java.lang.String productCode)
CustomerCouponServicegetPromotionSourceRulesForProduct in interface CustomerCouponServiceproductCode - the product codepublic java.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForProduct(java.lang.String productCode)
CustomerCouponServicegetExclPromotionSourceRulesForProduct in interface CustomerCouponServiceproductCode - the product codepublic java.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForCategory(java.lang.String categoryCode)
CustomerCouponServicegetPromotionSourceRulesForCategory in interface CustomerCouponServicecategoryCode - the category codepublic java.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
CustomerCouponServicegetExclPromotionSourceRulesForCategory in interface CustomerCouponServicecategoryCode - the category codepublic java.util.List<java.lang.String> getCouponCodeForPromotionSourceRule(java.lang.String code)
CustomerCouponServicegetCouponCodeForPromotionSourceRule in interface CustomerCouponServicecode - the promotion source rule codepublic int countProductOrCategoryForPromotionSourceRule(java.lang.String code)
CustomerCouponServicecountProductOrCategoryForPromotionSourceRule in interface CustomerCouponServicecode - the promotion source rule codepublic void saveCouponNotification(java.lang.String couponCode)
CustomerCouponServicesaveCouponNotification in interface CustomerCouponServicecouponCode - the coupon codepublic void removeCouponNotificationByCode(java.lang.String couponCode)
CustomerCouponServiceremoveCouponNotificationByCode in interface CustomerCouponServicecouponCode - the coupon codepublic boolean getCouponNotificationStatus(java.lang.String couponCode)
CustomerCouponServicegetCouponNotificationStatus in interface CustomerCouponServicecouponCode - the coupon codepublic void removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
CustomerCouponServiceremoveCouponForCustomer in interface CustomerCouponServicecouponCode - the coupon codecustomer - the customer modelpublic java.util.Optional<CustomerCouponModel> getCustomerCouponForCode(java.lang.String couponCode)
CustomerCouponServicegetCustomerCouponForCode in interface CustomerCouponServicecouponCode - the coupon codepublic java.util.List<CouponNotificationModel> getCouponNotificationsForCustomer(CustomerModel customer)
CustomerCouponServicegetCouponNotificationsForCustomer in interface CustomerCouponServicecustomer - the customer modelpublic java.util.List<CustomerCouponModel> getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
CustomerCouponServicegetEffectiveCustomerCouponsForCustomer in interface CustomerCouponServicecustomer - the customer modelpublic java.util.List<CustomerCouponModel> getAssignableCustomerCoupons(CustomerModel customer, java.lang.String text)
CustomerCouponServicegetAssignableCustomerCoupons in interface CustomerCouponServicecustomer - the customer modeltext - the text used for searching assignable customer couponspublic java.util.List<CustomerCouponModel> getAssignedCustomerCouponsForCustomer(CustomerModel customer, java.lang.String text)
CustomerCouponServicegetAssignedCustomerCouponsForCustomer in interface CustomerCouponServicecustomer - the customer modeltext - the text used for searching assigned customer couponspublic SearchPageData<CustomerCouponModel> getPaginatedCouponsForCustomer(CustomerModel customer, SearchPageData searchPageData)
CustomerCouponServicegetPaginatedCouponsForCustomer in interface CustomerCouponServicecustomer - the customer modelsearchPageData - the data used for paginationpublic java.util.List<PromotionSourceRuleModel> getPromotionSourcesRuleForProductCategories(ProductModel product)
CustomerCouponServicegetPromotionSourcesRuleForProductCategories in interface CustomerCouponServiceproduct - the product modelprotected CouponRedemptionDao getCouponRedemptionDao()
public void setCouponRedemptionDao(CouponRedemptionDao couponRedemptionDao)
protected CustomerCouponDao getCustomerCouponDao()
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
protected UserService getUserService()
public void setUserService(UserService userService)
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)
protected CategoryService getCategoryService()
public void setCategoryService(CategoryService categoryService)
Copyright © 2018 SAP SE. All Rights Reserved.