public abstract class AbstractResolvePromotionCodeTaskCmdImpl extends TaskCommandImpl implements ResolvePromotionCodeTaskCmd
defaultCommandClassName, NAME
Constructor and Description |
---|
AbstractResolvePromotionCodeTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Short |
getPromotionCodeType()
This method returns the implementation type that is used for promotion
code.
|
PromotionKey[] |
getPromotionKeys()
This is the method declaration to get the PromotionKey array.
|
void |
performExecute()
The main business logic to execute the command.
|
void |
reset()
This method is called after a command has been executed.
|
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 |
setPromotionStatus(java.util.List listPromotionStatus)
This is the method declaration to Set Promotion Status.
|
void |
setSeparator(java.lang.String separator)
This is the method declaration to Set Separator.
|
void |
setStoreId(java.lang.Integer storeId)
This is the method declaration to Set Store Id.
|
void |
validateParameters()
This method validates if the task command can be executed or not.
If the store 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, 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 AbstractResolvePromotionCodeTaskCmdImpl()
public void setPromotionCode(java.lang.String promotionCode)
ResolvePromotionCodeTaskCmd
setPromotionCode
in interface ResolvePromotionCodeTaskCmd
promotionCode
- A String representing the promotion code to be used in the
command.ResolvePromotionCodeTaskCmd.setPromotionCode(java.lang.String)
public void setStoreId(java.lang.Integer storeId)
ResolvePromotionCodeTaskCmd
setStoreId
in interface ResolvePromotionCodeTaskCmd
storeId
- A String representing the store id information to be used in
the command.ResolvePromotionCodeTaskCmd.setStoreId(java.lang.Integer)
public void setPromotionStatus(java.util.List listPromotionStatus)
ResolvePromotionCodeTaskCmd
setPromotionStatus
in interface ResolvePromotionCodeTaskCmd
listPromotionStatus
- A List representing the allowed promotion status.ResolvePromotionCodeTaskCmd.setPromotionStatus(java.util.List)
public PromotionKey[] getPromotionKeys()
ResolvePromotionCodeTaskCmd
getPromotionKeys
in interface ResolvePromotionCodeTaskCmd
ResolvePromotionCodeTaskCmd.getPromotionKeys()
public void setSeparator(java.lang.String separator)
ResolvePromotionCodeTaskCmd
setSeparator
in interface ResolvePromotionCodeTaskCmd
separator
- The delimiter used to separate different codes.ResolvePromotionCodeTaskCmd.setSeparator(java.lang.String)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
ResolvePromotionCodeTaskCmd
setPromotionCodeType
in interface ResolvePromotionCodeTaskCmd
promotionCodeType
- A Short representing the promotion code implementation type to
be used in the command.ResolvePromotionCodeTaskCmd.setPromotionCodeType(java.lang.Short)
public java.lang.Short getPromotionCodeType()
ResolvePromotionCodeTaskCmd
getPromotionCodeType
in interface ResolvePromotionCodeTaskCmd
ResolvePromotionCodeTaskCmd.getPromotionCodeType()
public void performExecute() throws ECException
The business logic of this command implementation is responsible for resolving promotion code.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
AbstractECTargetableCommand.reset()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- This exception is thrown when the order id or promotion
code is not correctly set