com.ibm.commerce.returns.commands
Class CloseReturnCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.returns.commands.CloseReturnCmdImpl
All Implemented Interfaces:
CloseReturnCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CloseReturnCmdImpl
extends TaskCommandImpl
implements CloseReturnCmd

Default implementation of the CloseReturnCmd interface. Mark a return mechandise authorization (RMA) as closed from further edits. RMA.STATUS is changed to 'CLO'.

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.CloseReturnCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
CloseReturnCmdImpl()
CloseReturnCmdImpl constructor.
Method Summary
protected void closeRMA()
Mark RMA closed.
void performExecute()
Execute the command.
void reset()
This method should be called after a command has been executed to reset its states variables.
void setRMAAB(RMAAccessBean rmaAB)
Set the RMA being accessed.
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

CloseReturnCmdImpl

public CloseReturnCmdImpl()
CloseReturnCmdImpl constructor.
Method Detail

closeRMA

protected void closeRMA()
                 throws FinderException,
                        java.rmi.RemoteException,
                        javax.naming.NamingException,
                        CreateException,
                        ECSystemException
Mark RMA closed. Sets RMA.Status to 'CLO'.
Throws:
FinderException
java.rmi.RemoteException
javax.naming.NamingException
CreateException
ECSystemException

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand

setRMAAB

public void setRMAAB(RMAAccessBean rmaAB)
Set the RMA being accessed.
Specified by:
setRMAAB in interface CloseReturnCmd
Parameters:
rmaAB - the RMA access bean.

validateParameters

public void validateParameters()
                        throws ECException
Check mandatory parameters. Checks the following parameters:

Parameters

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException - If there is no RMAABean, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
ECException

Feedback