org.openmobileis.synchro.openmsp.client
Class SynchroMetaDataListener

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
      extended byorg.openmobileis.synchro.openmsp.client.SynchroMetaDataListener
All Implemented Interfaces:
OpenMSPSyncListener

public class SynchroMetaDataListener
extends DefaultOpenMSPSyncListener


Field Summary
 
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
SynchroMetaDataListener()
           
 
Method Summary
 java.io.Serializable getServerMetadata()
           
 java.lang.String getSyncName()
          Return the name used to identiy the of the listener in the synchro processus.
 java.io.Serializable getTerminalMetadata()
           
 void receiveResultCommand(ContainerMessage resultContainer, ContainerMessage initialCommand)
          Event sent when the sync manager receives RESULT openML messages from the server
 void receiveStatusCommand(Status statusCommande, ContainerMessage initialCommand)
          Event sent when the sync manager receives STATUS openML messages from the server
 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 setServerMetadata(java.io.Serializable serverMetadata)
           
 void setTerminalMetadata(java.io.Serializable terminalMetadata)
           
 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, receiveMapCommand, receiveReplaceCommand, receiveSyncCommand, receiveSyncItem, setSynchroStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchroMetaDataListener

public SynchroMetaDataListener()
Method Detail

getTerminalMetadata

public java.io.Serializable getTerminalMetadata()

setTerminalMetadata

public void setTerminalMetadata(java.io.Serializable terminalMetadata)

getServerMetadata

public java.io.Serializable getServerMetadata()

setServerMetadata

public void setServerMetadata(java.io.Serializable serverMetadata)

getSyncName

public java.lang.String getSyncName()
Description copied from interface: OpenMSPSyncListener
Return the name used to identiy the of the listener in the synchro processus. This name correspond to the source in the OpenMS protocol.


startSync

public void startSync(Credential cred,
                      SynchroDescriptor synchrodescriptor)
               throws OpenMSPException
Description copied from class: DefaultOpenMSPSyncListener
Fire this event once a synchro is starting

Specified by:
startSync in interface OpenMSPSyncListener
Overrides:
startSync in class DefaultOpenMSPSyncListener
Throws:
OpenMSPException

receiveResultCommand

public void receiveResultCommand(ContainerMessage resultContainer,
                                 ContainerMessage initialCommand)
                          throws OpenMSPException
Description copied from class: DefaultOpenMSPSyncListener
Event sent when the sync manager receives RESULT openML messages from the server

Specified by:
receiveResultCommand in interface OpenMSPSyncListener
Overrides:
receiveResultCommand in class DefaultOpenMSPSyncListener
Throws:
OpenMSPException

receiveStatusCommand

public void receiveStatusCommand(Status statusCommande,
                                 ContainerMessage initialCommand)
                          throws OpenMSPException
Description copied from interface: OpenMSPSyncListener
Event sent when the sync manager receives STATUS openML messages from the server

Throws:
OpenMSPException

sendData

public void sendData(Message message)
              throws OpenMSPException
Description copied from interface: OpenMSPSyncListener
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.

Throws:
OpenMSPException


Copyright 2006 OpenMobileIS. All Rights Reserved.