com.ibm.commerce.returns.commands
Class CheckRMAItemExpirationCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.returns.commands.CheckRMAItemExpirationCmdImpl
- All Implemented Interfaces:
- CheckRMAItemExpirationCmd, ECCommand, 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.
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 |
CheckRMAItemExpirationCmdImpl
public CheckRMAItemExpirationCmdImpl()
- CheckRMAItemExpirationCmdImpl constructor.
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 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
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 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.
-