com.ibm.commerce.returns.commands
Class ApproveReturnItemCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.returns.commands.ApproveReturnItemCmdImpl
- All Implemented Interfaces:
- ApproveReturnItemCmd, ECCommand, TaskCommand
- public class ApproveReturnItemCmdImpl
- extends TaskCommandImpl
- implements ApproveReturnItemCmd
Change the status of a return mechandise authorization (RMA) item based on the approval type.
Behaviour
- All existing deny reasons for the RMA item are removed from table RMAIDNYRSN.
- If the approval type is cManualApproval then the status of the RMA item is changed to 'MAN'.
- If the approval type is cPendingApproval then the status of the RMA item is changed to 'PND' and
the new vector of deny reasons is recorded in RMAIDNYRSN.
- Otherwise the status of the RMA item is set to 'APP'
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 |
ApproveReturnItemCmdImpl
public ApproveReturnItemCmdImpl()
- ApproveReturnItemCmdImpl constructor.
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
setApprovalType
public void setApprovalType(java.lang.Character newApprovalType)
- Set the approval type.
- Specified by:
setApprovalType
in interface ApproveReturnItemCmd
- Parameters:
newApprovalType
- The approval type.
setDenyReasons
public void setDenyReasons(java.util.Vector RMAItemDenyReasons)
- Set the existing vector of RMA item deny reasons.
- Specified by:
setDenyReasons
in interface ApproveReturnItemCmd
- Parameters:
RMAItemDenyReasons
- The vector of return deny reason identifiers.
setRMAItemAB
public void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
- Set the RMA Item access bean which will be approved.
- Specified by:
setRMAItemAB
in interface ApproveReturnItemCmd
- Parameters:
newRMAItemAB
- The RMA item access bean to be approved.
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.
-