com.funambol.email.engine.source
Class EmailPop
java.lang.Object
com.funambol.email.engine.source.EmailGeneric
com.funambol.email.engine.source.EmailPop
- All Implemented Interfaces:
- IEmailGeneric
public class EmailPop
- extends EmailGeneric
- implements IEmailGeneric
This class implements common methods of EmailPOPSyncSource
version $Id: EmailPop.java,v 1.17 2007/04/05 13:01:47 gbmiglia Exp $
| Fields inherited from class com.funambol.email.engine.source.EmailGeneric |
em |
|
Method Summary |
com.funambol.framework.engine.SyncItem |
addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
This method can only send the mail but not
append the mail in the outbox and sent folder. |
void |
clearServerInfo()
|
java.util.LinkedHashMap |
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 |
log
protected com.funambol.framework.logging.FunambolLogger log
pem
protected PopEntityManager pem
ess
protected EmailSyncSource ess
EmailPop
public EmailPop()
EmailPop
public EmailPop(EmailSyncSourceWrapper _essc)
throws com.funambol.framework.engine.source.SyncSourceException
- Parameters:
_essc -
- Throws:
com.funambol.framework.engine.source.SyncSourceException
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 - SyncItemKeys - TimestampengineSoftDelete - 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.LinkedHashMap getAllSyncItemInfo()
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getAllSyncItemInfo in interface IEmailGeneric- Specified by:
getAllSyncItemInfo in class EmailGeneric
- Returns:
- mail with all mail server SyncItemInfo
- 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
- This method can only send the mail but not
append the mail in the outbox and sent folder.
- 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.