com.ibm.commerce.returns.commands
Class CheckReturnItemInCorrectStateCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.returns.commands.CheckReturnItemInCorrectStateCmdImpl
- All Implemented Interfaces:
- CheckReturnItemInCorrectStateCmd, ECCommand, TaskCommand
- public class CheckReturnItemInCorrectStateCmdImpl
- extends TaskCommandImpl
- implements CheckReturnItemInCorrectStateCmd
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).
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
CheckReturnItemInCorrectStateCmdImpl
public CheckReturnItemInCorrectStateCmdImpl()
- CheckReturnItemInCorrectStateCmdImpl constructor.
getOrderItemAB
protected OrderItemAccessBean getOrderItemAB()
- Get the order item access bean.
- Returns:
- The order item access bean.
isOK
public boolean isOK()
- Is the order item in a returnable state?
- Specified by:
isOK
in interface CheckReturnItemInCorrectStateCmd
- Returns:
- true if the order item is returnable; false otherwise.
performExecute
public void performExecute()
throws ECException
- Execute the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Reset the command.
- Overrides:
reset
in class AbstractECCommand
setOK
protected void setOK(boolean newOK)
- Set whether the order item is OK to be returned or not.
- Parameters:
newOK
- The OK value.
setOrderItemAB
public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
- Set the orderItem being returned/refunded.
- Specified by:
setOrderItemAB
in interface CheckReturnItemInCorrectStateCmd
- Parameters:
anOrderItemAB
- The orderItem access bean.
validateParameters
public void validateParameters()
throws ECException
- Check mandatory parameters.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-