|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener
Title: OpenMobileIS project source
Description:
Field Summary | |
protected java.lang.String |
installPath
|
Fields inherited from class org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener |
ADD_ERROR_MESSAGE, DELETE_ERROR_MESSAGE, ITEM_ERROR_MESSAGE, SYNC_ERROR_MESSAGE, SYNC_UNAUTHORIZED_MESSAGE, UPDATE_ERROR_MESSAGE |
Fields inherited from interface org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener |
SYNCHRO_FAILLED, SYNCHRO_OK |
Constructor Summary | |
OpenMSPDBSyncListener()
|
Method Summary | |
protected abstract java.lang.String[] |
getDBDataForAdd(java.lang.String pdaUID)
return the data conforme to the disptacher create AbstractQueryManager method for specified pdaUID . |
protected abstract java.lang.String[] |
getDBDataForReplace(java.lang.String pdaUID)
return the data conforme to the disptacher update AbstractQueryManager method for specified pdaUID . |
protected abstract ImportQueryManager |
getImportQueryManager()
return the ImportQueryManager use to make synchro data import. |
protected java.lang.String |
getSendCommandMetaData()
|
protected java.lang.String |
getServerUIDForAOUID(java.lang.String pdaUID)
return the server uid for the specified pdaUID. |
protected byte[] |
getSyncDataForAtomicObjectUID(java.lang.String pdaUID,
int action)
return the data to add to the synchro command ADD OR REPLACE. |
protected abstract java.lang.String |
getSynchroTarget()
return the target of the SYNC command use to synchronize listener data. |
protected abstract Credential |
getSyncroCredential()
return the credential to use for data synchronization. |
protected void |
importCompletSynchroDatabaseFile(java.lang.String importFile)
Call during complete synchronisation to dump the database with server data store in the specified file name. |
protected 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. |
protected void |
notifyMAPofUID(java.lang.String pdauid,
java.lang.String serveruid)
|
void |
notifySyncDataDone(java.lang.String pdaID,
int actionType)
Call when a client data modification (ActionDB) has been update on the server side. |
void |
receiveMapCommand(ContainerMessage mapContainer)
Event sent when the sync manager receives MAP command openML messages from the server |
void |
receiveResultCommand(ContainerMessage resultContainer,
ContainerMessage initialCommand)
Event sent when the sync manager receives RESULT openML messages from the server |
void |
receiveStatusCommand(Status statusCommande,
ContainerMessage initialContenaire)
Event sent when the sync manager receives STATUS openML messages from the server |
protected void |
receiveSyncItem(Credential cred,
Item item,
long newSyncNumber)
Call when the server answer SYNC command container contains a SYNC item. |
protected void |
removeServerUIDForAOUID(java.lang.String pdaUID)
remove the pda uid associated server uid. |
void |
sendData(Message message)
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 |
startSync(Credential cred,
SynchroDescriptor synchrodescriptor)
Fire this event once a synchro is starting |
Methods inherited from class org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener |
addCredentialToCommand, endSync, equals, getJournalLogRenderer, getSynchroStatus, hashCode, initListener, isSyncOK, notifySynchroFailure, receiveAddCommand, receiveDeleteCommand, receiveGetCommand, receiveReplaceCommand, receiveSyncCommand, setSynchroStatus |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener |
getSyncName |
Field Detail |
protected java.lang.String installPath
Constructor Detail |
public OpenMSPDBSyncListener()
Method Detail |
public void startSync(Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException
DefaultOpenMSPSyncListener
startSync
in interface OpenMSPSyncListener
startSync
in class DefaultOpenMSPSyncListener
OpenMSPException
public void sendData(Message message) throws OpenMSPException
OpenMSPSyncListener
OpenMSPException
public void receiveMapCommand(ContainerMessage mapContainer) throws OpenMSPException
DefaultOpenMSPSyncListener
receiveMapCommand
in interface OpenMSPSyncListener
receiveMapCommand
in class DefaultOpenMSPSyncListener
OpenMSPException
public void receiveResultCommand(ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException
DefaultOpenMSPSyncListener
receiveResultCommand
in interface OpenMSPSyncListener
receiveResultCommand
in class DefaultOpenMSPSyncListener
OpenMSPException
public void receiveStatusCommand(Status statusCommande, ContainerMessage initialContenaire) throws OpenMSPException
OpenMSPSyncListener
OpenMSPException
protected void manageReturnStatusLog(int statusCode, int cmlType, ContainerMessage container)
protected void receiveSyncItem(Credential cred, Item item, long newSyncNumber)
DefaultOpenMSPSyncListener
receiveSyncItem
in class DefaultOpenMSPSyncListener
protected byte[] getSyncDataForAtomicObjectUID(java.lang.String pdaUID, int action) throws OpenMSPException
OpenMSPException
protected java.lang.String getSendCommandMetaData() throws OpenMSPException
OpenMSPException
protected java.lang.String getServerUIDForAOUID(java.lang.String pdaUID)
public void notifySyncDataDone(java.lang.String pdaID, int actionType) throws OpenMSPException
pdaID
- : Id of the object updated on the server side.actionType
- ActionDB modification type
OpenMSPException
protected void notifyMAPofUID(java.lang.String pdauid, java.lang.String serveruid) throws OpenMSPException
OpenMSPException
protected void removeServerUIDForAOUID(java.lang.String pdaUID) throws OpenMSPException
OpenMSPException
protected void importCompletSynchroDatabaseFile(java.lang.String importFile) throws DatabaseException
importFile
- : file containing server dump data file.
DatabaseException
protected abstract java.lang.String[] getDBDataForAdd(java.lang.String pdaUID) throws OpenMSPException
OpenMSPException
protected abstract java.lang.String[] getDBDataForReplace(java.lang.String pdaUID) throws OpenMSPException
OpenMSPException
protected abstract java.lang.String getSynchroTarget()
protected abstract Credential getSyncroCredential()
protected abstract ImportQueryManager getImportQueryManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |