com.funambol.email.engine.source
Interface IEmailGeneric

All Known Implementing Classes:
EmailGeneric, EmailImap, EmailPop

public interface IEmailGeneric

Interface for Email SyncSource Wrapper


Method Summary
 com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 void checkMessageIDforDrafts(java.lang.String sURI, long pID)
           
 java.util.HashMap getAllSyncItemInfo()
           
 com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
           
 com.funambol.framework.engine.SyncItemKey[] getDeletedSyncItemKeys(java.sql.Timestamp since, java.sql.Timestamp to)
           
 com.funambol.framework.engine.SyncItemKey[] getNewSyncItemKeys(java.sql.Timestamp since, java.sql.Timestamp to)
           
 com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
           
 com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
           
 char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
           
 com.funambol.framework.engine.SyncItemKey[] getUpdatedSyncItemKeys(java.sql.Timestamp since, java.sql.Timestamp to)
           
 void insertDefaultFolder(DefaultFolder df, EmailFilter filter, java.lang.String protocol, java.lang.String sURI, long pID)
           
 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)
           
 void setOperationStatus(java.lang.String operation, int statusCode, com.funambol.framework.engine.SyncItemKey[] keys)
           
 com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 

Method Detail

getAllSyncItemKeys

com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
                                                               throws com.funambol.framework.engine.source.SyncSourceException
Returns:
SyncItemKey[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getAllSyncItemInfo

java.util.HashMap getAllSyncItemInfo()
                                     throws com.funambol.framework.engine.source.SyncSourceException
Returns:
HashMap
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemFromId

com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
                                                         throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItemKey -
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemKeysFromTwin

com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
                                                                    throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItem -
Returns:
SyncItemKey[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

isSyncItemInFilterClause

boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
                                 throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItem -
Returns:
boolean
Throws:
com.funambol.framework.engine.source.SyncSourceException

isSyncItemInFilterClause

boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
                                 throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItemKey -
Returns:
boolean
Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItem

void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
                    java.sql.Timestamp s,
                    boolean engineSoftDelete)
                    throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItemKey -
s -
engineSoftDelete -
Throws:
com.funambol.framework.engine.source.SyncSourceException

updateSyncItem

com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
                                                      throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItem -
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

addSyncItem

com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
                                                   throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItem -
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

getDeletedSyncItemKeys

com.funambol.framework.engine.SyncItemKey[] getDeletedSyncItemKeys(java.sql.Timestamp since,
                                                                   java.sql.Timestamp to)
                                                                   throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
since -
to -
Returns:
SyncItemKey[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getNewSyncItemKeys

com.funambol.framework.engine.SyncItemKey[] getNewSyncItemKeys(java.sql.Timestamp since,
                                                               java.sql.Timestamp to)
                                                               throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
since -
to -
Returns:
SyncItemKey[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getUpdatedSyncItemKeys

com.funambol.framework.engine.SyncItemKey[] getUpdatedSyncItemKeys(java.sql.Timestamp since,
                                                                   java.sql.Timestamp to)
                                                                   throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
since -
to -
Returns:
SyncItemKey[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemStateFromId

char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
                            throws com.funambol.framework.engine.source.SyncSourceException
Parameters:
syncItemKey -
Returns:
char
Throws:
com.funambol.framework.engine.source.SyncSourceException

setOperationStatus

void setOperationStatus(java.lang.String operation,
                        int statusCode,
                        com.funambol.framework.engine.SyncItemKey[] keys)
Parameters:
operation -
statusCode -
keys -

checkMessageIDforDrafts

void checkMessageIDforDrafts(java.lang.String sURI,
                             long pID)
                             throws EntityException
Parameters:
sURI -
pID -
Throws:
EntityException

insertDefaultFolder

void insertDefaultFolder(DefaultFolder df,
                         EmailFilter filter,
                         java.lang.String protocol,
                         java.lang.String sURI,
                         long pID)
                         throws EntityException
Parameters:
df - defaulFolder object
protocol -
sURI - sourceURI
pID - principal ID
Throws:
EntityException


Copyright © 2005-2006 Funambol.