|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncml.client.TrackableSyncSource
com.funambol.syncml.client.ConfigSyncSource
public class ConfigSyncSource
An implementation of TrackableSyncSource, providing the ability to sync Funambol's client configuration
Field Summary |
---|
Fields inherited from class com.funambol.syncml.client.TrackableSyncSource |
---|
allItems, config, delItems, filter, globalStatus, newItems, syncMode, tracker, updItems |
Fields inherited from interface com.funambol.syncml.spds.SyncSource |
---|
ENCODING_B64, ENCODING_NONE, STATUS_CONNECTION_ERROR, STATUS_RECV_ERROR, STATUS_SEND_ERROR, STATUS_SERVER_ERROR, STATUS_SUCCESS |
Constructor Summary | |
---|---|
ConfigSyncSource(SourceConfig config,
ChangesTracker tracker,
StringKeyValueStore store)
ConfigSyncSource constructor |
Method Summary | |
---|---|
int |
addItem(SyncItem item)
The purpose of this implementation is simply to notify the tracker. |
void |
beginSync(int syncMode)
Called after SyncManager preparation and initialization just before start the synchronization of the SyncSource. |
protected void |
deleteAllItems()
Physically delete all items |
int |
deleteItem(java.lang.String key)
The purpose of this implementation is simply to notify the tracker. |
void |
endSync()
Called just before committing the synchronization process by the SyncManager. |
protected java.util.Enumeration |
getAllItemsKeys()
|
protected SyncItem |
getItemContent(SyncItem item)
|
int |
updateItem(SyncItem item)
The purpose of this implementation is simply to notify the tracker. |
Methods inherited from class com.funambol.syncml.client.TrackableSyncSource |
---|
createSyncItem, dataReceived, getClientAddNumber, getClientDeleteNumber, getClientItemsNumber, getClientReplaceNumber, getConfig, getEncoding, getFilter, getLastAnchor, getListener, getName, getNextAnchor, getNextDeletedItem, getNextItem, getNextNewItem, getNextUpdatedItem, getServerItemsNumber, getSourceUri, getStatus, getSyncMode, getTracker, getType, setConfig, setFilter, setItemStatus, setLastAnchor, setListener, setNextAnchor, setServerItemsNumber, setTracker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigSyncSource(SourceConfig config, ChangesTracker tracker, StringKeyValueStore store)
Method Detail |
---|
public void beginSync(int syncMode) throws SyncException
SyncSource
beginSync
in interface SyncSource
beginSync
in class TrackableSyncSource
syncMode
- the synchronization type: one of the values in
sync4j.framework.core.AlertCode
SyncException
- in case of error. This will stop the sync processpublic void endSync() throws SyncException
SyncSource
endSync
in interface SyncSource
endSync
in class TrackableSyncSource
SyncException
- in case of error, to stop the commit.protected java.util.Enumeration getAllItemsKeys() throws SyncException
getAllItemsKeys
in class TrackableSyncSource
SyncException
public int addItem(SyncItem item) throws SyncException
TrackableSyncSource
addItem
in interface SyncSource
addItem
in class TrackableSyncSource
item
- is the item being added
SyncException
- if an unrecoverable error occur, to stop the syncpublic int updateItem(SyncItem item) throws SyncException
TrackableSyncSource
updateItem
in interface SyncSource
updateItem
in class TrackableSyncSource
item
- is the item being updated
SyncException
- if an unrecoverable error occur, to stop the syncpublic int deleteItem(java.lang.String key) throws SyncException
TrackableSyncSource
deleteItem
in interface SyncSource
deleteItem
in class TrackableSyncSource
key
- is the key of the item being deleted
SyncException
- if an unrecoverable error occur, to stop the syncprotected SyncItem getItemContent(SyncItem item) throws SyncException
getItemContent
in class TrackableSyncSource
SyncException
protected void deleteAllItems()
TrackableSyncSource
deleteAllItems
in class TrackableSyncSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |