public class MultiCodeCouponModel extends AbstractCouponModel
A MultiCodeCoupon uses generated coupon codes for coupon redemption. The (inherited) couponId attribute functions as a prefix for the generated coupon codes.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
ALPHABET
Generated constant - Attribute key of
MultiCodeCoupon.alphabet attribute defined at extension couponservices. |
static java.lang.String |
CODEGENERATIONCONFIGURATION
Generated constant - Attribute key of
MultiCodeCoupon.codeGenerationConfiguration attribute defined at extension couponservices. |
static java.lang.String |
COUPONCODENUMBER
Generated constant - Attribute key of
MultiCodeCoupon.couponCodeNumber attribute defined at extension couponservices. |
static java.lang.String |
GENERATEDCODES
Generated constant - Attribute key of
MultiCodeCoupon.generatedCodes attribute defined at extension couponservices. |
static java.lang.String |
SIGNATURE
Generated constant - Attribute key of
MultiCodeCoupon.signature attribute defined at extension couponservices. |
ACTIVE, COUPONID, ENDDATE, NAME, STARTDATE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
MultiCodeCouponModel()
Generated constructor - Default constructor for generic creation.
|
MultiCodeCouponModel(CodeGenerationConfigurationModel _codeGenerationConfiguration,
java.lang.String _couponId)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
MultiCodeCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
MultiCodeCouponModel(java.lang.String _alphabet,
CodeGenerationConfigurationModel _codeGenerationConfiguration,
java.lang.String _couponId,
ItemModel _owner,
java.lang.String _signature)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlphabet()
Generated method - Getter of the
MultiCodeCoupon.alphabet attribute defined at extension couponservices. |
CodeGenerationConfigurationModel |
getCodeGenerationConfiguration()
Generated method - Getter of the
MultiCodeCoupon.codeGenerationConfiguration attribute defined at extension couponservices. |
java.lang.Long |
getCouponCodeNumber()
Generated method - Getter of the
MultiCodeCoupon.couponCodeNumber attribute defined at extension couponservices. |
java.util.Collection<MediaModel> |
getGeneratedCodes()
Generated method - Getter of the
MultiCodeCoupon.generatedCodes attribute defined at extension couponservices. |
java.lang.String |
getSignature()
Generated method - Getter of the
MultiCodeCoupon.signature attribute defined at extension couponservices. |
void |
setAlphabet(java.lang.String value)
Generated method - Initial setter of
MultiCodeCoupon.alphabet attribute defined at extension couponservices. |
void |
setCodeGenerationConfiguration(CodeGenerationConfigurationModel value)
Generated method - Setter of
MultiCodeCoupon.codeGenerationConfiguration attribute defined at extension couponservices. |
void |
setCouponCodeNumber(java.lang.Long value)
Generated method - Setter of
MultiCodeCoupon.couponCodeNumber attribute defined at extension couponservices. |
void |
setGeneratedCodes(java.util.Collection<MediaModel> value)
Generated method - Setter of
MultiCodeCoupon.generatedCodes attribute defined at extension couponservices. |
void |
setSignature(java.lang.String value)
Generated method - Initial setter of
MultiCodeCoupon.signature attribute defined at extension couponservices. |
getActive, getCouponId, getEndDate, getName, getName, getStartDate, setActive, setCouponId, setEndDate, setName, setName, setStartDategetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic static final java.lang.String _TYPECODE
public static final java.lang.String CODEGENERATIONCONFIGURATION
MultiCodeCoupon.codeGenerationConfiguration attribute defined at extension couponservices.public static final java.lang.String GENERATEDCODES
MultiCodeCoupon.generatedCodes attribute defined at extension couponservices.public static final java.lang.String ALPHABET
MultiCodeCoupon.alphabet attribute defined at extension couponservices.public static final java.lang.String SIGNATURE
MultiCodeCoupon.signature attribute defined at extension couponservices.public static final java.lang.String COUPONCODENUMBER
MultiCodeCoupon.couponCodeNumber attribute defined at extension couponservices.public MultiCodeCouponModel()
public MultiCodeCouponModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public MultiCodeCouponModel(CodeGenerationConfigurationModel _codeGenerationConfiguration, java.lang.String _couponId)
_codeGenerationConfiguration - initial attribute declared by type MultiCodeCoupon at extension couponservices_couponId - initial attribute declared by type AbstractCoupon at extension couponservices@Deprecated
public MultiCodeCouponModel(java.lang.String _alphabet,
CodeGenerationConfigurationModel _codeGenerationConfiguration,
java.lang.String _couponId,
ItemModel _owner,
java.lang.String _signature)
_alphabet - initial attribute declared by type MultiCodeCoupon at extension couponservices_codeGenerationConfiguration - initial attribute declared by type MultiCodeCoupon at extension couponservices_couponId - initial attribute declared by type AbstractCoupon at extension couponservices_owner - initial attribute declared by type Item at extension core_signature - initial attribute declared by type MultiCodeCoupon at extension couponservices@Accessor(qualifier="alphabet", type=GETTER) public java.lang.String getAlphabet()
MultiCodeCoupon.alphabet attribute defined at extension couponservices.@Accessor(qualifier="codeGenerationConfiguration", type=GETTER) public CodeGenerationConfigurationModel getCodeGenerationConfiguration()
MultiCodeCoupon.codeGenerationConfiguration attribute defined at extension couponservices.@Accessor(qualifier="couponCodeNumber", type=GETTER) public java.lang.Long getCouponCodeNumber()
MultiCodeCoupon.couponCodeNumber attribute defined at extension couponservices.@Accessor(qualifier="generatedCodes", type=GETTER) public java.util.Collection<MediaModel> getGeneratedCodes()
MultiCodeCoupon.generatedCodes attribute defined at extension couponservices.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="signature", type=GETTER) public java.lang.String getSignature()
MultiCodeCoupon.signature attribute defined at extension couponservices.@Accessor(qualifier="alphabet", type=SETTER) public void setAlphabet(java.lang.String value)
MultiCodeCoupon.alphabet attribute defined at extension couponservices. Can only be used at creation of model - before first save.value - the alphabet - used for coupon code generation. The alphabet is a 16 character long distinct set of characters.@Accessor(qualifier="codeGenerationConfiguration", type=SETTER) public void setCodeGenerationConfiguration(CodeGenerationConfigurationModel value)
MultiCodeCoupon.codeGenerationConfiguration attribute defined at extension couponservices.value - the codeGenerationConfiguration@Accessor(qualifier="couponCodeNumber", type=SETTER) public void setCouponCodeNumber(java.lang.Long value)
MultiCodeCoupon.couponCodeNumber attribute defined at extension couponservices.value - the couponCodeNumber - used for coupon code generation. The coupon code number functions as a seed for coupon codes.@Accessor(qualifier="generatedCodes", type=SETTER) public void setGeneratedCodes(java.util.Collection<MediaModel> value)
MultiCodeCoupon.generatedCodes attribute defined at extension couponservices.value - the generatedCodes@Accessor(qualifier="signature", type=SETTER) public void setSignature(java.lang.String value)
MultiCodeCoupon.signature attribute defined at extension couponservices. Can only be used at creation of model - before first save.value - the signature - used for coupon code generation. The signature is a base64 encoded signature used for the ciphertext part of the coupon code.Copyright © 2018 SAP SE. All Rights Reserved.