com.funambol.email.engine.source
Class PopEmailSyncSource
java.lang.Object
com.funambol.framework.engine.source.AbstractSyncSource
com.funambol.email.cache.CrcCachedSyncSource
com.funambol.email.engine.source.EmailSyncSource
com.funambol.email.engine.source.PopEmailSyncSource
- All Implemented Interfaces:
- com.funambol.framework.tools.beans.LazyInitBean, java.io.Serializable, com.funambol.framework.engine.source.SyncSource
- public final class PopEmailSyncSource
- extends EmailSyncSource
- implements com.funambol.framework.engine.source.SyncSource, java.io.Serializable, com.funambol.framework.tools.beans.LazyInitBean
This class implements common methods of
EmailIMAPSyncSource
EmailPOPSyncSource
EmailSMTPSyncSource
version $Id: PopEmailSyncSource.java,v 1.2 2006/02/06 09:00:20 gbmiglia Exp $
- See Also:
- Serialized Form
Fields inherited from class com.funambol.email.engine.source.EmailSyncSource |
device, deviceCharset, deviceTimeZone, deviceTimeZoneDescr, em, encode, folderFilter, idFilter, inHost, inPort, isAttachFieldSet, isBodyFieldSet, isHeaderFieldSet, language, mswf, numBytes, outHost, principal, protocol, sizeFilter, ssl, syncMode, timeFilter |
Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type |
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. |
CrcSyncItemInfo[] |
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)
|
void |
init()
Init the syncSource |
boolean |
isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
|
boolean |
isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
|
boolean |
mergeSyncItems(com.funambol.framework.engine.SyncItemKey syncItemKey,
com.funambol.framework.engine.SyncItem syncItem)
|
void |
removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
java.sql.Timestamp s)
|
void |
removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
java.sql.Timestamp s,
boolean softDelete)
|
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)
|
Methods inherited from class com.funambol.email.engine.source.EmailSyncSource |
beginSync, createSyncItem, createSyncItem, createSyncItems, endSync, getDevice, getFoundationMailFromXML, getInPort, getLanguage, getProtocol, getXMLFromFoundationMail, isEncode, isSSL, setEncode, setInPort, setLanguage, setProtocol, setSSL |
Methods inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
getInfo, getName, getSourceQuery, getSourceURI, getType, setInfo, setName, setSourceURI, setType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.funambol.framework.engine.source.SyncSource |
beginSync, endSync, getDeletedSyncItemKeys, getInfo, getName, getNewSyncItemKeys, getSourceQuery, getSourceURI, getSyncItemStateFromId, getType, getUpdatedSyncItemKeys |
log
protected java.util.logging.Logger log
pem
protected PopEntityManager pem
PopEmailSyncSource
public PopEmailSyncSource()
init
public void init()
throws com.funambol.framework.tools.beans.BeanInitializationException
- Init the syncSource
- Specified by:
init
in interface com.funambol.framework.tools.beans.LazyInitBean
- Overrides:
init
in class CrcCachedSyncSource
- Throws:
com.funambol.framework.tools.beans.BeanInitializationException
mergeSyncItems
public boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey syncItemKey,
com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
mergeSyncItems
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
syncItemKey
- SyncItemKeysyncItem
- SyncItem
- Returns:
- boolean
- 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 com.funambol.framework.engine.source.SyncSource
- 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 com.funambol.framework.engine.source.SyncSource
- 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)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
removeSyncItem
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
syncItemKey
- SyncItemKeys
- Timestamp
- Throws:
com.funambol.framework.engine.source.SyncSourceException
setOperationStatus
public void setOperationStatus(java.lang.String operation,
int statusCode,
com.funambol.framework.engine.SyncItemKey[] keys)
- Specified by:
setOperationStatus
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
operation
- StringstatusCode
- intkeys
- SyncItemKey[]
removeSyncItem
public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
java.sql.Timestamp s,
boolean softDelete)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
removeSyncItem
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
syncItemKey
- SyncItemKeys
- TimestampsoftDelete
- 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 com.funambol.framework.engine.source.SyncSource
- 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 com.funambol.framework.engine.source.SyncSource
- Returns:
- SyncItemKey[]
- Throws:
com.funambol.framework.engine.source.SyncSourceException
getAllSyncItemInfo
public CrcSyncItemInfo[] getAllSyncItemInfo()
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getAllSyncItemInfo
in class CrcCachedSyncSource
- Returns:
- SyncItemInfo[]
- 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 com.funambol.framework.engine.source.SyncSource
- 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 com.funambol.framework.engine.source.SyncSource
- 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 com.funambol.framework.engine.source.SyncSource
- Parameters:
syncItem
- SyncItem
- Returns:
- SyncItem
- Throws:
com.funambol.framework.engine.source.SyncSourceException
Copyright © 2003-2006 Funambol.