public class CalculateReturnItemCreditCmdImpl extends TaskCommandImpl implements CalculateReturnItemCreditCmd
CalculateReturnItemCreditCmd
interface.
Calculate the automatic credit for a return merchandise authorization (RMA) item associated with a complete order item.
Behaviour
Utilizes these access beans
defaultCommandClassName, NAME
Constructor and Description |
---|
CalculateReturnItemCreditCmdImpl()
CalculateReturnItemCreditCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Execute the command.
|
void |
reset()
Reset the command.
|
void |
setOrderItemAB(OrderItemAccessBean anOrderItemAB)
Set the orderItem being returned/refunded.
|
void |
setQuantity(java.lang.Double aQuantity)
Set the quantity to be credited.
|
void |
setRMAAB(RMAAccessBean anRMAAB)
Set the RMA for which the refund is being requested.
|
void |
setRMAItemAB(RMAItemAccessBean newRMAItemAB)
Set the RMA Item access bean which will have its amounts updated.
|
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, 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 CalculateReturnItemCreditCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
setOrderItemAB
in interface CalculateReturnItemCreditCmd
anOrderItemAB
- The orderItem access bean.public void setQuantity(java.lang.Double aQuantity)
setQuantity
in interface CalculateReturnItemCreditCmd
aQuantity
- The quantity to be credited.public void setRMAAB(RMAAccessBean anRMAAB)
setRMAAB
in interface CalculateReturnItemCreditCmd
anRMAAB
- The RMA access bean.public void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
setRMAItemAB
in interface CalculateReturnItemCreditCmd
newRMAItemAB
- The RMA item access bean.public void validateParameters() throws ECException
Parameters
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If there is no StoreAccessBean or there is no RMAItemAccessBean or there is no OrderItemAccessBean or
there is no RMAccessBean or a quantity has not be specified , throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException