com.funambol.exchange.engine.source
Class ExchangeSyncSource

java.lang.Object
  extended bycom.funambol.framework.engine.source.AbstractSyncSource
      extended bycom.funambol.exchange.engine.cache.ExchangeCachedSyncSource
          extended bycom.funambol.exchange.engine.source.ExchangeSyncSource
All Implemented Interfaces:
java.io.Serializable, com.funambol.framework.engine.source.SyncSource
Direct Known Subclasses:
ExchangeCalendarSyncSource, ExchangeContactSyncSource, ExchangeNoteSyncSource, ExchangeTaskSyncSource

public abstract class ExchangeSyncSource
extends ExchangeCachedSyncSource
implements java.io.Serializable

This class implements common methods of
ExchangeCalendarSyncSource, ExchangeContactSyncSource, ExchangeNoteSyncSource, and ExchangeTaskSyncSource.

See Also:
Serialized Form

Field Summary
protected  int conflictResolution
           
protected  java.lang.String deviceCharset
           
protected  java.util.TimeZone deviceTimeZone
           
protected  java.lang.String deviceTimeZoneDescr
           
protected static java.lang.String ITEM_ADD
           
protected static java.lang.String ITEM_ADD_ERROR
           
protected static java.lang.String ITEM_REMOVE
           
protected static java.lang.String ITEM_REMOVE_ERROR
           
protected static java.lang.String ITEM_UPDATE
           
protected static java.lang.String ITEM_UPDATE_ERROR
           
protected static java.lang.String TYPE_ICAL
           
protected static java.lang.String TYPE_SIFC
           
protected static java.lang.String TYPE_SIFE
           
protected static java.lang.String TYPE_SIFN
           
protected static java.lang.String TYPE_SIFT
           
protected static java.lang.String 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
ExchangeSyncSource()
           
 
Method Summary
 void beginSync(com.funambol.framework.engine.source.SyncContext context)
          Method by the server at the begining of the sync process.
 java.lang.String getSchedule()
          Getter for property schedule.
 boolean isSchedulEnablede()
          Getter for property scheduleEnabled.
 void setOperationStatus(java.lang.String operation, int statusCode, com.funambol.framework.engine.SyncItemKey[] keys)
           
 void setSchedule(java.lang.String schedule)
          Setter for property schedule.
 void setScheduleEnabled(boolean scheduleEnabled)
          Setter for property schedule.
 
Methods inherited from class com.funambol.exchange.engine.cache.ExchangeCachedSyncSource
addInExchangeItemsKeys, addToCacheSyncItems, deleteAll, endSync, getAllSyncItemKeys, getCachedSyncItems, getCacheSyncItemsKeys, getDeletedSyncItemKeys, getExchangeFolder, getExchangeItems, getHref, getNewSyncItemKeys, getSyncItemById, getSyncItemKeysArrayListFromItems, getSyncItemKeysFromItems, getSyncItems, getSyncItemStateFromId, getSyncItemStatus, getUpdatedSyncItemKeys, initManager, removeInExchangeItemsKeys, setExchangeFolder, toSyncErrorNewItems, toSyncErrorRemoveItems, toSyncErrorUpdateItems, toSyncNewItems, toSyncRemoveItems, toSyncUpdateItems
 
Methods inherited from class com.funambol.framework.engine.source.AbstractSyncSource
addSyncItem, commitSync, getInfo, getName, getSourceQuery, getSourceURI, getSyncItemFromId, getSyncItemKeysFromTwin, getType, removeSyncItem, setInfo, setName, setSourceURI, setType, toString, updateSyncItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ITEM_ADD

protected static final java.lang.String ITEM_ADD
See Also:
Constant Field Values

ITEM_REMOVE

protected static final java.lang.String ITEM_REMOVE
See Also:
Constant Field Values

ITEM_UPDATE

protected static final java.lang.String ITEM_UPDATE
See Also:
Constant Field Values

ITEM_ADD_ERROR

protected static final java.lang.String ITEM_ADD_ERROR
See Also:
Constant Field Values

ITEM_REMOVE_ERROR

protected static final java.lang.String ITEM_REMOVE_ERROR
See Also:
Constant Field Values

ITEM_UPDATE_ERROR

protected static final java.lang.String ITEM_UPDATE_ERROR
See Also:
Constant Field Values

TYPE_VCARD

protected static final java.lang.String TYPE_VCARD
See Also:
Constant Field Values

TYPE_ICAL

protected static final java.lang.String TYPE_ICAL
See Also:
Constant Field Values

TYPE_SIFC

protected static final java.lang.String TYPE_SIFC
See Also:
Constant Field Values

TYPE_SIFE

protected static final java.lang.String TYPE_SIFE
See Also:
Constant Field Values

TYPE_SIFN

protected static final java.lang.String TYPE_SIFN
See Also:
Constant Field Values

TYPE_SIFT

protected static final java.lang.String TYPE_SIFT
See Also:
Constant Field Values

deviceTimeZoneDescr

protected java.lang.String deviceTimeZoneDescr

deviceTimeZone

protected java.util.TimeZone deviceTimeZone

deviceCharset

protected java.lang.String deviceCharset

conflictResolution

protected int conflictResolution
Constructor Detail

ExchangeSyncSource

public ExchangeSyncSource()
Method Detail

getSchedule

public java.lang.String getSchedule()
Getter for property schedule.

Returns:
Value of property schedule.

setSchedule

public void setSchedule(java.lang.String schedule)
Setter for property schedule.

Parameters:
schedule - New value of property schedule.

isSchedulEnablede

public boolean isSchedulEnablede()
Getter for property scheduleEnabled.

Returns:
Value of property scheduleEnabled.

setScheduleEnabled

public void setScheduleEnabled(boolean scheduleEnabled)
Setter for property schedule.

Parameters:
scheduleEnabled - New value of property schedule.

beginSync

public void beginSync(com.funambol.framework.engine.source.SyncContext context)
               throws com.funambol.framework.engine.source.SyncSourceException
Description copied from class: ExchangeCachedSyncSource

Method by the server at the begining of the sync process.

Specified by:
beginSync in interface com.funambol.framework.engine.source.SyncSource
Overrides:
beginSync in class ExchangeCachedSyncSource
Parameters:
context - the context of the sync
Throws:
com.funambol.framework.engine.source.SyncSourceException - if an error occurs
See Also:
SyncSource

setOperationStatus

public void setOperationStatus(java.lang.String operation,
                               int statusCode,
                               com.funambol.framework.engine.SyncItemKey[] keys)
Specified by:
setOperationStatus in interface com.funambol.framework.engine.source.SyncSource


Copyright © 2003-2006 Funambol.