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