Inheritance diagram for org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener:
Definition at line 63 of file OpenMSPDBSyncListener.java.
Public Member Functions | |
OpenMSPDBSyncListener () | |
void | startSync (Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException |
Fire this event once a synchro is starting. | |
void | sendData (Message message) throws OpenMSPException |
Event sent when the sync manager sends a openML message to the server The specified message is the message use to construct the synchro message This method fill the message with listener commande container. | |
void | receiveMapCommand (ContainerMessage mapContainer) throws OpenMSPException |
Event sent when the sync manager receives MAP command openML messages from the server. | |
void | receiveResultCommand (ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException |
Event sent when the sync manager receives RESULT openML messages from the server. | |
void | receiveStatusCommand (Status statusCommande, ContainerMessage initialContenaire) throws OpenMSPException |
Event sent when the sync manager receives STATUS openML messages from the server. | |
void | notifySyncDataDone (String pdaID, int actionType) throws OpenMSPException |
Call when a client data modification (ActionDB) has been update on the server side. | |
Protected Member Functions | |
void | manageReturnStatusLog (int statusCode, int cmlType, ContainerMessage container) |
notify when receiving a status commnand the status code, the CMLElement type of the send command and the container containing the command. | |
void | receiveSyncItem (Credential cred, Item item, long newSyncNumber) |
Call when the server answer SYNC command container contains a SYNC item. | |
byte[] | getSyncDataForAtomicObjectUID (String pdaUID, int action) throws OpenMSPException |
return the data to add to the synchro command ADD OR REPLACE. | |
String | getSendCommandMetaData () |
String | getServerUIDForAOUID (String pdaUID) |
return the server uid for the specified pdaUID. | |
void | notifyMAPofUID (String pdauid, String serveruid) throws OpenMSPException |
void | removeServerUIDForAOUID (String pdaUID) throws OpenMSPException |
remove the pda uid associated server uid. | |
void | importCompletSynchroDatabaseFile (String importFile) throws DatabaseException |
Call during complete synchronisation to dump the database with server data store in the specified file name. | |
abstract String[] | getDBDataForAdd (String pdaUID) throws OpenMSPException |
return the data conforme to the disptacher create AbstractQueryManager method for specified pdaUID . | |
abstract String[] | getDBDataForReplace (String pdaUID) throws OpenMSPException |
return the data conforme to the disptacher update AbstractQueryManager method for specified pdaUID . | |
abstract String | getSynchroTarget () |
return the target of the SYNC command use to synchronize listener data. | |
abstract Credential | getSyncroCredential () |
return the credential to use for data synchronization. | |
abstract ImportQueryManager | getImportQueryManager () |
return the ImportQueryManager use to make synchro data import. | |
Protected Attributes | |
String | installPath |
Static Protected Attributes | |
static String | ADD_ERROR_MESSAGE |
static String | UPDATE_ERROR_MESSAGE |
static String | DELETE_ERROR_MESSAGE |
static String | ITEM_ERROR_MESSAGE |
static String | SYNC_ERROR_MESSAGE |
static String | SYNC_UNAUTHORIZED_MESSAGE |
|
return the data conforme to the disptacher create AbstractQueryManager method for specified pdaUID . Return null if no data found Implemented in org.openmobileis.database.fastobjectdb.synchro.client.OpenMSPFODBSyncListener. |
|
return the data conforme to the disptacher update AbstractQueryManager method for specified pdaUID . Return null if no data found Implemented in org.openmobileis.database.fastobjectdb.synchro.client.OpenMSPFODBSyncListener. |
|
return the server uid for the specified pdaUID. Atomiv Object uid can be different on the server side and on the pda size. This method return the server uid use on server side to reference the pda uid specified. return null if not found. Definition at line 379 of file OpenMSPDBSyncListener.java. |
|
return the data to add to the synchro command ADD OR REPLACE. The format must be the same has the one use on dispatcher size. the default implementation call getDBDataForAdd() getDBDataForReplace() repending on the action and encode the result Definition at line 335 of file OpenMSPDBSyncListener.java. References org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.getSyncName(). |
|
return the credential to use for data synchronization. If no need return null. Implemented in org.openmobileis.database.fastobjectdb.synchro.client.OpenMSPFODBSyncListener. |
|
Call during complete synchronisation to dump the database with server data store in the specified file name.
Reimplemented in org.openmobileis.database.fastobjectdb.synchro.client.OpenMSPFODBSyncListener. Definition at line 410 of file OpenMSPDBSyncListener.java. |
|
Call when a client data modification (ActionDB) has been update on the server side. The actionType is defined by the class ActionDB.
Definition at line 390 of file OpenMSPDBSyncListener.java. |
|
Event sent when the sync manager receives MAP command openML messages from the server.
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener. Definition at line 206 of file OpenMSPDBSyncListener.java. References org.openmobileis.synchro.openmsp.protocol.Item.getSource(), and org.openmobileis.synchro.openmsp.protocol.Item.getTarget(). |
|
Event sent when the sync manager receives RESULT openML messages from the server.
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener. Definition at line 224 of file OpenMSPDBSyncListener.java. References org.openmobileis.synchro.openmsp.protocol.DataItem.getData(), org.openmobileis.synchro.openmsp.protocol.DataItem.getMetaInformation(), org.openmobileis.synchro.openmsp.protocol.Result.getMetaInformation(), and org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.getSyncName(). |
|
Event sent when the sync manager receives STATUS openML messages from the server.
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener. Definition at line 250 of file OpenMSPDBSyncListener.java. References org.openmobileis.synchro.openmsp.protocol.AbstractCommand.getElementType(), and org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.getSyncName(). |
|
Call when the server answer SYNC command container contains a SYNC item. Extends this method to process SYNC item.
Reimplemented from org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener. Definition at line 327 of file OpenMSPDBSyncListener.java. |
|
remove the pda uid associated server uid. this method is call when a delete commande from the PDA is has been done to the server. delete AO server id must be deleted to the pda too. Definition at line 402 of file OpenMSPDBSyncListener.java. |