java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.returns.commands.CalculateRMAApprovalCmdImpl
Default implementation of the CalculateRMAAproval interface. Command used for calculating overall status of return mechandise authorization (RMA). If any RMA item is not approved (RMAITEM.STATUS='APP') or manually approved (RMAITEM.STATUS='MAN'), then the RMA is set to pending (RMA.STATUS='PND'). Otherwise, it is set to approved (RMA.STATUS='APP').
Utilizes these access beans
Field Summary |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.CalculateRMAApprovalCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CalculateRMAApprovalCmdImpl() CalculateRMAApprovalCmdImpl constructor. |
Method Summary | |
void | calculateRMAApproval() Loop through each RMAitem and determine the rolled up status of RMA. |
boolean | isRMAApproved() Whether RMA was approved |
void | performExecute() Execute the command. |
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() Check mandatory parameters. |
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 |
public CalculateRMAApprovalCmdImpl()
Method Detail |
public void calculateRMAApproval() throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException, ECSystemException
public boolean isRMAApproved()
public void performExecute() throws ECException
public void reset()
public void setRMAAB(RMAAccessBean rmaAB)
public void setRMAItemABVector(java.util.Vector vRMAItemAB)
public void validateParameters() throws ECException
Parameters
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.