public abstract class AbstractRedeemPromotionCodeToOrderTaskCmdImpl extends TaskCommandImpl implements RedeemPromotionCodeToOrderTaskCmd
defaultCommandClassName, NAME| Constructor and Description |
|---|
AbstractRedeemPromotionCodeToOrderTaskCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
performExecute()
This method executes the business logic of this command implementation.
The business logic of this command implementation is responsible for redeeming a promotion code to an order. |
void |
setOrderId(java.lang.Long orderId)
This is the method declaration to Set Order Id.
|
void |
setPromotionCode(java.lang.String promotionCode)
This is the method declaration to Set Promotion Code.
|
void |
setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
void |
setPromotionId(java.lang.Integer promotionId)
This is the method to set promotion id.
|
void |
validateParameters()
This method validates if the task command can be executed or not.
If the order id or promotion code is not correctly set, throw exception. |
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic AbstractRedeemPromotionCodeToOrderTaskCmdImpl()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - This exception is thrown when any kind of Exception catch.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - This exception is thrown when the order id or promotion
code is not correctly setpublic void setPromotionId(java.lang.Integer promotionId)
RedeemPromotionCodeToOrderTaskCmdsetPromotionId in interface RedeemPromotionCodeToOrderTaskCmdpromotionId - An Integer representing the promotion id to be used in the command.RedeemPromotionCodeToOrderTaskCmd.setPromotionId(java.lang.Integer)public void setOrderId(java.lang.Long orderId)
RedeemPromotionCodeToOrderTaskCmdsetOrderId in interface RedeemPromotionCodeToOrderTaskCmdorderId - A Long representing the order id to be used in the command.RedeemPromotionCodeToOrderTaskCmd.setOrderId(java.lang.Long)public void setPromotionCode(java.lang.String promotionCode)
RedeemPromotionCodeToOrderTaskCmdsetPromotionCode in interface RedeemPromotionCodeToOrderTaskCmdpromotionCode - A String representing the promotion code to be used in the
command.RedeemPromotionCodeToOrderTaskCmd.setPromotionCode(java.lang.String)public void setPromotionCodeType(java.lang.Short promotionCodeType)
RedeemPromotionCodeToOrderTaskCmdsetPromotionCodeType in interface RedeemPromotionCodeToOrderTaskCmdpromotionCodeType - A Short representing the promotion code implementation type to
be used in the command.RedeemPromotionCodeToOrderTaskCmd.setPromotionCodeType(java.lang.Short)