com.ibm.commerce.payment.commands
Class CheckPaymentAcceptTestCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.command.BusinessPolicyCommandImpl
|
+--com.ibm.commerce.payment.commands.CheckPaymentAcceptTestCmdImpl
- All Implemented Interfaces:
- BusinessPolicyCommand, CheckPaymentAcceptPolicyCmd, ECCommand, TaskCommand
- public class CheckPaymentAcceptTestCmdImpl
- extends BusinessPolicyCommandImpl
- implements CheckPaymentAcceptPolicyCmd
The CheckPaymentAcceptPolicyCmd
implementation class for the TestPaymentMethod
policy. This sample implementation class always returns the return code String that
indicates the payment approval status of "YES" (PaymentConstants.APPROVAL_YES).
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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, validateParameters |
CheckPaymentAcceptTestCmdImpl
public CheckPaymentAcceptTestCmdImpl()
- CheckPaymentAcceptTestCmdImpl constructor comment.
getOrder
protected OrderAccessBean getOrder()
getReturnCode
public java.lang.String getReturnCode()
- Returns the String return code indicating the approval status of the payment for the specified
order. This sample implementation class for the TestPaymentMethod policy always returns
the constant Sting PaymentConstants.APPROVAL_YES indicating the payment approval status of the
order is still valid.
- Specified by:
getReturnCode
in interface CheckPaymentAcceptPolicyCmd
- Returns:
- String the String return code indicating the payment approval status.
performExecute
public void performExecute()
throws ECException
- Performs the main business logic of the command.
For the TestPaymentMethod policy this command always returns the return code String
that indicate a payment approval status of "YES".
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setApproveAmount
public void setApproveAmount(java.math.BigDecimal approveAmount)
- setApproveAmount method comment.
- Specified by:
setApproveAmount
in interface CheckPaymentAcceptPolicyCmd
- Following copied from interface:
com.ibm.commerce.payment.commands.CheckPaymentAcceptPolicyCmd
- Parameters:
approveAmount
- the amount to be approved.
setErrorViewName
public void setErrorViewName(java.lang.String sEVN)
- Optional error view name passed in by the Caller.
- Specified by:
setErrorViewName
in interface CheckPaymentAcceptPolicyCmd
setOrder
public void setOrder(OrderAccessBean abOrder)
- The order to be processed.
- Specified by:
setOrder
in interface CheckPaymentAcceptPolicyCmd
- Following copied from interface:
com.ibm.commerce.payment.commands.CheckPaymentAcceptPolicyCmd
- Parameters:
abOrder
- the OrderAccessBean of the Order for which
is going to be reapproved.