com.funambol.exchange.engine.source
Class ExchangeCalendarSyncSource

java.lang.Object
  extended bycom.funambol.framework.engine.source.AbstractSyncSource
      extended bycom.funambol.exchange.engine.cache.ExchangeCachedSyncSource
          extended bycom.funambol.exchange.engine.source.ExchangeSyncSource
              extended bycom.funambol.exchange.engine.source.ExchangeCalendarSyncSource
All Implemented Interfaces:
com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable, com.funambol.framework.engine.source.SyncSource

public class ExchangeCalendarSyncSource
extends ExchangeSyncSource
implements com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable

This class define SyncSource between SyncServer and Exchange Server calendar items

See Also:
Serialized Form

Field Summary
 
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.exchange.engine.cache.ExchangeCachedSyncSource
credentials, exchangeFolder, exchangeHost, host, log, port, principalId, syncMode, username
 
Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type
 
Constructor Summary
ExchangeCalendarSyncSource()
           
 
Method Summary
 com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 void deleteAll()
          Delete all calendars 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)
           
 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.source.ExchangeSyncSource
beginSync, getSchedule, isSchedulEnablede, setOperationStatus, setSchedule, setScheduleEnabled
 
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
 

Constructor Detail

ExchangeCalendarSyncSource

public ExchangeCalendarSyncSource()
Method Detail

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
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 server
clientItem - 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:
items array
Throws:
com.funambol.framework.engine.source.SyncSourceException

deleteAll

public void deleteAll()
               throws com.funambol.framework.engine.source.SyncSourceException
Delete all calendars from the Exchange server

Specified by:
deleteAll in class ExchangeCachedSyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException
See Also:
ExchangeSyncSource


Copyright © 2003-2006 Funambol.