Class DefaultCouponCodeGenerationWsFacade
- java.lang.Object
-
- de.hybris.platform.couponwebservices.facades.impl.DefaultCouponCodeGenerationWsFacade
-
- All Implemented Interfaces:
CouponCodeGenerationWsFacade
public class DefaultCouponCodeGenerationWsFacade extends java.lang.Object implements CouponCodeGenerationWsFacade
Default implementation ofCouponCodeGenerationWsFacade
WS facade interface
-
-
Constructor Summary
Constructors Constructor Description DefaultCouponCodeGenerationWsFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<MediaModel>
generateCouponCodes(java.lang.String couponId, int batchsize)
Generatebatchsize
coupon codesjava.util.Collection<MediaModel>
getCouponCodeBatches(java.lang.String couponId)
Get the collection of generated coupon codes for a given multi-code couponprotected CouponCodeGenerationService
getCouponCodeGenerationService()
byte[]
getCouponCodes(java.lang.String couponId, java.lang.String batchCode)
Get the octet bytes array of generated coupon codes for a given multi-code couponprotected CouponDao
getCouponDao()
protected CouponWsUtils
getCouponWsUtils()
protected MediaService
getMediaService()
void
setCouponCodeGenerationService(CouponCodeGenerationService couponCodeGenerationService)
void
setCouponDao(CouponDao couponDao)
void
setCouponWsUtils(CouponWsUtils couponWsUtils)
void
setMediaService(MediaService mediaService)
-
-
-
Method Detail
-
generateCouponCodes
public java.util.Optional<MediaModel> generateCouponCodes(java.lang.String couponId, int batchsize)
Description copied from interface:CouponCodeGenerationWsFacade
Generatebatchsize
coupon codes- Specified by:
generateCouponCodes
in interfaceCouponCodeGenerationWsFacade
- Parameters:
couponId
- Coupon id of the multi-code couponbatchsize
- the size of the generated coupon batch- Returns:
- The (optional) reference to MediaModel instance with generated coupons
-
getCouponCodeBatches
public java.util.Collection<MediaModel> getCouponCodeBatches(java.lang.String couponId)
Description copied from interface:CouponCodeGenerationWsFacade
Get the collection of generated coupon codes for a given multi-code coupon- Specified by:
getCouponCodeBatches
in interfaceCouponCodeGenerationWsFacade
- Parameters:
couponId
- Coupon id of the multi-code coupon- Returns:
- a collection of Media with generated coupons
-
getCouponCodes
public byte[] getCouponCodes(java.lang.String couponId, java.lang.String batchCode)
Description copied from interface:CouponCodeGenerationWsFacade
Get the octet bytes array of generated coupon codes for a given multi-code coupon- Specified by:
getCouponCodes
in interfaceCouponCodeGenerationWsFacade
- Parameters:
couponId
- Coupon id of the multi-code couponbatchCode
- The string corresponding to media model code- Returns:
- a collection of Media with generated coupons
-
getCouponCodeGenerationService
protected CouponCodeGenerationService getCouponCodeGenerationService()
-
setCouponCodeGenerationService
public void setCouponCodeGenerationService(CouponCodeGenerationService couponCodeGenerationService)
-
getCouponDao
protected CouponDao getCouponDao()
-
setCouponDao
public void setCouponDao(CouponDao couponDao)
-
getMediaService
protected MediaService getMediaService()
-
setMediaService
public void setMediaService(MediaService mediaService)
-
getCouponWsUtils
protected CouponWsUtils getCouponWsUtils()
-
setCouponWsUtils
public void setCouponWsUtils(CouponWsUtils couponWsUtils)
-
-