DoPaymentActionsPolicyCmdImpl
public 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, setRequestProperties
accessControlCheck, 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, validateParameters
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
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
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, validateParameters
public 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 CheckPaymentAcceptPolicyCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setApproveAmount(java.math.BigDecimal approveAmount)
setApproveAmount
in interface CheckPaymentAcceptPolicyCmd
approveAmount
- the approved amount to be checkedpublic void setErrorViewName(java.lang.String sEVN)
setErrorViewName
in interface CheckPaymentAcceptPolicyCmd
sEVN
- the Error View nameCheckPaymentAcceptPolicyCmd.ERRTASK_NAME
public void setOrder(OrderAccessBean abOrder)
setOrder
in interface CheckPaymentAcceptPolicyCmd
abOrder
- the OrderAccessBean representing the order for which the approved amount is to be checked