public interface AllocatePromotionCodeCmd extends TaskCommand
setPromotionId()
to set the promotion from which a code should be allocated.setOwnerId()
if the code should be assigned to a particular customer.
Otherwise the code will be allocated, but will be unassigned.
performExecute
.
getAllocatedPromotionCode
to get the code that has been allocated. If no code
has been allocated, then this method will return null.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The name of the default implementation of this interface.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAllocatedPromotionCode()
This method gets the promotion code that has been allocated.
|
void |
setOwnerId(java.lang.Long newOwnerId)
This method sets the member ID of the customer to whom the allocated promotion code
should be assigned.
|
void |
setPromotionId(java.lang.Integer newPromotionId)
This method sets the promotion ID of the promotion from which a promotion
code should be allocated.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
void setPromotionId(java.lang.Integer newPromotionId)
newPromotionId
- The ID of the promotion.void setOwnerId(java.lang.Long newOwnerId)
newOwnerId
- The ID of the owner.java.lang.String getAllocatedPromotionCode()