org.demac.process.base.extension
Class SynchronizationService

java.lang.Object
  extended by org.demac.process.base.extension.ExtensionModule
      extended by org.demac.process.base.extension.SynchronizationService
All Implemented Interfaces:
Service

public abstract class SynchronizationService
extends ExtensionModule

Extension of the org.demac.process.base.extension.ExtensionModule, managing the synchronization of data between different users and devices.


Field Summary
 
Fields inherited from class org.demac.process.base.extension.ExtensionModule
STATUS_EXECUTION_DONE, STATUS_MIGRATE_TO_OTHER, STATUS_WAIT_FOR_EVENT
 
Constructor Summary
SynchronizationService()
           
 
Method Summary
abstract  boolean execute(DataSet ds, java.lang.String type)
          Method to execute a Package which needs synchronisation support
 java.lang.String getId()
           
static ExtensionModule getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.demac.Service
isStarted, start, stop
 

Constructor Detail

SynchronizationService

public SynchronizationService()
Method Detail

getInstance

public static ExtensionModule getInstance()
Returns:
the instance of the org.demac.process.base.extension.SynchronizationService .

getId

public java.lang.String getId()
Specified by:
getId in class ExtensionModule
Returns:
the identifier of the org.demac.process.base.extension.ExtensionModule.
See Also:
ExtensionModule.getId()

execute

public abstract boolean execute(DataSet ds,
                                java.lang.String type)
                         throws java.lang.Exception
Method to execute a Package which needs synchronisation support

Specified by:
execute in class ExtensionModule
Parameters:
type - a possible description to specify the handling of the object to execute (if there is more than one possibility to execute it).
ds - the dataset containing the process to be executed.
Returns:
true if the synchronisation was performed successfully.
Throws:
java.lang.Exception