com.funambol.email.engine.source
Class EmailImap

java.lang.Object
  extended by com.funambol.email.engine.source.EmailGeneric
      extended by com.funambol.email.engine.source.EmailImap
All Implemented Interfaces:
IEmailGeneric

public class EmailImap
extends EmailGeneric
implements IEmailGeneric

This class implements common methods of EmailIMAPSyncSource version $Id: EmailImap.java,v 1.18 2007/03/19 08:51:29 gbmiglia Exp $


Field Summary
protected  EmailSyncSource ess
           
protected  ImapEntityManager iem
           
protected  com.funambol.framework.logging.FunambolLogger log
           
 
Fields inherited from class com.funambol.email.engine.source.EmailGeneric
em
 
Constructor Summary
EmailImap()
           
EmailImap(EmailSyncSourceWrapper _essc)
           
 
Method Summary
 com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 void clearServerInfo()
           
 java.util.HashMap getAllSyncItemInfo()
           
 com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
           
 com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
           
 com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
           
 boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
           
 boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
           
 void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey, java.sql.Timestamp s, boolean engineSoftDelete)
           
 com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 
Methods inherited from class com.funambol.email.engine.source.EmailGeneric
checkMessageIDforDrafts, createSyncItem, createSyncItem, getDeletedSyncItemKeys, getNewSyncItemKeys, getSyncItemStateFromId, getUpdatedSyncItemKeys, insertDefaultFolder, insertInvalidItem, isEmailFromContent, isEmailFromKey, isValidItem, setOperationStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.funambol.email.engine.source.IEmailGeneric
checkMessageIDforDrafts, getDeletedSyncItemKeys, getNewSyncItemKeys, getSyncItemStateFromId, getUpdatedSyncItemKeys, insertDefaultFolder, setOperationStatus
 

Field Detail

log

protected com.funambol.framework.logging.FunambolLogger log

iem

protected ImapEntityManager iem

ess

protected EmailSyncSource ess
Constructor Detail

EmailImap

public EmailImap()

EmailImap

public EmailImap(EmailSyncSourceWrapper _essc)
          throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
_essc -
Throws:
com.funambol.framework.engine.source.SyncSourceException
Method Detail

isSyncItemInFilterClause

public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
                                 throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
isSyncItemInFilterClause in interface IEmailGeneric
Specified by:
isSyncItemInFilterClause in class EmailGeneric
Parameters:
syncItem - SyncItem
Returns:
boolean
Throws:
com.funambol.framework.engine.source.SyncSourceException

isSyncItemInFilterClause

public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
                                 throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
isSyncItemInFilterClause in interface IEmailGeneric
Specified by:
isSyncItemInFilterClause in class EmailGeneric
Parameters:
syncItemKey - SyncItemKey
Returns:
boolean
Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItem

public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
                           java.sql.Timestamp s,
                           boolean engineSoftDelete)
                    throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
removeSyncItem in interface IEmailGeneric
Specified by:
removeSyncItem in class EmailGeneric
Parameters:
syncItemKey - SyncItemKey
s - Timestamp
engineSoftDelete - boolean
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 IEmailGeneric
Specified by:
getSyncItemFromId in class EmailGeneric
Parameters:
syncItemKey - SyncItemKey
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException
See Also:
SyncSource

getAllSyncItemKeys

public com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
                                                               throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getAllSyncItemKeys in interface IEmailGeneric
Specified by:
getAllSyncItemKeys in class EmailGeneric
Returns:
SyncItemKey[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getAllSyncItemInfo

public java.util.HashMap getAllSyncItemInfo()
                                     throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getAllSyncItemInfo in interface IEmailGeneric
Specified by:
getAllSyncItemInfo in class EmailGeneric
Returns:
map with all Mail Server CrcSyncItemInfo
Throws:
com.funambol.framework.engine.source.SyncSourceException

clearServerInfo

public void clearServerInfo()
                     throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
clearServerInfo in class EmailGeneric
Throws:
com.funambol.framework.engine.source.SyncSourceException

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 IEmailGeneric
Specified by:
getSyncItemKeysFromTwin in class EmailGeneric
Parameters:
syncItem - SyncItem
Returns:
SyncItemKey[]
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 IEmailGeneric
Specified by:
addSyncItem in class EmailGeneric
Parameters:
syncItem - SyncItem
Returns:
SyncItem
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 IEmailGeneric
Specified by:
updateSyncItem in class EmailGeneric
Parameters:
syncItem - SyncItem
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException


Copyright © 2005-2006 Funambol.