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 null
public int getAttachDisplaySize()
IMailProperties
getAttachDisplaySize
in interface IMailProperties
public char getDefaultSeparator()
IMailProperties
getDefaultSeparator
in interface IMailProperties
public int getMailAccessCacheIdleSeconds()
IMailProperties
getMailAccessCacheIdleSeconds
in interface IMailProperties
public int getMailAccessCacheShrinkerSeconds()
IMailProperties
getMailAccessCacheShrinkerSeconds
in interface IMailProperties
public int getMailFetchLimit()
IMailProperties
getMailFetchLimit
in interface IMailProperties
public int getWatcherFrequency()
IMailProperties
getWatcherFrequency
in interface IMailProperties
public int getWatcherTime()
IMailProperties
getWatcherTime
in interface IMailProperties
public boolean isAllowNestedDefaultFolderOnAltNamespace()
IMailProperties
Note that personal namespace folder must allow subfolder creation.
isAllowNestedDefaultFolderOnAltNamespace
in interface IMailProperties
true
if default folders are supposed to be created below personal namespace folder; otherwise false
public boolean isIgnoreSubscription()
IMailProperties
isIgnoreSubscription
in interface IMailProperties
true
if subscription shall be ignored; otherwise false
public boolean isSupportSubscription()
IMailProperties
isSupportSubscription
in interface IMailProperties
true
if subscription is supported; otherwise false
public boolean isUserFlagsEnabled()
IMailProperties
isUserFlagsEnabled
in interface IMailProperties
true
if user flags are enabled; otherwise false
public boolean isWatcherEnabled()
IMailProperties
isWatcherEnabled
in interface IMailProperties
true
if watcher is enabled; otherwise false
public boolean isWatcherShallClose()
IMailProperties
isWatcherShallClose
in interface IMailProperties
true
if watcher is allowed to close exceeded connections; otherwise false
public void waitForLoading() throws java.lang.InterruptedException
IMailProperties
waitForLoading
in interface IMailProperties
java.lang.InterruptedException
- If another thread interrupted the current thread before or while the current thread was waiting for
loading the properties.