org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager Class Reference

Inheritance diagram for org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager:

org.openmobileis.synchro.client.SynchroProcessor List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: Default SynchroManager for OpenMSP protocol.

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

Definition at line 61 of file OpenMSPSynchroManager.java.

Public Member Functions

String getProcessorName ()
void notifyFailure (String listernerName)
OpenMSPSyncListener getListenerByName (String listenerName)
 Return the registered listener with specified name.
OpenMSPSyncListener getModuleListenerByName (String listenerName)
 Return the registered module listener with specified name.
void doSynchro (Credential cred, SynchroDescriptor descriptor) throws SynchroException
void registerSynchroListenerAddNotifier (SynchroListenerAddNotifier listener)
 register a listener that will be notified when a synchrolistener is added.
void addListener (OpenMSPSyncListener listener, String[] depends)
 register a new listener and its depends that will participate to the synchro.
void addModuleListener (OpenMSPSyncListener listener, String[] depends)
 register a new listener and its depends that will participate to the module synchro.
String getLastSynchroLogin ()
String getSynchroUserAgent (SynchroDescriptor descriptor)
 return the user agent to use with synchronisation.
int getGlobalSynchroStatut ()

Static Public Member Functions

static OpenMSPSynchroManager getManager ()

Static Public Attributes

static final String OPENMSPPROCESSORNAME = "OpenMSPSync"


Member Function Documentation

OpenMSPSyncListener org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.getListenerByName ( String  listenerName  ) 

Return the registered listener with specified name.

Parameters:
listenerName 
Returns:
registered listener with specified name.

Definition at line 113 of file OpenMSPSynchroManager.java.

References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.getListenerByName().

OpenMSPSyncListener org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.getModuleListenerByName ( String  listenerName  ) 

Return the registered module listener with specified name.

Module listener participate to module synchro Module synchro is the synchro of module specific files to manage module update.

Parameters:
listenerName 
Returns:

Definition at line 124 of file OpenMSPSynchroManager.java.

References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.getListenerByName().

void org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.addListener ( OpenMSPSyncListener  listener,
String[]  depends 
)

register a new listener and its depends that will participate to the synchro.

Listener's depends are an array of listener name that must be synchronized before the new listener. There is no specific order to register the listener and its dependance. If the SynchroListenerAddNotifier is registered the listener is registered only if the isBlocking() call return true. In other case nothing is done. The listener initListener() method is call before in all case.

Parameters:
listener : listener to register
depends : list of listener name

Definition at line 217 of file OpenMSPSynchroManager.java.

References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.addListener(), org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.initListener(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroListenerAddNotifier.isBlocking(), and org.openmobileis.database.fastobjectdb.synchro.client.SynchroListenerAddNotifier.notifyAddListener().

void org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.addModuleListener ( OpenMSPSyncListener  listener,
String[]  depends 
)

register a new listener and its depends that will participate to the module synchro.

Module synchro is the synchro of module specific files to manage module update. Listener's depends are an array of listener name that must be synchronized before the new listener. Thier is no specific order to register the listener and its dependance.

Parameters:
listener : listener to register
depends : list of listener name

Definition at line 247 of file OpenMSPSynchroManager.java.

References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.addListener().

String org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.getSynchroUserAgent ( SynchroDescriptor  descriptor  ) 

return the user agent to use with synchronisation.

The user agent can be defined with the property org.openmobileis.synchro.direct.useragent. or if not set, it's constructed with plateform information. default user agent : OpenMSPPlug-<OpenMobileISMajorVersion>.<OpenMobileISMinorVersion>-<OS>[<OSVersion>]-<user language>="">-<synchro type="" if="" present>=""> The synchro type is defined with the property OpenMSPsynchrotype of the descriptor.

Returns:

Definition at line 294 of file OpenMSPSynchroManager.java.

References org.openmobileis.common.context.Plateform.getOpenMobileISMajorVersion(), org.openmobileis.common.context.Plateform.getOpenMobileISMinorVersion(), org.openmobileis.common.context.Plateform.getOS(), org.openmobileis.common.context.Plateform.getOSVersion(), and org.openmobileis.synchro.client.SynchroDescriptor.getProperty().


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:42 2006 for OpenMobileIS by  doxygen 1.5.1-p1