com.ibm.commerce.returns.commands
Class LogReturnAuthCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.returns.commands.LogReturnAuthCmdImpl
All Implemented Interfaces:
ECCommand, LogReturnAuthCmd, TaskCommand

public class LogReturnAuthCmdImpl
extends TaskCommandImpl
implements LogReturnAuthCmd

Command which makes note that customer has been notified of their return mechandise authorization (RMA) number and its content. Inserts a row into RMAAuthLog. If a RMA has been "finalized", the authorization logged and then someone with appropriate authority makes changes, a new authorization will be logged. Therefore there can be more than one authorization logged for each RMA.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.returns.commands.LogReturnAuthCmd
className, COPYRIGHT, defaultCommandClassName
 
Constructor Summary
LogReturnAuthCmdImpl()
          LogReturnAuthCmdImpl constructor.
 
Method Summary
protected  void logAuth()
          Inserts Authorization notification into database.
 void performExecute()
          Execute the command.
 void reset()
          This method is called after a command has been executed to reset its states variables.
 void setRMAAB(RMAAccessBean rmaAB)
          Set the RMA being accessed.
 void validateParameters()
          Performs server side parameter checking.
 
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

LogReturnAuthCmdImpl

public LogReturnAuthCmdImpl()
LogReturnAuthCmdImpl constructor.
Method Detail

logAuth

protected void logAuth()
                throws javax.ejb.FinderException,
                       java.rmi.RemoteException,
                       javax.naming.NamingException,
                       javax.ejb.CreateException,
                       ECSystemException
Inserts Authorization notification into database.

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()
Description copied from class: AbstractECCommand
This method is 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 AbstractECCommand

setRMAAB

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

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -