com.ibm.commerce.returns.commands
Class ApproveReturnItemCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.returns.commands.ApproveReturnItemCmdImpl
All Implemented Interfaces:
ApproveReturnItemCmd, ECCommand, ECTargetableCommand, TaskCommand

public class ApproveReturnItemCmdImpl
extends TaskCommandImpl
implements ApproveReturnItemCmd

Default implementation of the controller command AdminReturnItem interface.

Change the status of a return mechandise authorization (RMA) item based on the approval type.

Behaviour

Utilizes these access beans

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.returns.commands. ApproveReturnItemCmd
cAutoApproval, cManualApproval, COPYRIGHT, cPendingApproval, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
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. 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

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 AbstractECTargetableCommand
ECException

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

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 AbstractECTargetableCommand
Throws:
ECApplicationException - If the RMAitem is null or if the approval type is pending and there are no deny reasons specified, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
ECException