org.openmobileis.synchro.algo.replication.utils
Class SynchroAtomicObjectManager

java.lang.Object
  extended byorg.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectManager

public class SynchroAtomicObjectManager
extends java.lang.Object

Title: OpenMobileIS project source
Description: Manage Atomic Object. Base manager to access all atomic Object.

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

Method Summary
 SynchroAtomicObject[] getAllModifiedAtomicObjectForServiceSince(java.lang.String serviceName, long date, java.lang.String userLink)
          return all atomic object uid modified since specified date for service the user link is use to get AO associated to a user.
 SynchroAtomicObject getAtomicObject(java.lang.String uid, java.lang.String serviceName)
          return the AtomicObject with specified uid. return null if not found
 SynchroAtomicObjectDelegate getDelegate()
           
static SynchroAtomicObjectManager getManager()
           
 void purgeAtomicObjcet(java.lang.String serviceName, long deletedTime)
          delete all atomic object of the specified service that are older than the specified time
 void registerDelegateManager(SynchroAtomicObjectDelegate d)
           
 void updateAtomicObject(SynchroAtomicObject object, java.lang.String serviceName, java.lang.String userLink)
          Update the modification information (sync number) if the specified SynchroAtomicObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getManager

public static SynchroAtomicObjectManager getManager()

getDelegate

public SynchroAtomicObjectDelegate getDelegate()

purgeAtomicObjcet

public void purgeAtomicObjcet(java.lang.String serviceName,
                              long deletedTime)
                       throws SynchroException
delete all atomic object of the specified service that are older than the specified time

Parameters:
deletedTime - : time defining the date where DELETE Atomic Object Time Stamp that are before it are removed.
Throws:
SynchroException

getAllModifiedAtomicObjectForServiceSince

public SynchroAtomicObject[] getAllModifiedAtomicObjectForServiceSince(java.lang.String serviceName,
                                                                       long date,
                                                                       java.lang.String userLink)
                                                                throws SynchroException
return all atomic object uid modified since specified date for service the user link is use to get AO associated to a user. NULL if none

Throws:
SynchroException

updateAtomicObject

public void updateAtomicObject(SynchroAtomicObject object,
                               java.lang.String serviceName,
                               java.lang.String userLink)
                        throws SynchroException
Update the modification information (sync number) if the specified SynchroAtomicObject. The sync number update policy is defined by the SynchroAtomicObjectManager delegate. the user link is use to get Atomic object associated to a user. NULL if none It is use to get all mofication ofr a service and an user.

Throws:
SynchroException

registerDelegateManager

public void registerDelegateManager(SynchroAtomicObjectDelegate d)

getAtomicObject

public SynchroAtomicObject getAtomicObject(java.lang.String uid,
                                           java.lang.String serviceName)
                                    throws SynchroException
return the AtomicObject with specified uid. return null if not found

Throws:
SynchroException


Copyright 2006 OpenMobileIS. All Rights Reserved.