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


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.returns.commands.ApproveReturnItemCmd
cAutoApproval, cManualApproval, COPYRIGHT, cPendingApproval, defaultCommandClassName, NAME
 
Constructor Summary
ApproveReturnItemCmdImpl()
          ApproveReturnItemCmdImpl constructor.
 
Method Summary
 void performExecute()
          Execute the command.
 void reset()
          Reset the command.
 void setApprovalType(java.lang.Character newApprovalType)
          Set the approval type.
 void setDenyReasons(java.util.Vector RMAItemDenyReasons)
          Set the existing vector of RMA item deny reasons.
 void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
          Set the RMA Item access bean which will be approved.
 void validateParameters()
          Check mandatory parameters.
 
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
 

Constructor Detail

ApproveReturnItemCmdImpl

public ApproveReturnItemCmdImpl()
ApproveReturnItemCmdImpl constructor.
Method Detail

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. -