public class ValidatePaymentMethodCmdImpl extends TaskCommandImpl implements ValidatePaymentMethodCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ValidatePaymentMethodCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | getErrorViewName()
This methods returns the error view name.
|
protected java.util.ArrayList | getExistingPaymentInstructions(OrderAccessBean abOrder)
This method is used to get all the existing payment instructions for the given order.
|
protected OrderAccessBean | getOrderAccessBean()
This method returns a reference to current order access bean.
|
protected boolean | isPolicyInUsablePaymentTCList()
This method is used to determine whether the current policy is a valid one for the order.
|
void | performExecute()
This method executes the actual business logic of the command, which validate the passed payment method for the given order.
|
void | setErrorViewName(java.lang.String errorViewName)
This method sets the error view name.
|
void | setOrderId(java.lang.Long orderId)
This method is mandatory, specifying the order on which the payment method will be validate.
|
void | setPolicyId(java.lang.Long policyId)
This method is mandatory, specifying the policy ID of the payment method to be validate.
|
public static final java.lang.String COPYRIGHT
public void setOrderId(java.lang.Long orderId)
public void setPolicyId(java.lang.Long policyId)
public void performExecute() throws ECException
protected java.lang.String getErrorViewName()
protected OrderAccessBean getOrderAccessBean() throws ECException
This method returns a reference to current order access bean.
This method first checks if there is a local reference to the order access bean. If not present, it will create a new one.public void setErrorViewName(java.lang.String errorViewName)
protected java.util.ArrayList getExistingPaymentInstructions(OrderAccessBean abOrder) throws ECException
protected boolean isPolicyInUsablePaymentTCList() throws ECException