com.funambol.domino.engine.source
Class DominoTaskSyncSource
java.lang.Object
com.funambol.framework.engine.source.AbstractSyncSource
com.funambol.domino.engine.cache.CachedSyncSource
com.funambol.domino.engine.source.DominoSyncSource
com.funambol.domino.engine.source.DominoTaskSyncSource
- 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 DominoTaskSyncSource
- 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 task items
- See Also:
- Serialized Form
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)
|
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)
|
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)
|
protected java.lang.String |
task2ical(ItemTask task)
Get Data from ItemTask
converting the Task object into a i-cal item |
com.funambol.framework.engine.SyncItem |
updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
|
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.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 |
DominoTaskSyncSource
public DominoTaskSyncSource()
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 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
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
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
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
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
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
task2ical
protected java.lang.String task2ical(ItemTask task)
throws EntityException
- Get Data from ItemTask
converting the Task object into a i-cal item
- Parameters:
task
- ItemTask
- Returns:
- String
- Throws:
EntityException
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
Copyright © 2003-2006 Funambol.