public class CalculateRMAApprovalCmdImpl extends TaskCommandImpl implements CalculateRMAApprovalCmd
CalculateRMAAproval interface.
Command used for calculating overall status of return merchandise 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
defaultCommandClassName, NAME| Constructor and Description |
|---|
CalculateRMAApprovalCmdImpl()
CalculateRMAApprovalCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 is called after a command has been executed.
|
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.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic CalculateRMAApprovalCmdImpl()
public void calculateRMAApproval()
throws ECSystemException
ECSystemExceptionpublic boolean isRMAApproved()
isRMAApproved in interface CalculateRMAApprovalCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
AbstractECTargetableCommandreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setRMAAB(RMAAccessBean rmaAB)
setRMAAB in interface CalculateRMAApprovalCmdrmaAB - the RMA access bean.public void setRMAItemABVector(java.util.Vector vRMAItemAB)
setRMAItemABVector in interface CalculateRMAApprovalCmdvRMAItemAB - vector of RMA item access beans.public void validateParameters()
throws ECException
Parameters
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - If there is no RMAABean or there is no RMAItemAccessBean, throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException