|
|||||||||
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.71 2007/03/21 10:51:48 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.HashMap |
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.HashMap |
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.HashMap localItems
protected java.util.HashMap 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.LazyInitBean
com.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.SyncSource
beginSync
in class com.funambol.framework.engine.source.AbstractSyncSource
context
- 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.SyncSource
endSync
in class com.funambol.framework.engine.source.AbstractSyncSource
com.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.SyncSource
getAllSyncItemKeys
in class com.funambol.framework.engine.source.AbstractSyncSource
com.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.SyncSource
getSyncItemFromId
in class com.funambol.framework.engine.source.AbstractSyncSource
syncItemKey
- 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.SyncSource
getSyncItemKeysFromTwin
in class com.funambol.framework.engine.source.AbstractSyncSource
syncItem
- 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.FilterableSyncSource
syncItem
- 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.FilterableSyncSource
syncItemKey
- 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.SyncSource
removeSyncItem
in class com.funambol.framework.engine.source.AbstractSyncSource
syncItemKey
- 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.SyncSource
setOperationStatus
in class com.funambol.framework.engine.source.AbstractSyncSource
operation
- 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.SyncSource
updateSyncItem
in class com.funambol.framework.engine.source.AbstractSyncSource
syncItem
- 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.SyncSource
addSyncItem
in class com.funambol.framework.engine.source.AbstractSyncSource
syncItem
- 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.SyncSource
getDeletedSyncItemKeys
in class com.funambol.framework.engine.source.AbstractSyncSource
since
- 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.SyncSource
getNewSyncItemKeys
in class com.funambol.framework.engine.source.AbstractSyncSource
since
- 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.SyncSource
since
- 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.FilterableSyncSource
syncItemKey
- SyncItemKey
com.funambol.framework.engine.source.SyncSourceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |