|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.funambol.framework.engine.source.AbstractSyncSource
com.funambol.email.engine.source.EmailSyncSource
public class EmailSyncSource
This class implements common methods of MultiEmailSyncSource
version $Id: EmailSyncSource.java,v 1.72 2007/04/05 13:01:47 gbmiglia Exp $
| Field Summary | |
|---|---|
protected boolean |
allMailboxActivation
Should allMailbox sync? |
protected CacheDAO |
cacheDao
|
protected DefaultFolder |
defaultFolder
|
protected java.util.ArrayList |
deletedItemKeys
|
protected java.lang.String |
deviceCharset
Property for sync session |
protected java.util.TimeZone |
deviceTimeZone
Property for sync session |
protected IEmailGeneric |
emailhelper
wrapper for the Email Helper |
protected java.lang.String |
encryptionKey
|
protected EmailFilter |
filter
|
protected java.lang.String |
firstname
|
protected java.lang.String |
funambolSignature
|
protected static com.funambol.server.tools.id.DBIDGenerator |
idFolderSpace
|
protected static com.funambol.server.tools.id.DBIDGenerator |
idSentSpace
|
protected SyncItemInfo[] |
invalidItems
save the invalid items during the cache updating procedure |
protected boolean |
isSlowOrRefresh
Should allMailbox sync? |
protected java.lang.String |
jndiDataSourceName
|
protected java.lang.String |
keystoreHome
|
protected java.lang.String |
lastname
|
protected java.util.LinkedHashMap |
localItems
list of local cached Items |
protected com.funambol.framework.logging.FunambolLogger |
log
|
protected MailServerAccount |
mailServerAccount
wrapper for the Mail Server Account Wrapper |
protected IMailServerWrapper |
MSWrapper
wrapper for the Mail Server |
protected java.util.ArrayList |
newItemKeys
|
protected long |
principalId
|
protected boolean |
saveOnlyHeader
|
protected java.util.ArrayList |
sentItems
keep the items id and the result of send operation |
protected java.util.LinkedHashMap |
serverItems
list of server Items |
protected int |
syncMode
|
protected java.util.ArrayList |
updatedItemKeys
|
protected java.lang.String |
userName
|
| Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
|---|
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type |
| Constructor Summary | |
|---|---|
EmailSyncSource()
|
|
| Method Summary | |
|---|---|
com.funambol.framework.engine.SyncItem |
addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
|
void |
beginSync(com.funambol.framework.engine.source.SyncContext context)
Begin Sync Method before starting sync the method sets the filter |
void |
endSync()
End Sync Method |
com.funambol.framework.engine.SyncItemKey[] |
getAllSyncItemKeys()
|
com.funambol.framework.engine.SyncItemKey[] |
getDeletedSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
|
java.lang.String |
getFunambolSignature()
|
java.lang.String |
getJndiDataSourceName()
|
MailServerAccount |
getMailServerAccount()
|
IMailServerWrapper |
getMSWrapper()
|
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 |
init()
|
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 |
setFunambolSignature(java.lang.String _funambolSignature)
|
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.framework.engine.source.AbstractSyncSource |
|---|
commitSync, 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 |
|---|
commitSync, getInfo, getName, getSourceURI |
| Field Detail |
|---|
protected com.funambol.framework.logging.FunambolLogger log
protected java.lang.String jndiDataSourceName
protected java.lang.String encryptionKey
protected java.lang.String keystoreHome
protected java.lang.String funambolSignature
protected boolean saveOnlyHeader
protected long principalId
protected int syncMode
protected java.lang.String userName
protected java.lang.String firstname
protected java.lang.String lastname
protected java.util.TimeZone deviceTimeZone
protected java.lang.String deviceCharset
protected IMailServerWrapper MSWrapper
protected EmailFilter filter
protected IEmailGeneric emailhelper
protected MailServerAccount mailServerAccount
protected CacheDAO cacheDao
protected static com.funambol.server.tools.id.DBIDGenerator idSentSpace
protected static com.funambol.server.tools.id.DBIDGenerator idFolderSpace
protected java.util.ArrayList newItemKeys
protected java.util.ArrayList deletedItemKeys
protected java.util.ArrayList updatedItemKeys
protected java.util.ArrayList sentItems
protected java.util.LinkedHashMap localItems
protected java.util.LinkedHashMap serverItems
protected SyncItemInfo[] invalidItems
protected boolean allMailboxActivation
protected boolean isSlowOrRefresh
protected DefaultFolder defaultFolder
| Constructor Detail |
|---|
public EmailSyncSource()
| Method Detail |
|---|
public java.lang.String getJndiDataSourceName()
public java.lang.String getFunambolSignature()
public void setFunambolSignature(java.lang.String _funambolSignature)
_funambolSignature - Stringpublic IMailServerWrapper getMSWrapper()
public MailServerAccount getMailServerAccount()
public void init()
throws com.funambol.framework.tools.beans.BeanInitializationException
init in interface com.funambol.framework.tools.beans.LazyInitBeancom.funambol.framework.tools.beans.BeanInitializationException
public void beginSync(com.funambol.framework.engine.source.SyncContext context)
throws com.funambol.framework.engine.source.SyncSourceException
main folder filter
time filter (timeFilter)
size filter (sizeFilter / numbytes)
beginSync in interface com.funambol.framework.engine.source.SyncSourcebeginSync in class com.funambol.framework.engine.source.AbstractSyncSourcecontext - SyncContext
com.funambol.framework.engine.source.SyncSourceException
public void endSync()
throws com.funambol.framework.engine.source.SyncSourceException
endSync in interface com.funambol.framework.engine.source.SyncSourceendSync in class com.funambol.framework.engine.source.AbstractSyncSourcecom.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
throws com.funambol.framework.engine.source.SyncSourceException
getAllSyncItemKeys in interface com.funambol.framework.engine.source.SyncSourcegetAllSyncItemKeys in class com.funambol.framework.engine.source.AbstractSyncSourcecom.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
throws com.funambol.framework.engine.source.SyncSourceException
getSyncItemFromId in interface com.funambol.framework.engine.source.SyncSourcegetSyncItemFromId in class com.funambol.framework.engine.source.AbstractSyncSourcesyncItemKey - SyncItemKey
com.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
getSyncItemKeysFromTwin in interface com.funambol.framework.engine.source.SyncSourcegetSyncItemKeysFromTwin in class com.funambol.framework.engine.source.AbstractSyncSourcesyncItem - SyncItem
com.funambol.framework.engine.source.SyncSourceException
public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
isSyncItemInFilterClause in interface com.funambol.framework.engine.source.FilterableSyncSourcesyncItem - SyncItem
com.funambol.framework.engine.source.SyncSourceException
public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
throws com.funambol.framework.engine.source.SyncSourceException
isSyncItemInFilterClause in interface com.funambol.framework.engine.source.FilterableSyncSourcesyncItemKey - SyncItemKey
com.funambol.framework.engine.source.SyncSourceException
public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
java.sql.Timestamp s,
boolean engineSoftDelete)
throws com.funambol.framework.engine.source.SyncSourceException
removeSyncItem in interface com.funambol.framework.engine.source.SyncSourceremoveSyncItem in class com.funambol.framework.engine.source.AbstractSyncSourcesyncItemKey - SyncItemKeys - TimestampengineSoftDelete - boolean
com.funambol.framework.engine.source.SyncSourceException
public void setOperationStatus(java.lang.String operation,
int statusCode,
com.funambol.framework.engine.SyncItemKey[] keys)
setOperationStatus in interface com.funambol.framework.engine.source.SyncSourcesetOperationStatus in class com.funambol.framework.engine.source.AbstractSyncSourceoperation - StringstatusCode - intkeys - SyncItemKey[]
public com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
updateSyncItem in interface com.funambol.framework.engine.source.SyncSourceupdateSyncItem in class com.funambol.framework.engine.source.AbstractSyncSourcesyncItem - SyncItem
com.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
throws com.funambol.framework.engine.source.SyncSourceException
addSyncItem in interface com.funambol.framework.engine.source.SyncSourceaddSyncItem in class com.funambol.framework.engine.source.AbstractSyncSourcesyncItem - SyncItem
com.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItemKey[] getDeletedSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
throws com.funambol.framework.engine.source.SyncSourceException
getDeletedSyncItemKeys in interface com.funambol.framework.engine.source.SyncSourcegetDeletedSyncItemKeys in class com.funambol.framework.engine.source.AbstractSyncSourcesince - Timestampto - Timestamp
com.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItemKey[] getNewSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
throws com.funambol.framework.engine.source.SyncSourceException
getNewSyncItemKeys in interface com.funambol.framework.engine.source.SyncSourcegetNewSyncItemKeys in class com.funambol.framework.engine.source.AbstractSyncSourcesince - Timestampto - Timestamp
com.funambol.framework.engine.source.SyncSourceException
public com.funambol.framework.engine.SyncItemKey[] getUpdatedSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
throws com.funambol.framework.engine.source.SyncSourceException
getUpdatedSyncItemKeys in interface com.funambol.framework.engine.source.SyncSourcesince - Timestampto - Timestamp
com.funambol.framework.engine.source.SyncSourceException
public char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
throws com.funambol.framework.engine.source.SyncSourceException
getSyncItemStateFromId in interface com.funambol.framework.engine.source.FilterableSyncSourcesyncItemKey - SyncItemKey
com.funambol.framework.engine.source.SyncSourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||