|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.email.engine.cache.CrcCachedSyncSourceHelper
This class includes the common methods for the OpenSource CrcCachedSyncSource and the Enterprise CrcCachedSyncSource.
Constructor Summary | |
CrcCachedSyncSourceHelper()
|
Method Summary | |
static char |
getSyncItemStateFromId(java.lang.String key,
int syncMode,
java.util.ArrayList newItemKeys,
java.util.ArrayList deletedItemKeys,
java.util.ArrayList updatedItemKeys)
|
static java.util.ArrayList |
setDeletedItemKeys(java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates deleted items id array |
static java.util.ArrayList |
setDeletedItemKeysWithIdFilter(java.lang.String idfilter,
java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates deleted items id array |
static java.util.ArrayList |
setDeletedItemKeysWithTimeFilter(java.util.Date timefilter,
int comparison,
java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates deleted items id array |
static java.util.ArrayList |
setNewItemKeys(java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates new items id array |
static java.util.ArrayList |
setNewItemKeysWithIdFilter(java.lang.String idfilter,
java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates new items id array |
static java.util.ArrayList |
setNewItemKeysWithTimeFilter(java.util.Date timefilter,
int comparison,
java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates new items id array |
static java.util.ArrayList |
setUpdatedIDFilter(java.lang.String idfilter,
java.util.HashMap serverItems)
in the updated list there is just the id in the filter |
static java.util.ArrayList |
setUpdatedItemKeys(java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates updated items id array |
static java.util.ArrayList |
setUpdatedItemKeysWithIdFilter(java.lang.String idfilter,
java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates updated items id array |
static java.util.ArrayList |
setUpdatedItemKeysWithTimeFilter(java.util.Date timefilter,
int comparison,
java.util.HashMap localItems,
java.util.HashMap serverItems)
Creates updated items id array |
static java.util.ArrayList |
setUpdatedTimeFilter(java.util.Date timefilter,
int comparison,
java.util.HashMap serverItems)
in the updated list there are just the emails related to the time filter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CrcCachedSyncSourceHelper()
Method Detail |
public static char getSyncItemStateFromId(java.lang.String key, int syncMode, java.util.ArrayList newItemKeys, java.util.ArrayList deletedItemKeys, java.util.ArrayList updatedItemKeys) throws com.funambol.framework.engine.source.SyncSourceException
com.funambol.framework.engine.source.SyncSourceException
public static java.util.ArrayList setNewItemKeys(java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
EntityException
public static java.util.ArrayList setNewItemKeysWithTimeFilter(java.util.Date timefilter, int comparison, java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
EntityException
public static java.util.ArrayList setNewItemKeysWithIdFilter(java.lang.String idfilter, java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
EntityException
public static java.util.ArrayList setDeletedItemKeys(java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
localItems
- map with all local CrcSyncItemInfoserverItems
- map with all Mail Server CrcSyncItemInfo
EntityException
public static java.util.ArrayList setDeletedItemKeysWithTimeFilter(java.util.Date timefilter, int comparison, java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
comparison
- GE or LTlocalItems
- map with all local CrcSyncItemInfoserverItems
- map with all Mail Server CrcSyncItemInfo
EntityException
public static java.util.ArrayList setDeletedItemKeysWithIdFilter(java.lang.String idfilter, java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
localItems
- map with all local CrcSyncItemInfoserverItems
- map with all Mail Server CrcSyncItemInfo
EntityException
public static java.util.ArrayList setUpdatedItemKeys(java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
localItems
- map with all local CrcSyncItemInfoserverItems
- map with all Mail Server CrcSyncItemInfo
EntityException
public static java.util.ArrayList setUpdatedItemKeysWithTimeFilter(java.util.Date timefilter, int comparison, java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
comparison
- GE or LT
EntityException
public static java.util.ArrayList setUpdatedItemKeysWithIdFilter(java.lang.String idfilter, java.util.HashMap localItems, java.util.HashMap serverItems) throws EntityException
EntityException
public static java.util.ArrayList setUpdatedTimeFilter(java.util.Date timefilter, int comparison, java.util.HashMap serverItems) throws EntityException
timefilter
- Datecomparison
- GE or LT
EntityException
public static java.util.ArrayList setUpdatedIDFilter(java.lang.String idfilter, java.util.HashMap serverItems) throws EntityException
serverItems
- map with all the CrcSyncItemInfo
EntityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |