com.funambol.domino.engine.source
Class DominoContactSyncSource

java.lang.Object
  extended bycom.funambol.framework.engine.source.AbstractSyncSource
      extended bycom.funambol.domino.engine.cache.CachedSyncSource
          extended bycom.funambol.domino.engine.source.DominoSyncSource
              extended bycom.funambol.domino.engine.source.DominoContactSyncSource
All Implemented Interfaces:
com.funambol.framework.tools.beans.LazyInitBean, com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable, com.funambol.framework.engine.source.SyncSource

public final class DominoContactSyncSource
extends DominoSyncSource
implements com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable, com.funambol.framework.tools.beans.LazyInitBean

This class define SyncSource between SyncServer and Domino Server contacts items

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.funambol.domino.engine.source.DominoSyncSource
conflictResolution, device, deviceCharset, deviceTimeZone, deviceTimeZoneDescr, log, TYPE_ICAL, TYPE_VCARD, viewname
 
Fields inherited from class com.funambol.domino.engine.cache.CachedSyncSource
principal, PRODUCT_NAME, syncMode
 
Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type
 
Constructor Summary
DominoContactSyncSource()
           
 
Method Summary
 com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItemExt)
           
 SyncItemInfo[] getAllSyncItemInfo()
           
 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[] getSyncItemsFromIds(java.security.Principal principal, com.funambol.framework.engine.SyncItemKey[] syncItemsKeys)
           
 void init()
          Init the syncSource
 boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey serverKey, com.funambol.framework.engine.SyncItem clientItem)
          Merges server item and client item.
protected  void removeAllItems()
          Removes all Items
 void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey, java.sql.Timestamp timestamp, boolean softDelete)
           
 com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItemExt)
           
 
Methods inherited from class com.funambol.domino.engine.source.DominoSyncSource
beginSync, endSync, getConflictResolution, getDominoWrapper, getHost, getItemFormat, getPort, getViewName, setHost, setPort, setViewName
 
Methods inherited from class com.funambol.domino.engine.cache.CachedSyncSource
getAllSyncItemKeys, getDeletedSyncItemKeys, getJndiDataSourceName, getNewSyncItemKeys, getUpdatedSyncItemKeys, setJndiDataSourceName, setOperationStatus
 
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

DominoContactSyncSource

public DominoContactSyncSource()
Method Detail

init

public void init()
          throws com.funambol.framework.tools.beans.BeanInitializationException
Init the syncSource

Specified by:
init in interface com.funambol.framework.tools.beans.LazyInitBean
Overrides:
init in class CachedSyncSource
Throws:
com.funambol.framework.tools.beans.BeanInitializationException

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

updateSyncItem

public com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItemExt)
                                                      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

addSyncItem

public com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItemExt)
                                                   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

removeSyncItem

public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
                           java.sql.Timestamp timestamp,
                           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

getSyncItemsFromIds

public com.funambol.framework.engine.SyncItem[] getSyncItemsFromIds(java.security.Principal principal,
                                                                    com.funambol.framework.engine.SyncItemKey[] syncItemsKeys)
                                                             throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
principal - Principal
syncItemsKeys - SyncItemKey[]
Returns:
SyncItem[]
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
Parameters:
syncItemKey - SyncItemKey
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException
See Also:
SyncSource

getAllSyncItemInfo

public SyncItemInfo[] getAllSyncItemInfo()
                                  throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getAllSyncItemInfo in class CachedSyncSource
Returns:
SyncItemInfo[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

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

removeAllItems

protected void removeAllItems()
                       throws com.funambol.framework.engine.source.SyncSourceException
Removes all Items

Specified by:
removeAllItems in class CachedSyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException


Copyright © 2003-2006 Funambol.