public class MailAccountProperties extends java.lang.Object implements IMailProperties
MailAccountProperties - Mail properties read from mail account with fallback to properties read from properties file.| Constructor and Description |
|---|
MailAccountProperties(com.openexchange.mailaccount.MailAccount mailAccount)
Initializes a new
MailAccountProperties. |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttachDisplaySize()
Gets the max. allowed size (in bytes) for attachment for being displayed.
|
char |
getDefaultSeparator()
Gets the default separator character.
|
int |
getMailAccessCacheIdleSeconds()
Gets the mail access cache idle seconds.
|
int |
getMailAccessCacheShrinkerSeconds()
Gets the mail access cache shrinker-interval seconds.
|
int |
getMailFetchLimit()
Gets the mail fetch limit.
|
int |
getWatcherFrequency()
Gets the watcher frequency.
|
int |
getWatcherTime()
Gets the watcher time.
|
boolean |
isAllowNestedDefaultFolderOnAltNamespace()
Checks if default folders (e.g.
|
boolean |
isIgnoreSubscription()
Indicates whether subscription shall be ignored or not.
|
boolean |
isSupportSubscription()
Indicates whether subscription is supported or not.
|
boolean |
isUserFlagsEnabled()
Indicates if user flags are enabled.
|
boolean |
isWatcherEnabled()
Indicates if watcher is enabled.
|
boolean |
isWatcherShallClose()
Indicates if watcher is allowed to close exceeded connections.
|
void |
waitForLoading()
Waits for loading this properties.
|
public MailAccountProperties(com.openexchange.mailaccount.MailAccount mailAccount)
MailAccountProperties.mailAccount - The mail accountjava.lang.IllegalArgumentException - If provided mail account is nullpublic int getAttachDisplaySize()
IMailPropertiesgetAttachDisplaySize in interface IMailPropertiespublic char getDefaultSeparator()
IMailPropertiesgetDefaultSeparator in interface IMailPropertiespublic int getMailAccessCacheIdleSeconds()
IMailPropertiesgetMailAccessCacheIdleSeconds in interface IMailPropertiespublic int getMailAccessCacheShrinkerSeconds()
IMailPropertiesgetMailAccessCacheShrinkerSeconds in interface IMailPropertiespublic int getMailFetchLimit()
IMailPropertiesgetMailFetchLimit in interface IMailPropertiespublic int getWatcherFrequency()
IMailPropertiesgetWatcherFrequency in interface IMailPropertiespublic int getWatcherTime()
IMailPropertiesgetWatcherTime in interface IMailPropertiespublic boolean isAllowNestedDefaultFolderOnAltNamespace()
IMailPropertiesNote that personal namespace folder must allow subfolder creation.
isAllowNestedDefaultFolderOnAltNamespace in interface IMailPropertiestrue if default folders are supposed to be created below personal namespace folder; otherwise falsepublic boolean isIgnoreSubscription()
IMailPropertiesisIgnoreSubscription in interface IMailPropertiestrue if subscription shall be ignored; otherwise falsepublic boolean isSupportSubscription()
IMailPropertiesisSupportSubscription in interface IMailPropertiestrue if subscription is supported; otherwise falsepublic boolean isUserFlagsEnabled()
IMailPropertiesisUserFlagsEnabled in interface IMailPropertiestrue if user flags are enabled; otherwise falsepublic boolean isWatcherEnabled()
IMailPropertiesisWatcherEnabled in interface IMailPropertiestrue if watcher is enabled; otherwise falsepublic boolean isWatcherShallClose()
IMailPropertiesisWatcherShallClose in interface IMailPropertiestrue if watcher is allowed to close exceeded connections; otherwise falsepublic void waitForLoading()
throws java.lang.InterruptedException
IMailPropertieswaitForLoading in interface IMailPropertiesjava.lang.InterruptedException - If another thread interrupted the current thread before or while the current thread was waiting for
loading the properties.