Class CouponWsUtils
java.lang.Object
de.hybris.platform.couponwebservices.util.CouponWsUtils
Some common utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertValidMultiCodeCoupon(AbstractCouponModel couponModel, String couponId) Given the couponModel and couponId string, checks for instance of MultiCode Coupon, otherwise throws exceptionvoidassertValidSingleCodeCoupon(AbstractCouponModel couponModel, String couponId) Given the couponModel and couponId string, checks for instance of SingleCode Coupon, otherwise throws exceptiongetCouponById(String couponId) Given the couponId string, checks for instance of Coupon, otherwise throws exceptionprotected CouponDaogetValidMultiCodeCoupon(String couponId) Given the couponId string, checks for instance of MultiCode Coupon, otherwise throws exceptionvoidsetCouponDao(CouponDao couponDao)
-
Constructor Details
-
CouponWsUtils
public CouponWsUtils()
-
-
Method Details
-
getStringToDateMapper
-
getDateToStringMapper
-
assertValidSingleCodeCoupon
Given the couponModel and couponId string, checks for instance of SingleCode Coupon, otherwise throws exception- Parameters:
couponModel-couponId-
-
assertValidMultiCodeCoupon
Given the couponModel and couponId string, checks for instance of MultiCode Coupon, otherwise throws exception- Parameters:
couponModel-couponId-
-
getValidMultiCodeCoupon
Given the couponId string, checks for instance of MultiCode Coupon, otherwise throws exception- Parameters:
couponId- a string to be used to find MultiCode coupon- Returns:
- - an instance of MultiCodeCouponModel
-
getCouponById
Given the couponId string, checks for instance of Coupon, otherwise throws exception- Parameters:
couponId- a string to be used to find Coupon- Returns:
- AbstractCouponModel - an instance of AbstractCouponModel
-
getCouponDao
-
setCouponDao
-