|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibilling.client.RMISessionConnection
public class RMISessionConnection
RMI based implementation of SessionConnection. Can also be used in non-RMI mode (locally).
| Field Summary | |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
config
configuration map |
private java.lang.Integer |
merchantAccountCode
merchant account code. |
private java.lang.String |
password
password. |
private ibilling.gates.RMIGates |
rmiGates
Reference to remote bean |
private ibilling.gates.RMIGatesLocal |
rmiGatesLocal
Reference to local bean |
| Fields inherited from interface ibilling.client.SessionConnection |
|---|
CLIENT_EMAIL_DOMAIN, CLIENT_EMAIL_ENCODED, CLIENT_IP_ADDRESS, CLIENT_PASSWORD_ENCODED, CLIENT_USER_NAME_ENCODED, CONNECTION_TYPE, DEBUG, FIND_ACCOUNT_TRANSACTION, FIND_CUSTOMER_ACCOUNT, FIND_PAYMENT_OPTION, FIND_PAYMENT_PLAN, KEYSTORE_PASSWORD, KEYSTORE_PATH, LOAD_OBJECT, PAYMENT_OPTION_VERIFICATION_AMOUNT, PROCESSOR_HOST |
| Constructor Summary | |
|---|---|
RMISessionConnection()
|
|
| Method Summary | |
|---|---|
java.util.List<ClientObject> |
find(SessionContext sessionContext,
java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Communicates find message to server |
private java.lang.reflect.Field[] |
getFields(java.lang.Class clazz)
|
private boolean |
isUpdatedField(java.lang.String className)
|
void |
login(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> config)
Communicates login message to the server |
void |
logout()
Communicates logout message to the server for a single CustomerAccount |
void |
save(SessionContext sessionContext,
java.util.List<CustomerAccount> customerAccounts)
Communicates save message to the server for a list of CustomerAccounts |
private void |
synchronizeClientObject(SessionContext sessionContext,
ClientObject clientObject)
|
private void |
synchronizeWithSessionContext(SessionContext sessionContext,
java.util.List<CustomerAccount> customerAccountList)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Integer merchantAccountCode
private java.lang.String password
private ibilling.gates.RMIGates rmiGates
private ibilling.gates.RMIGatesLocal rmiGatesLocal
private java.util.Map<java.lang.String,java.lang.Object> config
| Constructor Detail |
|---|
public RMISessionConnection()
| Method Detail |
|---|
public void login(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> config)
SessionConnection
login in interface SessionConnectionmerchantAccountCode - merchant account codepassword - passwordconfig - configuration Map usually indicating connection URL
and SSL related parameterspublic void logout()
SessionConnection
logout in interface SessionConnection
public void save(SessionContext sessionContext,
java.util.List<CustomerAccount> customerAccounts)
throws ClientException
SessionConnection
save in interface SessionConnectioncustomerAccounts - List of CustomerAccounts to be saved
ClientException - in case of communication or validation issues
public java.util.List<ClientObject> find(SessionContext sessionContext,
java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws ClientException
SessionConnection
find in interface SessionConnectionqueryName - name of the query to be executed by the serverparameters - search parameters to use within the query
ClientException - in case of communication or validation issues
private void synchronizeWithSessionContext(SessionContext sessionContext,
java.util.List<CustomerAccount> customerAccountList)
private java.lang.reflect.Field[] getFields(java.lang.Class clazz)
private void synchronizeClientObject(SessionContext sessionContext,
ClientObject clientObject)
private boolean isUpdatedField(java.lang.String className)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||