java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.returns.commands.CheckReturnItemInCorrectStateCmdImpl
Default implementation of the CheckReturnItemInCorrectStateCmd
interface. Check to see that the order item is in a state that allows it to be
added to a return mechandise 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
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands. CheckReturnItemInCorrectStateCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CheckReturnItemInCorrectStateCmdImpl() CheckReturnItemInCorrectStateCmdImpl constructor. |
Method Summary | |
---|---|
protected
OrderItemAccessBean |
getOrderItemAB() Get the order item access bean. |
boolean |
isOK() Is the order item in a returnable state? |
void |
performExecute() Execute the command. |
void |
reset() Reset the command. |
protected
void |
setOK(boolean newOK) Set whether the order item is OK to be returned or not. |
void |
setOrderItemAB(
OrderItemAccessBean anOrderItemAB) Set the orderItem being returned/refunded. |
void |
validateParameters() Check mandatory parameters. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Constructor Detail |
---|
public CheckReturnItemInCorrectStateCmdImpl()
Method Detail |
---|
protected OrderItemAccessBean getOrderItemAB()
public boolean isOK()
isOK
in interface
CheckReturnItemInCorrectStateCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
protected void setOK(boolean newOK)
newOK
- The OK value.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