org.openmobileis.synchro.openmsp.server.synctarget
Class DefaultOpenMSPSynchroTargetListener

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.server.synctarget.DefaultOpenMSPSynchroTargetListener
All Implemented Interfaces:
OpenMSPSynchroTargetListener
Direct Known Subclasses:
TestOpenMSPSynchroTargetListener

public abstract class DefaultOpenMSPSynchroTargetListener
extends java.lang.Object
implements OpenMSPSynchroTargetListener

Title: OpenMobileIS project source
Description:

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

Constructor Summary
DefaultOpenMSPSynchroTargetListener()
           
 
Method Summary
protected  void addFileToSynchro(OpenMISFile file)
          add specified files to the answer to pda.
protected abstract  void beginProcessOpenMSpCommand(Credential cred)
           
protected abstract  ContainerMessage[] endProcessOpenMSpCommand()
           
abstract  java.lang.String getTargetName()
           
protected abstract  void notifySyncAction(long sessionId, Credential cred, Command syncCommand)
           
protected abstract  Status processAddCommand(Credential cred, ContainerMessage addContainer)
           
 SyncTargetAnswer processCommand(Credential cred, ContainerMessage containerMessage)
           
protected abstract  Status processDeleteCommand(Credential cred, ContainerMessage deleteContainer)
           
protected abstract  ContainerMessage[] processGetCommand(Credential cred, ContainerMessage getCommande)
           
protected abstract  ContainerMessage processMapCommand(Credential cred, ContainerMessage mapContainer)
           
protected abstract  Status processReplaceCommand(Credential cred, ContainerMessage replaceContainer)
           
protected abstract  void processResultCommand(Credential cred, Result resultCommande)
           
protected abstract  void processStatusCommand(Credential cred, Status statusCommande)
           
protected  ContainerMessage[] processSyncCommand(long sessionId, ContainerMessage syncCommande)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOpenMSPSynchroTargetListener

public DefaultOpenMSPSynchroTargetListener()
Method Detail

processCommand

public SyncTargetAnswer processCommand(Credential cred,
                                       ContainerMessage containerMessage)
                                throws OpenMSPException
Specified by:
processCommand in interface OpenMSPSynchroTargetListener
Throws:
OpenMSPException

processSyncCommand

protected ContainerMessage[] processSyncCommand(long sessionId,
                                                ContainerMessage syncCommande)
                                         throws OpenMSPException
Throws:
OpenMSPException

addFileToSynchro

protected void addFileToSynchro(OpenMISFile file)
                         throws ServiceException
add specified files to the answer to pda. Credential and metaData can be null. source and target must not be null

Throws:
ServiceException

getTargetName

public abstract java.lang.String getTargetName()
Specified by:
getTargetName in interface OpenMSPSynchroTargetListener

processMapCommand

protected abstract ContainerMessage processMapCommand(Credential cred,
                                                      ContainerMessage mapContainer)
                                               throws OpenMSPException
Throws:
OpenMSPException

notifySyncAction

protected abstract void notifySyncAction(long sessionId,
                                         Credential cred,
                                         Command syncCommand)
                                  throws OpenMSPException
Throws:
OpenMSPException

processResultCommand

protected abstract void processResultCommand(Credential cred,
                                             Result resultCommande)
                                      throws OpenMSPException
Throws:
OpenMSPException

processStatusCommand

protected abstract void processStatusCommand(Credential cred,
                                             Status statusCommande)
                                      throws OpenMSPException
Throws:
OpenMSPException

processAddCommand

protected abstract Status processAddCommand(Credential cred,
                                            ContainerMessage addContainer)
                                     throws OpenMSPException
Throws:
OpenMSPException

processDeleteCommand

protected abstract Status processDeleteCommand(Credential cred,
                                               ContainerMessage deleteContainer)
                                        throws OpenMSPException
Throws:
OpenMSPException

processReplaceCommand

protected abstract Status processReplaceCommand(Credential cred,
                                                ContainerMessage replaceContainer)
                                         throws OpenMSPException
Throws:
OpenMSPException

beginProcessOpenMSpCommand

protected abstract void beginProcessOpenMSpCommand(Credential cred)
                                            throws OpenMSPException
Throws:
OpenMSPException

endProcessOpenMSpCommand

protected abstract ContainerMessage[] endProcessOpenMSpCommand()
                                                        throws OpenMSPException
Throws:
OpenMSPException

processGetCommand

protected abstract ContainerMessage[] processGetCommand(Credential cred,
                                                        ContainerMessage getCommande)
                                                 throws OpenMSPException
Throws:
OpenMSPException


Copyright 2006 OpenMobileIS. All Rights Reserved.