com.ibm.commerce.returns.commands
Class RePrepareExpiredRMACmdImpl

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

public class RePrepareExpiredRMACmdImpl
extends TaskCommandImpl
implements RePrepareExpiredRMACmd

Task command that evaluates whether return mechandise authorization (RMA) has expired (via CheckRMAItemExpirationCmd) and re-prepares (via ReturnPrepare) if so.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.returns.commands.RePrepareExpiredRMACmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
RePrepareExpiredRMACmdImpl()
          RePrepareExpiredRMACmdImpl constructor.
 
Method Summary
protected  void callReturnPrepare()
          Calls ReturnPrepareCmd and commits changes back to RMA item entity beans.
 boolean getRMAExpired()
          Returns whether the RMA was expired
 void performExecute()
          Execute the command.
 void reset()
          This method is called after a command has been executed to reset its states variables.
 void setRequestProperties(TypedProperty originalRequestProperties)
          The request properties to be passed to the controller command
 void setRMAAB(RMAAccessBean rmaAB)
          Set the RMA being accessed.
 void setRMAItemABVector(java.util.Vector vRMAItemAB)
          Set the RMA items to evaluate for RMA approval
 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

RePrepareExpiredRMACmdImpl

public RePrepareExpiredRMACmdImpl()
RePrepareExpiredRMACmdImpl constructor.
Method Detail

callReturnPrepare

protected void callReturnPrepare()
                          throws ECException
Calls ReturnPrepareCmd and commits changes back to RMA item entity beans.

getRMAExpired

public boolean getRMAExpired()
Returns whether the RMA was expired
Specified by:
getRMAExpired in interface RePrepareExpiredRMACmd
Returns:
true if RMA was expired; false otherwise.

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

setRequestProperties

public void setRequestProperties(TypedProperty originalRequestProperties)
The request properties to be passed to the controller command
Specified by:
setRequestProperties in interface RePrepareExpiredRMACmd
Parameters:
requestProperties - incoming request properties

setRMAAB

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

setRMAItemABVector

public void setRMAItemABVector(java.util.Vector vRMAItemAB)
Set the RMA items to evaluate for RMA approval
Specified by:
setRMAItemABVector in interface RePrepareExpiredRMACmd
Parameters:
vRMAItemAB - vector of RMA item access beans.

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