public abstract class AbstractGetPromotionCodesByOrderIdTaskCmdImpl extends TaskCommandImpl implements GetPromotionCodesByOrderIdTaskCmd
defaultCommandClassName, NAME
Constructor and Description |
---|
AbstractGetPromotionCodesByOrderIdTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getPromotionCodes()
This is the method to get promotion codes.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
setOrderId(java.lang.Long orderId)
This is the method to set order id.
|
void |
setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
void |
validateParameters()
This method validates if the task command can be executed or not.
If the order id 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, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public AbstractGetPromotionCodesByOrderIdTaskCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
AbstractECTargetableCommand.performExecute()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- This exception is thrown when the order id is not
correctly setpublic java.lang.String[] getPromotionCodes()
getPromotionCodes
in interface GetPromotionCodesByOrderIdTaskCmd
public void setOrderId(java.lang.Long orderId)
setOrderId
in interface GetPromotionCodesByOrderIdTaskCmd
orderId
- A Long representing the order id to be used in the command.public void setPromotionCodeType(java.lang.Short promotionCodeType)
GetPromotionCodesByOrderIdTaskCmd
setPromotionCodeType
in interface GetPromotionCodesByOrderIdTaskCmd
promotionCodeType
- A Short representing the promotion code implementation type to
be used in the command.GetPromotionCodesByOrderIdTaskCmd.setPromotionCodeType(java.lang.Short)