|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.synchronization.SyncManager
Handles all synchronization and backup/restore activity for the system.
| Constructor Summary | ||
|
protected |
SyncManager()
|
| Method Summary | ||
|
abstract void |
addSyncEventListener(SyncEventListener listener)
Adds a SyncEventListener interested in events from the
synchronization manager. |
|
abstract void |
allowOTASync(SyncCollection collection,
boolean allow)
Allow or disallow OTA synchronization for an already registered SyncCollection. |
|
abstract void |
disableSynchronization(SyncCollection collection)
Disable synchronization for the given SyncCollection. |
|
abstract void |
enableOTASync(boolean enable)
Enables or disables OTA synchronization for all registered collections. |
|
abstract void |
enableSynchronization(SyncCollection collection)
Enable synchronization for the given SyncCollection. |
|
abstract void |
enableSynchronization(SyncCollection collection,
boolean allowOTASync)
Enable synchronization for the given SyncCollection. |
|
abstract void |
enableSynchronization(SyncCollection collection,
boolean allowOTASync,
int itPolicyTagForDisablingOTASync)
Enable synchronization for the given SyncCollection. |
|
static SyncManager |
getInstance()
Get the system-wide SyncManager instance. |
|
abstract String |
getLocalizedCollectionName(long sid,
String name,
Locale locale)
Return the localized name for the specified collection name |
|
abstract boolean |
isCollectionResetSupported()
Determine if collection reset events are handled by the sync agent. |
|
abstract boolean |
isOTASyncAvailable(SyncCollection collection,
boolean checkAllow)
Determine if OTA sync is available for a SyncCollection based on all the applicable criteria including IT policy, whether or not OTA sync has been disallowed, and server configuration. |
|
abstract boolean |
isSerialSyncInProgress()
Return whether or not a serial sync or backup/restore is in progress. |
|
abstract boolean |
isSyncCompleted(SyncCollection collection)
Return true if the Sync is completed for the Sync Collection provided |
|
abstract void |
removeSyncEventListener(SyncEventListener listener)
Removes a SyncEventListener interested in events from the
synchronization manager. |
|
abstract void |
syncImmediately(SyncCollection collection)
Flush pending information. |
|
abstract void |
triggerSlowSync(SyncCollection collection)
Trigger Slow Sync on a collection. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SyncManager()
| Method Detail |
public abstract void addSyncEventListener(SyncEventListener listener)
SyncEventListener interested in events from the
synchronization manager.
listener - The SyncEventListener to add.public abstract void allowOTASync(SyncCollection collection, boolean allow)
collection - The SyncCollection to enable synchronization for.allow - true to allow OTA synchronization; false to disallow it.public abstract void disableSynchronization(SyncCollection collection)
collection - The SyncCollection to disable synchronization for.public abstract void enableOTASync(boolean enable)
enable - true to enable OTA synchronization; false to disable it.public abstract void enableSynchronization(SyncCollection collection)
collection - The SyncCollection to enable synchronization for.public abstract void enableSynchronization(SyncCollection collection, boolean allowOTASync)
collection - The SyncCollection to enable synchronization for.allowOTASync - true to allow OTA synchronization; false to disallow it.
This parameter is ignored if the collection is not OTASyncCapable.public abstract void enableSynchronization(SyncCollection collection, boolean allowOTASync, int itPolicyTagForDisablingOTASync)
collection - The SyncCollection to enable synchronization for.allowOTASync - true to allow OTA synchronization; false to disallow it.
This parameter is ignored if the collection is not OTASyncCapable.itPolicyTagForDisablingOTASync - The tag for IT policy that controls
whether or not wireless sync is disabled.public static SyncManager getInstance()
public abstract String getLocalizedCollectionName(long sid, String name, Locale locale)
sid - the identifier of the servicename - the original namelocale - the localepublic abstract boolean isCollectionResetSupported()
public abstract boolean isOTASyncAvailable(SyncCollection collection, boolean checkAllow)
collection - The collection to check wireless sync availability for.checkAllow - true to include whether or not OTA sync has been
allowed/disallowed in the check; false to exclude it.public abstract boolean isSerialSyncInProgress()
public abstract boolean isSyncCompleted(SyncCollection collection)
collection - The SyncCollection to check.public abstract void removeSyncEventListener(SyncEventListener listener)
SyncEventListener interested in events from the
synchronization manager.
listener - The SyncEventListener to remove.public abstract void syncImmediately(SyncCollection collection)
collection - The SyncCollection to sync.public abstract void triggerSlowSync(SyncCollection collection)
collection - The Sync Collection to start slow sync on it.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.