com.ibm.commerce.returns.commands
Class CheckRMAItemExpirationCmdImpl

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

public class CheckRMAItemExpirationCmdImpl
extends TaskCommandImpl
implements CheckRMAItemExpirationCmd

Task command to check an return mechandise authorization (RMA) item to see if it has expired. Compares how long ago the RMA item was last updated (RMAITEM.LASTUPDATE) to the period which RMAs are good for (STORE.RMAGOODFOR). If the RMA item was last updated longer ago than RMA are good for, then the RMA item is expired.

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. CheckRMAItemExpirationCmd
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
CheckRMAItemExpirationCmdImpl()
          CheckRMAItemExpirationCmdImpl constructor.
 
Method Summary
 boolean getRMAItemExpired()
          Whether RMAItem has expired.
 void performExecute()
          Execute the command.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setRMAItemAB( RMAItemAccessBean RMAItemAB)
          Set the RMA Item being accessed.
 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

CheckRMAItemExpirationCmdImpl

public CheckRMAItemExpirationCmdImpl()
CheckRMAItemExpirationCmdImpl constructor.
Method Detail

getRMAItemExpired

public boolean getRMAItemExpired()
Whether RMAItem has expired.
Specified by:
getRMAItemExpired in interface CheckRMAItemExpirationCmd
Returns:
true if RMA item has expired; false otherwise;

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()
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

setRMAItemAB

public void setRMAItemAB(RMAItemAccessBean RMAItemAB)
Set the RMA Item being accessed.
Specified by:
setRMAItemAB in interface CheckRMAItemExpirationCmd
Parameters:
RMAItemAB - the RMA Item access bean.

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