|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessagingFolder
MessagingFolder - Represents a messaging folder.
| Nested Class Summary | |
|---|---|
static class |
MessagingFolder.DefaultFolderType
The default folder type. |
| Field Summary | |
|---|---|
static java.lang.String |
CAPABILITY_PERMISSIONS
The capability identifier for permissions support. |
static java.lang.String |
CAPABILITY_QUOTA
The capability identifier for quota support. |
static java.lang.String |
CAPABILITY_SORT
The capability identifier for sort support. |
static java.lang.String |
CAPABILITY_SUBSCRIPTION
The capability identifier for subscription support. |
static java.lang.String |
CAPABILITY_USER_FLAGS
The capability identifier for user flags support. |
static java.lang.String |
ROOT_FULLNAME
The constant for full name of an account's root folder. |
| Method Summary | |
|---|---|
boolean |
containsDefaultFolderType()
Checks if default folder type was applied to this messaging folder. |
java.util.Set<java.lang.String> |
getCapabilities()
Gets the capabilities of this folder; e.g "QUOTA", "PERMISSIONS", etc. |
MessagingFolder.DefaultFolderType |
getDefaultFolderType()
Gets the default folder type. |
int |
getDeletedMessageCount()
Gets the number of messages marked for deletion in this folder |
java.lang.String |
getId()
Gets the identifier. |
int |
getMessageCount()
Gets the number of messages. |
java.lang.String |
getName()
Gets the name. |
int |
getNewMessageCount()
Gets the number of new messages (since last time this folder was accessed). |
MessagingPermission |
getOwnPermission()
Gets the permission for currently logged-in user accessing this folder The returned permission should reflect user's permission regardless if messaging system supports permissions or not. |
java.lang.String |
getParentId()
Gets the parent identifier or null if this messaging folder denotes the root folder. |
java.util.List<MessagingPermission> |
getPermissions()
Gets the permissions associated with this messaging folder. |
char |
getSeparator()
Gets the separator character. |
int |
getUnreadMessageCount()
Gets the number of unread messages. |
boolean |
hasSubfolders()
Checks if this messaging folder has subfolders. |
boolean |
hasSubscribedSubfolders()
Checks if this messaging folder has subscribed subfolders. |
boolean |
isDefaultFolder()
Checks if this folder denotes a default folder (Drafts, Sent, Trash, etc.) |
boolean |
isHoldsFolders()
Checks if this folder is able to hold folders. |
boolean |
isHoldsMessages()
Checks if this folder is able to hold messages. |
boolean |
isRootFolder()
Checks if this folder denotes the root folder |
boolean |
isSubscribed()
Checks whether the denoted messaging folder is subscribed or not. |
| Field Detail |
|---|
static final java.lang.String ROOT_FULLNAME
static final java.lang.String CAPABILITY_PERMISSIONS
static final java.lang.String CAPABILITY_QUOTA
static final java.lang.String CAPABILITY_SORT
static final java.lang.String CAPABILITY_SUBSCRIPTION
static final java.lang.String CAPABILITY_USER_FLAGS
| Method Detail |
|---|
java.util.Set<java.lang.String> getCapabilities()
"QUOTA", "PERMISSIONS", etc.
java.lang.String getId()
java.lang.String getName()
char getSeparator()
MessagingPermission getOwnPermission()
The returned permission should reflect user's permission regardless if messaging system supports permissions or not. An instance of
DefaultMessagingPermission is supposed to be returned on missing permissions support except for the root folder. The root
folder should indicate no object permissions in any case, but the folder permission varies if messaging system allows subfolder
creation below root folder or not. The returned permission must reflect the allowed behavior.
java.lang.String getParentId()
null if this messaging folder denotes the root folder.
null if this messaging folder denotes the root folderjava.util.List<MessagingPermission> getPermissions()
MessagingPermissionboolean hasSubfolders()
true if this messaging folder has subfolders; otherwise falseboolean hasSubscribedSubfolders()
true if this messaging folder has subscribed subfolders; otherwise falseboolean isSubscribed()
If messaging system does not support subscription, true is supposed to be returned.
boolean isHoldsFolders()
true if this folder is able to hold folders; otherwise falseboolean isHoldsMessages()
true if this folder is able to hold messages; otherwise falseboolean isRootFolder()
true if this folder denotes the root folder; otherwise falseboolean isDefaultFolder()
true if this folder denotes a default folder; otherwise falseint getMessageCount()
-1 if this messaging folder does not hold messagesisHoldsMessages()int getNewMessageCount()
-1 if this messaging folder does not hold messages.isHoldsMessages()int getUnreadMessageCount()
-1 if this messaging folder does not hold messagesisHoldsMessages()int getDeletedMessageCount()
-1 if this messaging folder does not hold messagesisHoldsMessages()MessagingFolder.DefaultFolderType getDefaultFolderType()
MessagingFolder.DefaultFolderType.NONE if not availableboolean containsDefaultFolderType()
true if default folder type is applied; otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||