com.openexchange.mail.api
Interface IMailProperties

All Known Implementing Classes:
MailAccountProperties, MailProperties

public interface IMailProperties


Method Summary
 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.
 

Method Detail

isAllowNestedDefaultFolderOnAltNamespace

boolean isAllowNestedDefaultFolderOnAltNamespace()
Checks if default folders (e.g. "Sent Mail", "Drafts") are supposed to be created below personal namespace folder (INBOX) even though mail server indicates to create them on the same level as personal namespace folder.

Note that personal namespace folder must allow subfolder creation.

Returns:
true if default folders are supposed to be created below personal namespace folder; otherwise false

getAttachDisplaySize

int getAttachDisplaySize()
Gets the max. allowed size (in bytes) for attachment for being displayed.

Returns:
The max. allowed size (in bytes) for attachment for being displayed

getDefaultSeparator

char getDefaultSeparator()
Gets the default separator character.

Returns:
The default separator character

isIgnoreSubscription

boolean isIgnoreSubscription()
Indicates whether subscription shall be ignored or not.

Returns:
true if subscription shall be ignored; otherwise false

isSupportSubscription

boolean isSupportSubscription()
Indicates whether subscription is supported or not.

Returns:
true if subscription is supported; otherwise false

getMailFetchLimit

int getMailFetchLimit()
Gets the mail fetch limit.

Returns:
The mail fetch limit

isUserFlagsEnabled

boolean isUserFlagsEnabled()
Indicates if user flags are enabled.

Returns:
true if user flags are enabled; otherwise false

isWatcherEnabled

boolean isWatcherEnabled()
Indicates if watcher is enabled.

Returns:
true if watcher is enabled; otherwise false

getWatcherFrequency

int getWatcherFrequency()
Gets the watcher frequency.

Returns:
The watcher frequency

isWatcherShallClose

boolean isWatcherShallClose()
Indicates if watcher is allowed to close exceeded connections.

Returns:
true if watcher is allowed to close exceeded connections; otherwise false

getWatcherTime

int getWatcherTime()
Gets the watcher time.

Returns:
The watcher time

getMailAccessCacheShrinkerSeconds

int getMailAccessCacheShrinkerSeconds()
Gets the mail access cache shrinker-interval seconds.

Returns:
The mail access cache shrinker-interval seconds

getMailAccessCacheIdleSeconds

int getMailAccessCacheIdleSeconds()
Gets the mail access cache idle seconds.

Returns:
The mail access cache idle seconds.

waitForLoading

void waitForLoading()
                    throws java.lang.InterruptedException
Waits for loading this properties.

Throws:
java.lang.InterruptedException - If another thread interrupted the current thread before or while the current thread was waiting for loading the properties.