org.openmobileis.module.profiles.terminal
Class OpenMSPProfileSyncListener

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
      extended byorg.openmobileis.module.profiles.terminal.OpenMSPProfileSyncListener
All Implemented Interfaces:
OpenMSPSyncListener

public class OpenMSPProfileSyncListener
extends DefaultOpenMSPSyncListener

Title: OpenMobileIS project source
Description: Listener for ProfilService (manage profil synchronisation) Manager priorities for OpenMSP messages (sequence) registered by EmbeddedProfilChannelManager

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
static java.lang.String profilSynchroSourceName
           
static java.lang.String profilSynchroTargetName
           
 
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
OpenMSPProfileSyncListener()
           
 
Method Summary
 java.lang.String getSyncName()
          Return the name used to identiy the of the listener in the synchro processus.
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.
 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
 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, receiveMapCommand, receiveReplaceCommand, receiveSyncCommand, receiveSyncItem, setSynchroStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

profilSynchroSourceName

public static final java.lang.String profilSynchroSourceName
See Also:
Constant Field Values

profilSynchroTargetName

public static final java.lang.String profilSynchroTargetName
See Also:
Constant Field Values
Constructor Detail

OpenMSPProfileSyncListener

public OpenMSPProfileSyncListener()
Method Detail

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 initialContenaire)
                          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)
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.


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

manageReturnStatusLog

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.



Copyright 2006 OpenMobileIS. All Rights Reserved.