| Modifier and Type | Method and Description |
|---|---|
protected Button |
MultiCodeCouponGeneratorInset.createButtonForGenerateCouponCodes(Div insetContainer,
WidgetInstanceManager wim,
MultiCodeCouponModel multiCodeCoupon,
Intbox editorView) |
protected boolean |
MultiCodeCouponGeneratorInset.isDisabled(MultiCodeCouponModel multiCodeCoupon) |
| Modifier and Type | Method and Description |
|---|---|
String |
CouponCodeCipherTextGenerationStrategy.generateCipherText(MultiCodeCouponModel coupon,
String clearText,
int length)
returns the generated cipher-text part of the coupon code for the given clearText with the given length
|
String |
CouponCodeClearTextGenerationStrategy.generateClearText(MultiCodeCouponModel coupon,
int length)
returns the generated clear-text part of the coupon code with the given length
|
String |
CouponCodesGenerator.generateNextCouponCode(MultiCodeCouponModel coupon)
generate next coupon code in the batch
|
long |
CouponCodeClearTextGenerationStrategy.getCouponCodeNumberForClearText(MultiCodeCouponModel coupon,
String clearText)
returns the original coupon code number the given clearText was based on.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultCouponCodeClearTextGenerationStrategy.checkMaximumCouponCodesGenerated(MultiCodeCouponModel coupon,
int length)
Checks if the given coupon's couponCodeNumber has exceeded the maximum number of coupon codes that can be
generated for the given length.
|
protected String |
DefaultCouponCodeCipherTextGenerationStrategy.constructCipherText(MultiCodeCouponModel coupon,
int[] cipherTextInput)
constructs the ciphertext based on the given input byte array.
|
protected byte[] |
DefaultCouponCodeCipherTextGenerationStrategy.decodeSignature(MultiCodeCouponModel coupon)
decodes the coupon.signature via
Base64.decode(String). |
protected String |
DefaultCouponCodeCipherTextGenerationStrategyUnitTest.doTestForGivenLength(MultiCodeCouponModel coupon,
String clearText,
int length) |
protected byte[] |
DefaultCouponCodeCipherTextGenerationStrategy.encrypt(MultiCodeCouponModel coupon,
String clearText)
encrypts the given cleartext using the signature defined on the coupon.
|
String |
DefaultCouponCodeCipherTextGenerationStrategy.generateCipherText(MultiCodeCouponModel coupon,
String clearText,
int length) |
String |
DefaultCouponCodeClearTextGenerationStrategy.generateClearText(MultiCodeCouponModel coupon,
int length) |
String |
DefaultCouponCodesGenerator.generateNextCouponCode(MultiCodeCouponModel coupon) |
protected Cipher |
DefaultCouponCodeCipherTextGenerationStrategy.getCipher(MultiCodeCouponModel coupon) |
long |
DefaultCouponCodeClearTextGenerationStrategy.getCouponCodeNumberForClearText(MultiCodeCouponModel coupon,
String clearText) |
protected String |
DefaultCouponCodesGenerator.insertCodeSeparators(String generatedCode,
MultiCodeCouponModel coupon) |
| Constructor and Description |
|---|
CouponCodesInputStream(MultiCodeCouponModel coupon,
CouponCodesGenerator couponCodesGenerator,
int batchSize,
int totalSize) |
| Modifier and Type | Method and Description |
|---|---|
MultiCodeCouponModel |
CouponDao.findMultiCodeCouponById(String couponId)
Returns the MultiCodeCoupon for the given couponId.
|
| Modifier and Type | Method and Description |
|---|---|
List<MultiCodeCouponModel> |
CouponDao.findMultiCodeCouponsByCodeConfiguration(CodeGenerationConfigurationModel config)
Returns the list of MultiCodeCoupons that have the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCodeCouponModel |
DefaultCouponDao.findMultiCodeCouponById(String couponId) |
| Modifier and Type | Method and Description |
|---|---|
List<MultiCodeCouponModel> |
DefaultCouponDao.findMultiCodeCouponsByCodeConfiguration(CodeGenerationConfigurationModel config) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MultiCodeCouponValidateInterceptor.checkActiveCoupon(MultiCodeCouponModel coupon,
InterceptorContext ctx) |
protected void |
MultiCodeCouponValidateInterceptor.checkRemovalOfGeneratedCodes(MultiCodeCouponModel coupon,
InterceptorContext ctx) |
protected <T> T |
MultiCodeCouponValidateInterceptor.getOriginal(MultiCodeCouponModel coupon,
InterceptorContext ctx,
String attributeQualifier) |
protected boolean |
MultiCodeCouponValidateInterceptor.isCodeGenerationConfigurationChanged(MultiCodeCouponModel model,
InterceptorContext ctx) |
void |
MultiCodeCouponInitDefaultsInterceptor.onInitDefaults(MultiCodeCouponModel model,
InterceptorContext ctx) |
void |
MultiCodeCouponValidateInterceptor.onValidate(MultiCodeCouponModel coupon,
InterceptorContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
GiveAwayMultiCodeCouponGenerationHook.generateGiveAwayMultiCodeCoupon(MultiCodeCouponModel coupon,
RuleBasedAddCouponActionModel couponAction) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DefaultMultiCodeCouponRedemptionStrategy.checkMultiCodeCouponRedeemable(MultiCodeCouponModel coupon,
String couponCode) |
boolean |
DefaultMultiCodeCouponRedemptionStrategy.isCouponRedeemable(MultiCodeCouponModel coupon,
UserModel user,
String couponCode) |
boolean |
DefaultMultiCodeCouponRedemptionStrategy.isRedeemable(MultiCodeCouponModel coupon,
AbstractOrderModel abstractOrder,
String couponCode) |
| Modifier and Type | Method and Description |
|---|---|
MultiCodeCouponModel |
MultiCodeCouponResource.getMultiCodeCouponModel()
Convenience method which just delegates to
#getResourceValue() |
protected MultiCodeCouponModel |
MultiCodeCouponResource.readResource(String resourceId)
Gets the
MultiCodeCouponModel resource which is addressed by current resource request. |
| Modifier and Type | Method and Description |
|---|---|
Collection<MultiCodeCouponModel> |
MultiCodeCouponsResource.getMultiCodeCouponsCollection()
Convenience method which just delegates to
#getResourceValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiCodeCouponResource.setMultiCodeCouponModel(MultiCodeCouponModel value)
Convenience method which just delegates to
#setResourceValue(MultiCodeCouponModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiCodeCouponsResource.setMultiCodeCouponsCollection(Collection<MultiCodeCouponModel> value)
Convenience method which just delegates to
#setResourceValue(Collection) |
| Modifier and Type | Method and Description |
|---|---|
String |
CouponCodeGenerationService.generateCouponCode(MultiCodeCouponModel coupon)
Generates a code for the given multi code coupon.
|
Optional<MediaModel> |
CouponCodeGenerationService.generateCouponCodes(MultiCodeCouponModel multiCodeCoupon,
int quantity)
Generates codes for the given multi-code coupon.
|
boolean |
CouponCodeGenerationService.verifyCouponCode(MultiCodeCouponModel coupon,
String couponCode)
verifies if the given
couponCode is valid for the given coupon. |
| Modifier and Type | Method and Description |
|---|---|
protected MultiCodeCouponModel |
DefaultCouponCodeGenerationServiceIT.generateCouponAndConfigurationForLengths(int partCount,
int partLength,
String codeSeparator) |
protected MultiCodeCouponModel |
DefaultCouponCodeGenerationServiceIT.generateMultiCodeCoupon(CodeGenerationConfigurationModel config,
String id) |
| Modifier and Type | Method and Description |
|---|---|
protected MediaModel |
DefaultCouponCodeGenerationService.createMedia(MultiCodeCouponModel coupon,
int quantity) |
protected <any> |
DefaultCouponCodeGenerationService.extractClearTextAndCipherText(MultiCodeCouponModel coupon,
String couponCode)
returns a string pair containing the clear text and the cipher text part of the given coupon code.
|
String |
DefaultCouponCodeGenerationService.generateCouponCode(MultiCodeCouponModel coupon) |
Optional<MediaModel> |
DefaultCouponCodeGenerationService.generateCouponCodes(MultiCodeCouponModel multiCodeCoupon,
int quantity) |
protected Optional<MediaModel> |
DefaultCouponCodeGenerationService.generateMediaForMultiCodeCoupon(MultiCodeCouponModel multiCodeCoupon,
int quantity) |
protected Optional<MediaModel> |
DefaultCouponCodeGenerationService.generateMediaForMultiCodeCoupon(MultiCodeCouponModel multiCodeCoupon,
List<String> generatedCodes)
Deprecated.
as of ver 6.3. Please consider using generatedMediaForMultiCodeCoupons(
MultiCodeCouponModel,
int quantity) instead |
protected int |
DefaultCouponCodeGenerationService.getCipherTextLength(MultiCodeCouponModel coupon)
returns the amount of cipher-text characters to be created for the given coupon.
|
protected int |
DefaultCouponCodeGenerationService.getClearTextLength(MultiCodeCouponModel coupon)
returns the amount of clear-text characters to be created for the given coupon.
|
protected int |
DefaultCouponCodeGenerationService.getLengthFor(MultiCodeCouponModel coupon,
boolean clearText) |
protected String |
DefaultCouponCodeGenerationService.insertCodeSeparators(String generatedCode,
MultiCodeCouponModel coupon)
Deprecated.
as of ver 6.3. Please consider using
CouponCodesGenerator.insertCodeSeparators instead |
protected String |
DefaultCouponCodeGenerationService.removeCodeSeparators(String codeWithOutPrefix,
MultiCodeCouponModel coupon)
removes the code separator from the given
codeWithoutPrefix. |
protected boolean |
DefaultCouponCodeGenerationService.verifyCipherText(MultiCodeCouponModel coupon,
String couponCode) |
boolean |
DefaultCouponCodeGenerationService.verifyCouponCode(MultiCodeCouponModel coupon,
String couponCode) |
protected boolean |
DefaultCouponCodeGenerationService.verifyUsedCouponCodeNumber(MultiCodeCouponModel coupon,
<any> pair) |
| Modifier and Type | Method and Description |
|---|---|
protected MultiCodeCouponModel |
DefaultMultiCodeCouponWsFacades.createCouponModel(MultiCodeCouponWsDTO couponDto) |
protected MultiCodeCouponModel |
DefaultMultiCodeCouponWsFacades.updateCouponModel(MultiCodeCouponWsDTO couponDto) |
| Modifier and Type | Method and Description |
|---|---|
protected Converter<MultiCodeCouponModel,MultiCodeCouponWsDTO> |
DefaultMultiCodeCouponWsFacades.getMultiCodeCouponWsDTOConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultMultiCodeCouponWsFacades.setMultiCodeCouponWsDTOConverter(Converter<MultiCodeCouponModel,MultiCodeCouponWsDTO> multiCodeCouponWsDTOConverter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MultiCodeCouponWsPopulator.convertMultiCodeCoupon(MultiCodeCouponModel source,
MultiCodeCouponWsDTO target) |
void |
MultiCodeCouponWsPopulator.populate(MultiCodeCouponModel source,
MultiCodeCouponWsDTO target) |
| Modifier and Type | Method and Description |
|---|---|
MultiCodeCouponModel |
CouponWsUtils.getValidMultiCodeCoupon(String couponId)
Given the couponId string, checks for instance of MultiCode Coupon, otherwise throws exception
|
Copyright © 2017 SAP SE. All Rights Reserved.