com.funambol.exchange.engine.source
Class ExchangeContactSyncSource
java.lang.Object
com.funambol.framework.engine.source.AbstractSyncSource
com.funambol.exchange.engine.cache.ExchangeCachedSyncSource
com.funambol.exchange.engine.source.ExchangeSyncSource
com.funambol.exchange.engine.source.ExchangeContactSyncSource
- All Implemented Interfaces:
- com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable, com.funambol.framework.engine.source.SyncSource
- public class ExchangeContactSyncSource
- extends ExchangeSyncSource
- implements com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable
This class define SyncSource
between SyncServer and Exchange Server contacts items
- See Also:
- Serialized Form
Fields inherited from class com.funambol.exchange.engine.source.ExchangeSyncSource |
conflictResolution, deviceCharset, deviceTimeZone, deviceTimeZoneDescr, ITEM_ADD, ITEM_ADD_ERROR, ITEM_REMOVE, ITEM_REMOVE_ERROR, ITEM_UPDATE, ITEM_UPDATE_ERROR, TYPE_ICAL, TYPE_SIFC, TYPE_SIFE, TYPE_SIFN, TYPE_SIFT, TYPE_VCARD |
Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type |
Method Summary |
com.funambol.framework.engine.SyncItem |
addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
|
void |
deleteAll()
Delete all contacts from the Exchange server. |
Item[] |
getExchangeItems(java.lang.String username,
java.lang.String credentials,
java.lang.String exchangeFolder,
java.lang.String[] ids,
boolean isBeginSync)
|
com.funambol.framework.engine.SyncItem |
getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
|
com.funambol.framework.engine.SyncItemKey[] |
getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
The same as getSyncItemKeysFromTwin() |
com.funambol.framework.engine.SyncItem[] |
getSyncItems(java.lang.String username,
java.lang.String credentials,
java.lang.String[] ids,
java.lang.String exchangeFolder)
|
void |
initManager()
init manager |
boolean |
mergeSyncItems(com.funambol.framework.engine.SyncItemKey serverKey,
com.funambol.framework.engine.SyncItem clientItem)
Merges server item and client item. |
void |
removeSyncItem(com.funambol.framework.engine.SyncItemKey itemKey,
java.sql.Timestamp time,
boolean softDelete)
|
com.funambol.framework.engine.SyncItem |
updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
|
Methods inherited from class com.funambol.exchange.engine.cache.ExchangeCachedSyncSource |
addInExchangeItemsKeys, addToCacheSyncItems, endSync, getAllSyncItemKeys, getCachedSyncItems, getCacheSyncItemsKeys, getDeletedSyncItemKeys, getExchangeFolder, getHref, getNewSyncItemKeys, getSyncItemById, getSyncItemKeysArrayListFromItems, getSyncItemKeysFromItems, getSyncItemStateFromId, getSyncItemStatus, getUpdatedSyncItemKeys, removeInExchangeItemsKeys, setExchangeFolder, toSyncErrorNewItems, toSyncErrorRemoveItems, toSyncErrorUpdateItems, toSyncNewItems, toSyncRemoveItems, toSyncUpdateItems |
Methods inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
commitSync, getInfo, getName, getSourceQuery, getSourceURI, getType, setInfo, setName, setSourceURI, setType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.funambol.framework.engine.source.SyncSource |
beginSync, commitSync, endSync, getAllSyncItemKeys, getDeletedSyncItemKeys, getInfo, getName, getNewSyncItemKeys, getSourceURI, getType, getUpdatedSyncItemKeys, setOperationStatus |
ExchangeContactSyncSource
public ExchangeContactSyncSource()
initManager
public void initManager()
throws com.funambol.framework.engine.source.SyncSourceException
- init manager
- Specified by:
initManager
in class ExchangeCachedSyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
addSyncItem
public com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
addSyncItem
in interface com.funambol.framework.engine.source.SyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
updateSyncItem
public com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
updateSyncItem
in interface com.funambol.framework.engine.source.SyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
getSyncItemFromId
public com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getSyncItemFromId
in interface com.funambol.framework.engine.source.SyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
removeSyncItem
public void removeSyncItem(com.funambol.framework.engine.SyncItemKey itemKey,
java.sql.Timestamp time,
boolean softDelete)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
removeSyncItem
in interface com.funambol.framework.engine.source.SyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
getSyncItemKeysFromTwin
public com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
- The same as getSyncItemKeysFromTwin()
- Specified by:
getSyncItemKeysFromTwin
in interface com.funambol.framework.engine.source.SyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
mergeSyncItems
public boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey serverKey,
com.funambol.framework.engine.SyncItem clientItem)
throws com.funambol.framework.engine.source.SyncSourceException
- Merges server item and client item.
- Specified by:
mergeSyncItems
in interface com.funambol.framework.engine.source.MergeableSyncSource
- Parameters:
serverKey
- the item's key on the serverclientItem
- the item on the client
- Returns:
- true is the content of the client item is changed
- Throws:
com.funambol.framework.engine.source.SyncSourceException
getExchangeItems
public Item[] getExchangeItems(java.lang.String username,
java.lang.String credentials,
java.lang.String exchangeFolder,
java.lang.String[] ids,
boolean isBeginSync)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getExchangeItems
in class ExchangeCachedSyncSource
- Parameters:
username
- credentials
- exchangeFolder
- ids
- isBeginSync
-
- Returns:
- items array
- Throws:
com.funambol.framework.engine.source.SyncSourceException
getSyncItems
public com.funambol.framework.engine.SyncItem[] getSyncItems(java.lang.String username,
java.lang.String credentials,
java.lang.String[] ids,
java.lang.String exchangeFolder)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getSyncItems
in class ExchangeCachedSyncSource
- Parameters:
username
- credentials
- ids
- exchangeFolder
-
- Returns:
- SyncItem array
- Throws:
com.funambol.framework.engine.source.SyncSourceException
deleteAll
public void deleteAll()
throws com.funambol.framework.engine.source.SyncSourceException
Delete all contacts from the Exchange server.
- Specified by:
deleteAll
in class ExchangeCachedSyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
ExchangeSyncSource
Copyright © 2003-2006 Funambol.