Class DefaultCustomerCouponFacade
java.lang.Object
de.hybris.platform.customercouponfacades.impl.DefaultCustomerCouponFacade
- All Implemented Interfaces:
CustomerCouponFacade
Default implementation of
CustomerCouponFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CustomerCouponData>convertCustomerCoupons(List<CustomerCouponModel> customerCouponModels) Gets assignable customer coupon dataGets assigned customer coupon dataprotected CartFacadeGets customer coupon data of the current customerprotected Converter<CustomerCouponModel,CustomerCouponData> getCustomerCouponForCode(String couponCode) Gets customer coupon data by coupon idprotected CustomerCouponRemovableStrategyprotected CustomerCouponServicegetPagedCouponsData(PageableData pageableData) Gets paginated customer coupon data by pageableDatagetPaginatedCoupons(SearchPageData searchPageData) Gets paginated customer coupon data by searchPageDataprotected UserServicegetValidCouponForCode(String code) Gets valid customer coupon data by coupon codeprotected VoucherFacadegrantCouponAccessForCurrentUser(String couponCode) Assigns customer coupon to the current customerbooleanisCouponOwnedByCurrentUser(String couponCode) Checks if the specific customer coupon is owned by the current customervoidreleaseCoupon(String couponCode) Releases the specific customer coupon of the current customervoidremoveCouponNotificationByCode(String couponCode) Removes customer coupon notificationsaveCouponNotification(String couponCode) Saves customer coupon notificationvoidsetCartFacade(CartFacade cartFacade) voidsetCustomerCouponConverter(Converter<CustomerCouponModel, CustomerCouponData> customerCouponConverter) voidsetCustomerCouponNotificationConverter(Converter<CouponNotificationModel, CustomerCouponNotificationData> customerCouponNotificationConverter) voidsetCustomerCouponRemovableStrategy(CustomerCouponRemovableStrategy customerCouponRemovableStrategy) voidsetCustomerCouponSearchPageDataConverter(Converter<SearchPageData<CustomerCouponModel>, CustomerCouponSearchPageData> customerCouponSearchPageDataConverter) voidsetCustomerCouponService(CustomerCouponService customerCouponService) voidsetUserService(UserService userService) voidsetVoucherFacade(VoucherFacade voucherFacade)
-
Constructor Details
-
DefaultCustomerCouponFacade
public DefaultCustomerCouponFacade()
-
-
Method Details
-
getPagedCouponsData
Description copied from interface:CustomerCouponFacadeGets paginated customer coupon data by pageableData- Specified by:
getPagedCouponsDatain interfaceCustomerCouponFacade- Parameters:
pageableData- the data used for pagination- Returns:
- the paginated customer coupon data
-
getCouponsData
Description copied from interface:CustomerCouponFacadeGets customer coupon data of the current customer- Specified by:
getCouponsDatain interfaceCustomerCouponFacade- Returns:
- the list of CustomerCouponData
-
grantCouponAccessForCurrentUser
Description copied from interface:CustomerCouponFacadeAssigns customer coupon to the current customer- Specified by:
grantCouponAccessForCurrentUserin interfaceCustomerCouponFacade- Parameters:
couponCode- the customer coupon code- Returns:
- the assigning result
-
saveCouponNotification
Description copied from interface:CustomerCouponFacadeSaves customer coupon notification- Specified by:
saveCouponNotificationin interfaceCustomerCouponFacade- Parameters:
couponCode- the coupon code- Returns:
- the customer coupon notification data
-
removeCouponNotificationByCode
Description copied from interface:CustomerCouponFacadeRemoves customer coupon notification- Specified by:
removeCouponNotificationByCodein interfaceCustomerCouponFacade- Parameters:
couponCode- the coupon code
-
getAssignableCustomerCoupons
Description copied from interface:CustomerCouponFacadeGets assignable customer coupon data- Specified by:
getAssignableCustomerCouponsin interfaceCustomerCouponFacade- Parameters:
text- the text used for searching assignable customer coupons- Returns:
- the list of search results
-
getAssignedCustomerCoupons
Description copied from interface:CustomerCouponFacadeGets assigned customer coupon data- Specified by:
getAssignedCustomerCouponsin interfaceCustomerCouponFacade- Parameters:
text- the text used for searching assigned customer coupons- Returns:
- the list of search results
-
releaseCoupon
Description copied from interface:CustomerCouponFacadeReleases the specific customer coupon of the current customer- Specified by:
releaseCouponin interfaceCustomerCouponFacade- Parameters:
couponCode- the coupon code- Throws:
VoucherOperationException- throw when release voucher failed
-
getCustomerCouponForCode
Description copied from interface:CustomerCouponFacadeGets customer coupon data by coupon id- Specified by:
getCustomerCouponForCodein interfaceCustomerCouponFacade- Parameters:
couponCode- the coupon id- Returns:
- the CustomerCouponData
-
isCouponOwnedByCurrentUser
Description copied from interface:CustomerCouponFacadeChecks if the specific customer coupon is owned by the current customer- Specified by:
isCouponOwnedByCurrentUserin interfaceCustomerCouponFacade- Parameters:
couponCode- the coupon code- Returns:
- true if the coupon is owned by the current customer and false otherwise
-
getPaginatedCoupons
Description copied from interface:CustomerCouponFacadeGets paginated customer coupon data by searchPageData- Specified by:
getPaginatedCouponsin interfaceCustomerCouponFacade- Parameters:
searchPageData- the data used for pagination- Returns:
- the paginated customer coupon data
-
getValidCouponForCode
Description copied from interface:CustomerCouponFacadeGets valid customer coupon data by coupon code- Specified by:
getValidCouponForCodein interfaceCustomerCouponFacade- Parameters:
code- the coupon code- Returns:
- the valid CustomerCouponData
-
convertCustomerCoupons
protected List<CustomerCouponData> convertCustomerCoupons(List<CustomerCouponModel> customerCouponModels) -
getUserService
-
setUserService
-
getCustomerCouponService
-
setCustomerCouponService
-
getCustomerCouponConverter
-
setCustomerCouponConverter
public void setCustomerCouponConverter(Converter<CustomerCouponModel, CustomerCouponData> customerCouponConverter) -
getVoucherFacade
-
setVoucherFacade
-
getCartFacade
-
setCartFacade
-
getCustomerCouponRemovableStrategy
-
setCustomerCouponRemovableStrategy
public void setCustomerCouponRemovableStrategy(CustomerCouponRemovableStrategy customerCouponRemovableStrategy) -
getCustomerCouponSearchPageDataConverter
protected Converter<SearchPageData<CustomerCouponModel>,CustomerCouponSearchPageData> getCustomerCouponSearchPageDataConverter() -
setCustomerCouponSearchPageDataConverter
public void setCustomerCouponSearchPageDataConverter(Converter<SearchPageData<CustomerCouponModel>, CustomerCouponSearchPageData> customerCouponSearchPageDataConverter) -
getCustomerCouponNotificationConverter
protected Converter<CouponNotificationModel,CustomerCouponNotificationData> getCustomerCouponNotificationConverter() -
setCustomerCouponNotificationConverter
public void setCustomerCouponNotificationConverter(Converter<CouponNotificationModel, CustomerCouponNotificationData> customerCouponNotificationConverter)
-