public class CalculateReturnTaxCmdImpl extends TaskCommandImpl implements CalculateReturnTaxCmd
CalculateReturnTaxCmd
interface.
Calculate the tax for a return merchandise authorization (RMA) item. Calls
GetReturnTaxesCmd for RMA items associated with an order item. Tax credit
for RMA items not associated with an order item defaults to zero.
Utilizes these access beans
defaultCommandClassName, NAME
Constructor and Description |
---|
CalculateReturnTaxCmdImpl()
ReturnItemCreditCalculateCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
getTaxCredits()
Get the calculated tax credits for the returned/refunded item.
|
void |
initRMATaxes(java.lang.Long aRMAId)
Clean out RMA item tax credit that may already be in database
|
void |
performExecute()
Execute the command.
|
void |
setRMAItemABs(java.util.Vector aRMAItemABVec)
This method sets the vector of RMAItems for which the tax credits are to be calculated.
|
void |
setTaxCredits(java.lang.Long rmaItemId,
MonetaryAmount aItemTaxCredit)
Insert tax credits in vector in the same order as command was called
|
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public CalculateReturnTaxCmdImpl()
public java.util.Vector getTaxCredits()
getTaxCredits
in interface CalculateReturnTaxCmd
public void initRMATaxes(java.lang.Long aRMAId) throws ECException
aRMAId
- RMA idECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setRMAItemABs(java.util.Vector aRMAItemABVec)
setRMAItemABs
in interface CalculateReturnTaxCmd
aRMAItemABVec
- the orderItem access bean vector.public void setTaxCredits(java.lang.Long rmaItemId, MonetaryAmount aItemTaxCredit) throws ECException
rmaItemId
- RMA item idaItemTaxCredit
- RMA item tax creditECException
public void validateParameters() throws ECException
Parameters
If there is no StoreAccessBean, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException