com.funambol.email.engine.cache
Class CrcCachedSyncSourceHelper

java.lang.Object
  extended bycom.funambol.email.engine.cache.CrcCachedSyncSourceHelper

public class CrcCachedSyncSourceHelper
extends java.lang.Object

This class includes the common methods for the OpenSource CrcCachedSyncSource and the Enterprise CrcCachedSyncSource.


Constructor Summary
CrcCachedSyncSourceHelper()
           
 
Method Summary
static char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey syncItemKey, int syncMode, java.util.ArrayList newItemKeys, java.util.ArrayList deletedItemKeys, java.util.ArrayList updatedItemKeys)
           
static boolean isItemInArray(CrcSyncItemInfo[] items, CrcSyncItemInfo item)
          Checks if item is included in array of items
static java.util.ArrayList setDeletedItemKeys(CrcSyncItemInfo[] localItems, CrcSyncItemInfo[] serverItems)
          Creates deleted items id array
static java.util.ArrayList setNewItemKeys(CrcSyncItemInfo[] localItems, CrcSyncItemInfo[] serverItems)
          Creates new items id array
static java.util.ArrayList setUpdatedItemKeys(CrcSyncItemInfo[] localItems, CrcSyncItemInfo[] serverItems)
          Creates updated items id array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrcCachedSyncSourceHelper

public CrcCachedSyncSourceHelper()
Method Detail

getSyncItemStateFromId

public static char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey syncItemKey,
                                          int syncMode,
                                          java.util.ArrayList newItemKeys,
                                          java.util.ArrayList deletedItemKeys,
                                          java.util.ArrayList updatedItemKeys)
                                   throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItemKey - SyncItemKey
Returns:
char
Throws:
com.funambol.framework.engine.source.SyncSourceException

setNewItemKeys

public static java.util.ArrayList setNewItemKeys(CrcSyncItemInfo[] localItems,
                                                 CrcSyncItemInfo[] serverItems)
Creates new items id array

Returns:
new items id array

setDeletedItemKeys

public static java.util.ArrayList setDeletedItemKeys(CrcSyncItemInfo[] localItems,
                                                     CrcSyncItemInfo[] serverItems)
Creates deleted items id array

Returns:
deleted items id array

setUpdatedItemKeys

public static java.util.ArrayList setUpdatedItemKeys(CrcSyncItemInfo[] localItems,
                                                     CrcSyncItemInfo[] serverItems)
Creates updated items id array

Returns:
updated items id array

isItemInArray

public static boolean isItemInArray(CrcSyncItemInfo[] items,
                                    CrcSyncItemInfo item)
Checks if item is included in array of items

Parameters:
items - items array
item - item to find
Returns:

true

if the item is included

false

if the item is not included


Copyright © 2003-2006 Funambol.