com.funambol.email.engine.source
Class HelperForGetter

java.lang.Object
  extended by com.funambol.email.engine.source.HelperForGetter

public class HelperForGetter
extends java.lang.Object

This class includes the methods to set the New Items List, Updated Items List and Daleted Items List, in according with the filter settings


Constructor Summary
HelperForGetter()
           
 
Method Summary
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

HelperForGetter

public HelperForGetter()
Method Detail

setNewItemKeys

public static java.util.ArrayList setNewItemKeys(java.util.HashMap localItems,
                                                 java.util.HashMap serverItems)
                                          throws EntityException
Creates new items id array

Parameters:
localItems - map with all local SyncItemInfo
serverItems - map with all server SyncItemInfo
Returns:
new items id array ArrayList
Throws:
EntityException

setNewItemKeysWithTimeFilter

public static java.util.ArrayList setNewItemKeysWithTimeFilter(java.util.Date timefilter,
                                                               int comparison,
                                                               java.util.HashMap localItems,
                                                               java.util.HashMap serverItems)
                                                        throws EntityException
Creates new items id array

Parameters:
timefilter - Date
comparison - Ge or LT
localItems - map with all local SyncItemInfo
serverItems - map with all server SyncItemInfo
Returns:
new items id array
Throws:
EntityException

setNewItemKeysWithIdFilter

public static java.util.ArrayList setNewItemKeysWithIdFilter(java.lang.String idfilter,
                                                             java.util.HashMap localItems,
                                                             java.util.HashMap serverItems)
                                                      throws EntityException
Creates new items id array

Parameters:
idfilter - String
localItems - map with all local SyncItemInfo
serverItems - map with all server SyncItemInfo
Returns:
new items id array ArrayList
Throws:
EntityException

setDeletedItemKeys

public static java.util.ArrayList setDeletedItemKeys(java.util.HashMap localItems,
                                                     java.util.HashMap serverItems)
                                              throws EntityException
Creates deleted items id array

Parameters:
localItems - map with all local CrcSyncItemInfo
serverItems - map with all Mail Server CrcSyncItemInfo
Returns:
deleted items id array
Throws:
EntityException

setDeletedItemKeysWithTimeFilter

public static java.util.ArrayList setDeletedItemKeysWithTimeFilter(java.util.Date timefilter,
                                                                   int comparison,
                                                                   java.util.HashMap localItems,
                                                                   java.util.HashMap serverItems)
                                                            throws EntityException
Creates deleted items id array

Parameters:
timefilter - Date
comparison - GE or LT
localItems - map with all local SyncItemInfo
serverItems - map with all Mail Server SyncItemInfo
Returns:
deleted items id array ArrayList
Throws:
EntityException

setDeletedItemKeysWithIdFilter

public static java.util.ArrayList setDeletedItemKeysWithIdFilter(java.lang.String idfilter,
                                                                 java.util.HashMap localItems,
                                                                 java.util.HashMap serverItems)
                                                          throws EntityException
Creates deleted items id array

Parameters:
idfilter - String
localItems - map with all local SyncItemInfo
serverItems - map with all Mail Server SyncItemInfo
Returns:
deleted items id array
Throws:
EntityException

setUpdatedItemKeys

public static java.util.ArrayList setUpdatedItemKeys(java.util.HashMap localItems,
                                                     java.util.HashMap serverItems)
                                              throws EntityException
Creates updated items id array

Parameters:
localItems - map with all local CrcSyncItemInfo
serverItems - map with all Mail Server CrcSyncItemInfo
Returns:
updated items id array
Throws:
EntityException

setUpdatedItemKeysWithTimeFilter

public static java.util.ArrayList setUpdatedItemKeysWithTimeFilter(java.util.Date timefilter,
                                                                   int comparison,
                                                                   java.util.HashMap localItems,
                                                                   java.util.HashMap serverItems)
                                                            throws EntityException
Creates updated items id array

Parameters:
timefilter - Date
comparison - GE or LT
localItems - map with all local SyncItemInfo
serverItems - map with all server SyncItemInfo
Returns:
updated items id array
Throws:
EntityException

setUpdatedItemKeysWithIdFilter

public static java.util.ArrayList setUpdatedItemKeysWithIdFilter(java.lang.String idfilter,
                                                                 java.util.HashMap localItems,
                                                                 java.util.HashMap serverItems)
                                                          throws EntityException
Creates updated items id array

Parameters:
idfilter - String
localItems - map with all local SyncItemInfo
serverItems - map with all server SyncItemInfo
Returns:
updated items id array
Throws:
EntityException

setUpdatedTimeFilter

public static java.util.ArrayList setUpdatedTimeFilter(java.util.Date timefilter,
                                                       int comparison,
                                                       java.util.HashMap serverItems)
                                                throws EntityException
in the updated list there are just the emails related to the time filter

Parameters:
timefilter - Date
comparison - GE or LT
serverItems - map with all mail server SyncItemInfo
Returns:
ArrayList
Throws:
EntityException

setUpdatedIDFilter

public static java.util.ArrayList setUpdatedIDFilter(java.lang.String idfilter,
                                                     java.util.HashMap serverItems)
                                              throws EntityException
in the updated list there is just the id in the filter

Parameters:
idfilter - String
serverItems - map with all the CrcSyncItemInfo
Returns:
ArrayList
Throws:
EntityException


Copyright © 2005-2006 Funambol.