public class PluginAdapter_V1 extends PluginAdapter implements java.lang.Cloneable
This class is the implementation of PluginAdapter for Plugin Specification version 1.0. In Plugin Specification version 1.0, the plugin is a stateless session bean. This class will prepare the parameters needed by the plugin. Then it will call the plugin's remote APIs, retrieve the output from the plugin, update the objects in the database. When PluginController needs the plugin to participate, it will call the PluginAdapter. And then will retrieve the output information from the database or from the fields of PluginAdapter.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
PluginAdapter_V1(PluginConfigurationImpl pluginConfData)
This method is the constructor of PluginAdapter_V1.
|
Modifier and Type | Method and Description |
---|---|
void | approve() |
void | approveAndDeposit() |
boolean | checkHealth()
This method will check the health of the Plugins.
|
void | checkPaymentInstruction() |
java.lang.Object | clone()
This method overrides the clone() function of Object class.
|
void | credit() |
void | deposit() |
java.lang.String | getAuthenticationURL()
This method sends the build popup URL of punch-out payment to plugin, then gets the URL.
|
java.math.BigDecimal | getAvailableBalance() |
void | getBatch()
This method gets the batch results from the paymentech back end.
|
void | getCredit() |
java.lang.String | getMessage(java.lang.String messageKey, java.util.Locale locale) |
javax.ejb.EJBObject | getMyEjb()
This method returns the EJB object for payments plug-ins.
|
void | getPayment() |
void | init()
This method initializes this Plugin Adapter.
|
void | initAuthenticationSession()
This method sends the build popup URL of punch-out payment to plugin, then gets the URL.
|
boolean | isPluginLoaded()
This method checks if this plugin is loaded successfully.
|
java.lang.String | preprocessProviderResponseData()
This method executes the verification with PSP and gets the result of payment processing.
|
java.util.Map | processProviderResponse()
This method executes the verification with PSP and gets the result of payment processing.
|
void | reverseApproval() |
void | reverseCredit() |
void | reverseDeposit() |
void | settleBatch(boolean forceClose)
This method sends the batch request that contains all the credit/deposit transactions need to be batched by calling the batch API of the plugins.
|
void | validatePaymentInstruction() |
public static final java.lang.String COPYRIGHT
public PluginAdapter_V1(PluginConfigurationImpl pluginConfData)
public java.math.BigDecimal getAvailableBalance() throws InputException, BackendException, InternalException, ConfigException
public void getCredit() throws InputException, BackendException, InternalException, ConfigException
public java.lang.String getMessage(java.lang.String messageKey, java.util.Locale locale) throws InputException, BackendException, InternalException, ConfigException
public void getPayment() throws InputException, BackendException, InternalException, ConfigException
public boolean isPluginLoaded()
public void approve() throws InputException, BackendException, InternalException, ConfigException
public void approveAndDeposit() throws InputException, BackendException, InternalException, ConfigException
public void checkPaymentInstruction() throws InputException, BackendException, InternalException, ConfigException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public void credit() throws InputException, BackendException, InternalException, ConfigException
public void deposit() throws InputException, BackendException, InternalException, ConfigException
public void init()
public void reverseApproval() throws InputException, BackendException, InternalException, ConfigException
public void reverseCredit() throws InputException, BackendException, InternalException, ConfigException
public void reverseDeposit() throws InputException, BackendException, InternalException, ConfigException
public void validatePaymentInstruction() throws InputException, BackendException, InternalException, ConfigException
public boolean checkHealth() throws InternalException
public javax.ejb.EJBObject getMyEjb()
public void getBatch() throws InputException, CommunicationException, InternalException, ConfigException
public void settleBatch(boolean forceClose) throws InputException, CommunicationException, InternalException, ConfigException
public void initAuthenticationSession() throws InternalException, CommunicationException
public java.lang.String getAuthenticationURL() throws InternalException, CommunicationException
public java.lang.String preprocessProviderResponseData() throws InternalException, CommunicationException
public java.util.Map processProviderResponse() throws InternalException, CommunicationException