public class CheckReturnItemInCorrectStateCmdImpl extends TaskCommandImpl implements CheckReturnItemInCorrectStateCmd
CheckReturnItemInCorrectStateCmd
interface.
Check to see that the order item is in a state that allows it to be added to a return merchandise authorization (RMA). This implementation checks to see if the
order item was possibly shipped (order item status = C, R, S, D, F or G).
Utilizes these access beans
defaultCommandClassName, NAME
Constructor and Description |
---|
CheckReturnItemInCorrectStateCmdImpl()
CheckReturnItemInCorrectStateCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOK()
Is the order item in a returnable state?
|
void |
performExecute()
Execute the command.
|
void |
reset()
Reset the command.
|
void |
setOrderItemAB(OrderItemAccessBean anOrderItemAB)
Set the orderItem being returned/refunded.
|
void |
validateParameters()
Check mandatory parameters.
|
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 CheckReturnItemInCorrectStateCmdImpl()
public boolean isOK()
isOK
in interface CheckReturnItemInCorrectStateCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
setOrderItemAB
in interface CheckReturnItemInCorrectStateCmd
anOrderItemAB
- The orderItem access bean.public void validateParameters() throws ECException
Parameters
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If there is no OrderItemAccessBean , throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException