public abstract class PluginAdapterBean
extends java.lang.Object
implements javax.ejb.SessionBean
| Constructor and Description |
|---|
PluginAdapterBean() |
| Modifier and Type | Method and Description |
|---|---|
FinancialTransaction |
approve(PluginContext pluginContext,
FinancialTransaction paymentTransaction,
boolean retry)
This method executes the approve transaction.
|
FinancialTransaction |
approveAndDeposit(PluginContext pluginContext,
FinancialTransaction depositTransaction,
boolean retry)
This method executes the approve and deposit payment transaction.
|
void |
checkPaymentInstruction(PluginContext pluginContext,
PaymentInstruction paymentInstruction)
This method checks the payment instruction.
|
FinancialTransaction |
credit(PluginContext pluginContext,
FinancialTransaction creditTransaction,
boolean retry)
This method executes the credit payment transaction.
|
FinancialTransaction |
deposit(PluginContext pluginContext,
FinancialTransaction paymentTransaction,
boolean retry)
This method executes the deposit payment transaction.
|
void |
ejbActivate()
This is the implementation method of ejbActivate(It does nothing here).
|
void |
ejbCreate()
This is the implementation method of ejbCreate(It does nothing here).
|
void |
ejbPassivate()
This is the implementation method of ejbPassivate(It does nothing here).
|
void |
ejbRemove()
This is the implementation method of ejbRemove(It does nothing here).
|
java.lang.String |
getMessage(PluginContext pluginContext,
java.lang.String messageKey)
This method returns the message from the pluginContext according to the message key.
|
javax.ejb.SessionContext |
getSessionContext()
getSessionContext
|
FinancialTransaction |
reverseApproval(PluginContext pluginContext,
FinancialTransaction paymentTransaction,
boolean retry)
This method executes the reverse approval payment transaction.
|
FinancialTransaction |
reverseCredit(PluginContext pluginContext,
FinancialTransaction creditTransaction,
boolean retry)
This method executes the reverse credit payment transaction.
|
FinancialTransaction |
reverseDeposit(PluginContext pluginContext,
FinancialTransaction paymentTransaction,
boolean retry)
This method executes the reverse deposit transaction.
|
void |
setSessionContext(javax.ejb.SessionContext ctx)
This method returns the SessionContext.
|
void |
validatePaymentInstruction(PluginContext pluginContext,
PaymentInstruction paymentInstruction)
This method validates the payment instruction.
|
public javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext in interface javax.ejb.SessionBeanctx - SessionContextpublic void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBeanpublic FinancialTransaction approve(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.paymentTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic FinancialTransaction approveAndDeposit(PluginContext pluginContext, FinancialTransaction depositTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.depositTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic void checkPaymentInstruction(PluginContext pluginContext, PaymentInstruction paymentInstruction) throws PluginException
pluginContext - The plugin context.paymentInstruction - The payment transaction that need to be executed.PluginExceptionpublic FinancialTransaction credit(PluginContext pluginContext, FinancialTransaction creditTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.creditTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic FinancialTransaction deposit(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.paymentTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic java.lang.String getMessage(PluginContext pluginContext, java.lang.String messageKey) throws PluginException
pluginContext - The plugin context.messageKey - A String indicating the message key.PluginExceptionpublic FinancialTransaction reverseApproval(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.paymentTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic FinancialTransaction reverseCredit(PluginContext pluginContext, FinancialTransaction creditTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.creditTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic FinancialTransaction reverseDeposit(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
pluginContext - The plugin context.paymentTransaction - The payment transaction that need to be executed.retry - A boolean indicating if this action should retry in case of failure.PluginExceptionpublic void validatePaymentInstruction(PluginContext pluginContext, PaymentInstruction paymentInstruction) throws PluginException
pluginContext - The plugin context.paymentInstruction - The payment transaction that need to be executed.PluginException