Base manager to access all atomic Object.
Definition at line 40 of file SynchroAtomicObjectManager.java.
Public Member Functions | |
SynchroAtomicObjectDelegate | getDelegate () |
void | purgeAtomicObjcet (String serviceName, long deletedTime) throws SynchroException |
delete all atomic object of the specified service that are older than the specified time | |
SynchroAtomicObject[] | getAllModifiedAtomicObjectForServiceSince (String serviceName, long date, 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. | |
synchronized void | updateAtomicObject (SynchroAtomicObject object, String serviceName, String userLink) throws SynchroException |
Update the modification information (sync number) if the specified SynchroAtomicObject. | |
void | registerDelegateManager (SynchroAtomicObjectDelegate d) |
SynchroAtomicObject | getAtomicObject (String uid, String serviceName) throws SynchroException |
return the AtomicObject with specified uid. | |
Static Public Member Functions | |
static SynchroAtomicObjectManager | getManager () |
void org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectManager.purgeAtomicObjcet | ( | String | serviceName, | |
long | deletedTime | |||
) | throws SynchroException |
delete all atomic object of the specified service that are older than the specified time
service | id | |
deletedTime | : time defining the date where DELETE Atomic Object Time Stamp that are before it are removed. |
Definition at line 67 of file SynchroAtomicObjectManager.java.
References org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectDelegate.purgeAtomicObjcet().
SynchroAtomicObject [] org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectManager.getAllModifiedAtomicObjectForServiceSince | ( | String | serviceName, | |
long | date, | |||
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
Definition at line 75 of file SynchroAtomicObjectManager.java.
synchronized void org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectManager.updateAtomicObject | ( | SynchroAtomicObject | object, | |
String | serviceName, | |||
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.
Definition at line 86 of file SynchroAtomicObjectManager.java.
References org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectDelegate.createAtomicObject(), org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectDelegate.getAtomicObject(), and org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectDelegate.updateAtomicObject().
SynchroAtomicObject org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectManager.getAtomicObject | ( | String | uid, | |
String | serviceName | |||
) | throws SynchroException |
return the AtomicObject with specified uid.
return null if not found
Definition at line 101 of file SynchroAtomicObjectManager.java.
References org.openmobileis.synchro.algo.replication.utils.SynchroAtomicObjectDelegate.getAtomicObject().