|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.returns.commands.CalculateReturnItemCreditCmdImpl
Calculate the automatic credit for a return mechandise authorization (RMA) item associated with a complete order item.
Behaviour
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.CalculateReturnItemCreditCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Constructor Summary | |
CalculateReturnItemCreditCmdImpl()
CalculateReturnItemCreditCmdImpl constructor. |
Method Summary | |
protected OrderItemAccessBean |
getOrderItemAB()
Get the order item access bean.. |
protected java.lang.Double |
getQuantity()
Get the quantity. |
protected RMAAccessBean |
getRMAAB()
Get the RMA access bean.. |
protected RMAItemAccessBean |
getRMAItemAB()
Get the RMA item access bean. |
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. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Constructor Detail |
public CalculateReturnItemCreditCmdImpl()
Method Detail |
protected OrderItemAccessBean getOrderItemAB()
protected java.lang.Double getQuantity()
protected RMAAccessBean getRMAAB()
protected RMAItemAccessBean getRMAItemAB()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
reset
in class AbstractECCommand
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
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |