|
||||||||
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.command.BusinessPolicyCommandImpl | +--com.ibm.commerce.returns.commands.RefundPaymentPolicyCmdImpl
Abstract base class that is the framework for implementing a refund payment policy. This implementation calls doWork().
Fields inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
policyId, requestProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Constructor Summary | |
RefundPaymentPolicyCmdImpl()
RefundPaymentPolicyCmdImpl constructor. |
Method Summary | |
protected void |
callDoRefundPolicy(java.lang.Long aPaymentPolicyId)
Call the DoRefundPolicyCmd policy command for the payment policy id. |
protected abstract void |
doWork()
Do the real work. |
protected java.lang.String |
getErrorViewName()
Get the error view name. |
protected OrderAccessBean |
getOrder()
Get the order access bean. |
protected java.lang.Long |
getPaymentPolicyId()
Get the payment policy id. |
protected java.math.BigDecimal |
getRefundAmount()
Get the refund amount. |
protected RMAAccessBean |
getRMA()
Get the RMA access bean. |
void |
performExecute()
Execute the command. |
void |
reset()
Reset the command. |
void |
setErrorViewName(java.lang.String sEVN)
(Optional) error view name passed in by the caller. |
void |
setOrder(OrderAccessBean ab)
The order to be refunded. |
void |
setPaymentPolicyId(java.lang.Long aPolicyId)
The id of the policy used to pay for the order originally. |
void |
setRefundAmount(java.math.BigDecimal refundAmount)
The amount to refund. |
void |
setRMA(RMAAccessBean anRMA)
The RMA to refund to. |
void |
validateParameters()
Check mandatory parameters. |
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties |
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.BusinessPolicyCommand |
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties |
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 RefundPaymentPolicyCmdImpl()
Method Detail |
protected void callDoRefundPolicy(java.lang.Long aPaymentPolicyId) throws ECException
aPaymentPolicyId
- The payment policy identifier.protected abstract void doWork() throws ECException
protected java.lang.String getErrorViewName()
protected OrderAccessBean getOrder()
protected java.lang.Long getPaymentPolicyId()
protected java.math.BigDecimal getRefundAmount()
protected RMAAccessBean getRMA()
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 setErrorViewName(java.lang.String sEVN)
RefundPaymentPolicyCmd
setErrorViewName
in interface RefundPaymentPolicyCmd
com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd
sEVN
- The error view name.public void setOrder(OrderAccessBean ab)
RefundPaymentPolicyCmd
setOrder
in interface RefundPaymentPolicyCmd
com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd
ab
- The order access bean.public void setPaymentPolicyId(java.lang.Long aPolicyId)
RefundPaymentPolicyCmd
setPaymentPolicyId
in interface RefundPaymentPolicyCmd
com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd
aPolicyId
- The payment policy Id.public void setRefundAmount(java.math.BigDecimal refundAmount)
RefundPaymentPolicyCmd
setRefundAmount
in interface RefundPaymentPolicyCmd
com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd
refundAmount
- The amount to refund.public void setRMA(RMAAccessBean anRMA)
RefundPaymentPolicyCmd
setRMA
in interface RefundPaymentPolicyCmd
com.ibm.commerce.returns.commands.RefundPaymentPolicyCmd
anRMA
- The RMA 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 |