com.ibm.commerce.returns.commands
Class RefreshExpiredRMAItemsCmdImpl

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

public class RefreshExpiredRMAItemsCmdImpl
extends TaskCommandImpl
implements RefreshExpiredRMAItemsCmd

Default implementation of the RefreshExpiredRMAItemsCmd interface. Task command that evaluates whether a return mechandise authorization (RMA) item has expired (via CheckRMAItemExpirationCmd) and calls ReturnItemCreditCalculate and ReturnItemAutoApprove if so.

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. RefreshExpiredRMAItemsCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
RefreshExpiredRMAItemsCmdImpl()
          RefreshExpiredRMAItemsCmdImpl constructor.
 
Method Summary
 boolean getRMAItemExpired()
          Returns whether any RMA item was expired on the RMA
 void performExecute()
          Execute the command.
protected  void refreshRMAitemsIfNecessary()
          Look for expired RMAitems and refresh them
 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 setRMAItemABVector(java.util.Vector vRMAItemAB)
          Set the RMA items to evaluate for RMA approval
 void validateParameters()
          Performs parameter checking.
 
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

RefreshExpiredRMAItemsCmdImpl

public RefreshExpiredRMAItemsCmdImpl()
RefreshExpiredRMAItemsCmdImpl constructor.
Method Detail

getRMAItemExpired

public boolean getRMAItemExpired()
Returns whether any RMA item was expired on the RMA
Specified by:
getRMAItemExpired in interface RefreshExpiredRMAItemsCmd
Returns:
true if RMA item was expired; false otherwise

performExecute

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

refreshRMAitemsIfNecessary

protected void refreshRMAitemsIfNecessary()
                                   throws ECSystemException,
ECException
Look for expired RMAitems and refresh them
ECSystemException
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 RefreshExpiredRMAItemsCmd
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 RefreshExpiredRMAItemsCmd
Parameters:
vRMAItemAB - vector of RMA item access beans.

validateParameters

public void validateParameters()
                        throws ECException
Description copied from class: AbstractECTargetableCommand
Performs parameter checking. This method replaces checkParameters() in 5.1. The default implementation of validateParameters() is a no op. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
ECException