public class PPCAdhocCreditCmdImpl extends ToolsControllerCommandImpl implements PPCAdhocCreditCmd, ECToolsConstants, ECConstants
Input Parameters:
Business Logic:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
Class name
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
PPCAdhocCreditCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection | credit()
The method executes credit transaction.
|
protected com.ibm.commerce.edp.model.ObjectModelFacadeLocal | getObjectModelFacade()
This is the Method Shortcut to obtain the Object Model Facade.
|
protected com.ibm.commerce.payments.plugincontroller.beans.ObjectModuleFacadeLocal | getObjectModuleFacade()
This method returns the facade for WebSphere Commerce Payments DB, which is used to actually access the corresponding data in the DB.
|
java.lang.String | getPaymentConfigGroup()
This method gets the payment configuration group.
|
java.lang.String | getPaymentId()
This method returns the current paymentId.
|
com.ibm.commerce.edp.model.PaymentInstructionData | getPaymentInstructionData()
This method returns the PaymentInstructionData.
|
java.lang.String | getPaymentInstructionId()
This method returns the current paymentInstructionId.
|
java.math.BigDecimal | getRequestAmount()
This method returns the current request amount.
|
AccessVector | getResources()
This method returns the access vector accessed by this command.
|
protected void | getResultingPaymentsForDependentCredit()
The method gets the resulting payments which will be used for the dependent credit.
|
protected void | handleSubmitError(ECException e)
This method constructs and returns the error message.
|
void | performExecute()
The main business logic of this command implementation.
|
void | setPaymentConfigGroup(java.lang.String payConfGroup)
This method sets the payment configuration group.
|
void | setPaymentId(java.lang.String pId)
This method sets the current paymentId.
|
void | setPaymentInstructionData(com.ibm.commerce.edp.model.PaymentInstructionData piData)
This method sets the PaymentInstructionData.
|
void | setPaymentInstructionId(java.lang.String piID)
This method sets the current paymentInstructionId.
|
void | setRequestAmount(java.math.BigDecimal amount)
This method sets the current request amount.
|
protected void | setResponseProperty()
The method sets response property after executed the command logic successfully.
|
void | validateParameters()
This method parses the parameters and validates whether the parameters passed in are valid.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public java.lang.String getPaymentId()
public void setPaymentId(java.lang.String pId)
public java.lang.String getPaymentInstructionId()
public void setPaymentInstructionId(java.lang.String piID)
public java.math.BigDecimal getRequestAmount()
public void setRequestAmount(java.math.BigDecimal amount)
public void performExecute() throws ECException
public AccessVector getResources() throws ECException
public void validateParameters() throws ECException
protected void getResultingPaymentsForDependentCredit() throws ECException
protected java.util.Collection credit() throws ECException
protected void handleSubmitError(ECException e) throws ECApplicationException
protected void setResponseProperty()
protected com.ibm.commerce.edp.model.ObjectModelFacadeLocal getObjectModelFacade() throws J2EEException
protected com.ibm.commerce.payments.plugincontroller.beans.ObjectModuleFacadeLocal getObjectModuleFacade() throws InternalException
public com.ibm.commerce.edp.model.PaymentInstructionData getPaymentInstructionData()
public void setPaymentInstructionData(com.ibm.commerce.edp.model.PaymentInstructionData piData)
public java.lang.String getPaymentConfigGroup()
public void setPaymentConfigGroup(java.lang.String payConfGroup)