public class LOCPluginBean
extends java.lang.Object
implements javax.ejb.SessionBean
Constructor and Description |
---|
LOCPluginBean() |
Modifier and Type | Method and Description |
---|---|
FinancialTransaction | approve(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
FinancialTransaction | approveAndDeposit(PluginContext pluginContext, FinancialTransaction depositTransaction, boolean retry)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
boolean | checkHealth()
This method checks whether XML configuration for the Plugin is available.
|
void | checkPaymentInstruction(PluginContext pluginContext, PaymentInstruction paymentInstruction)
This method checks if StoreID, buyerOrgID, credit line account number for the specified PaymentInstruction are present and indicate everything is OK.
|
FinancialTransaction | credit(PluginContext pluginContext, FinancialTransaction creditTransaction, boolean retry)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
FinancialTransaction | deposit(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry)
This method receives the deposit request, checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
void | ejbActivate()
This method is the implementation of the ejbActivate() method(It does nothing here).
|
void | ejbCreate()
This method is the implementation of the ejbCreate() method.
|
void | ejbPassivate()
This method is the implementation of the ejbPassivate() method(It does nothing here).
|
void | ejbRemove()
This method is the implementation of the ejbRemove() method(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 key of the message.
|
javax.ejb.SessionContext | getSessionContext()
This method returns the session context.
|
FinancialTransaction | reverseApproval(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
FinancialTransaction | reverseCredit(PluginContext pluginContext, FinancialTransaction creditTransaction, boolean retry)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
FinancialTransaction | reverseDeposit(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
void | setSessionContext(javax.ejb.SessionContext ctx)
This method sets the session context.
|
void | validatePaymentInstruction(PluginContext pluginContext, PaymentInstruction paymentInstruction)
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present.
|
public java.lang.String getMessage(PluginContext pluginContext, java.lang.String messageKey) throws PluginException
public void setSessionContext(javax.ejb.SessionContext ctx)
public javax.ejb.SessionContext getSessionContext()
public FinancialTransaction approve(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
public FinancialTransaction approveAndDeposit(PluginContext pluginContext, FinancialTransaction depositTransaction, boolean retry) throws PluginException
public void checkPaymentInstruction(PluginContext pluginContext, PaymentInstruction paymentInstruction) throws PluginException
public FinancialTransaction credit(PluginContext pluginContext, FinancialTransaction creditTransaction, boolean retry) throws PluginException
public FinancialTransaction deposit(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
public void ejbActivate()
public void ejbCreate() throws javax.ejb.CreateException
public void ejbPassivate()
public void ejbRemove()
public FinancialTransaction reverseApproval(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
public FinancialTransaction reverseCredit(PluginContext pluginContext, FinancialTransaction creditTransaction, boolean retry) throws PluginException
This method checks if StoreID, buyerOrgID, credit line account number for the specified Payment Instruction are present. If yes, it returns successfully; if no, it throws exceptions.
The credit can be a dependent credit or independent credit transaction.
public FinancialTransaction reverseDeposit(PluginContext pluginContext, FinancialTransaction paymentTransaction, boolean retry) throws PluginException
public void validatePaymentInstruction(PluginContext pluginContext, PaymentInstruction paymentInstruction) throws PluginException
public boolean checkHealth()
This method checks whether XML configuration for the Plugin is available. For the SimpleOffline, if the XML file is missing, or renamed, or its content is invalid, then false is returned; otherwise true is returned. And for other Plugin, always true is returned since no corresponding XML configuration file exists.
This API is used by PluginFactory in accelerator. When false is returned, PluginFacotry will not put this plugin into the available collection. And further it will not be listed in the available payment methods in accelerator.