DoPaymentActionsPolicyCmdImplpublic class CheckPaymentAcceptTestCmdImpl extends BusinessPolicyCommandImpl implements CheckPaymentAcceptPolicyCmd
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).
This command uses the following AccessBeans:
This command does not call other TaskCommand.
defaultCommandClassName, ERRTASK_NAME, NAME| Constructor and Description |
|---|
CheckPaymentAcceptTestCmdImpl()
Deprecated.
CheckPaymentAcceptTestCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getReturnCode()
Deprecated.
Returns the String return code indicating the payment approval status of the specified order.
|
void |
performExecute()
Deprecated.
Performs the main business logic of the command.
|
void |
setApproveAmount(java.math.BigDecimal approveAmount)
Deprecated.
Sets the approveAmount property of the command.
|
void |
setErrorViewName(java.lang.String sEVN)
Deprecated.
Sets the error view to be used to report error.
|
void |
setOrder(OrderAccessBean abOrder)
Deprecated.
Sets the order property of the command.
|
getPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, 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, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic CheckPaymentAcceptTestCmdImpl()
public java.lang.String getReturnCode()
This sample implementation class for the TestPaymentMethod policy always returns
the constant String PaymentConstants.APPROVAL_YES indicating the payment approval status of the
order is valid.
getReturnCode in interface CheckPaymentAcceptPolicyCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setApproveAmount(java.math.BigDecimal approveAmount)
setApproveAmount in interface CheckPaymentAcceptPolicyCmdapproveAmount - the approved amount to be checkedpublic void setErrorViewName(java.lang.String sEVN)
setErrorViewName in interface CheckPaymentAcceptPolicyCmdsEVN - the Error View nameCheckPaymentAcceptPolicyCmd.ERRTASK_NAMEpublic void setOrder(OrderAccessBean abOrder)
setOrder in interface CheckPaymentAcceptPolicyCmdabOrder - the OrderAccessBean representing the order for which the approved amount is to be checked