|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailboxManager
| Method Summary | |
|---|---|
void |
addEventListener(EventListener listener)
|
void |
addMessage(long ownerID,
MailMessage message,
String mailboxName)
Appends a message to the user's INBOX. |
void |
addSubscription(long userID,
long mailboxID,
String mailboxName)
Subscribe the user to the given mailbox. |
void |
appendMessage(long mailboxID,
Date internalDate,
javax.mail.Flags flags,
File file)
Appends a message to this mailbox. |
void |
copyMessage(long uid,
long mailboxID)
Copies a message to the given mailbox. |
Mailbox |
createMailbox(long ownerID,
String mailboxName)
Creates a new mailbox. |
void |
deleteMailbox(long ownerID,
long mailboxID,
boolean delete)
Delete or empty a mailbox from store. |
void |
deleteMessage(long uid)
Deletes the given message. |
void |
deleteSubscription(long userID,
String mailboxName)
Unsubscribes the user from the given mailbox. |
List<Long> |
expunge(long mailboxID)
Gets the UIDs of messages which has /Deleted flag. |
List<Mailbox> |
getChildren(long userID,
long ownerID,
String mailboxName,
boolean subscribed)
|
EventDispatcher |
getEventDispatcher()
|
javax.mail.Flags |
getFlags(long uid)
|
Map<String,String> |
getHeader(long physMessageID)
Gets the headers of the message. |
Map<String,String> |
getHeader(long physMessageID,
String[] fields)
Gets the headers of the message. |
Mailbox |
getMailbox(long ownerID,
String mailboxName)
Returns user's Mailbox with a given path |
List<Long> |
getMailboxIDList(String mailboxName)
|
FetchData |
getMessageFetchData(long uid)
|
List<Long> |
getMessageIDList(long mailboxID)
|
boolean |
hasChildren(Mailbox mailbox)
Does the mailbox have inferior child mailboxes? |
boolean |
isSubscribed(long userID,
String mailboxName)
Check if given mailbox is subscribed to user |
boolean |
mailboxExists(long ownerID,
String mailboxName)
Check if given mailbox exists. |
void |
removeEventListener(EventListener listener)
|
void |
renameMailbox(Mailbox source,
String targetName)
Renames a mailbox. |
void |
resetRecent(long mailboxID)
|
List<Long> |
search(UidToMsnMapper map,
long mailboxID,
SearchKey key)
Searches for the messages matching the given query. |
void |
setFlags(long uid,
javax.mail.Flags flags,
boolean replace,
boolean set)
Sets flags on this message. |
| Method Detail |
|---|
EventDispatcher getEventDispatcher()
void addEventListener(EventListener listener)
void removeEventListener(EventListener listener)
Mailbox getMailbox(long ownerID,
String mailboxName)
Mailbox with a given path
ownerID - owner of the mailboxmailboxName - path to the mailbox
Mailbox
boolean mailboxExists(long ownerID,
String mailboxName)
ownerID - owner of this mailboxmailboxName - the name of mailbox for checking existence
List<Mailbox> getChildren(long userID,
long ownerID,
String mailboxName,
boolean subscribed)
List<Long> getMailboxIDList(String mailboxName)
boolean hasChildren(Mailbox mailbox)
mailbox - ID of the mailbox
List<Long> expunge(long mailboxID)
mailboxID - ID of mailbox
List<Long> search(UidToMsnMapper map,
long mailboxID,
SearchKey key)
map - UID to MSN converting mapmailboxID - ID of mailbox to searchkey - the search query
Mailbox createMailbox(long ownerID,
String mailboxName)
ownerID - owner of the mailboxmailboxName - the name of mailbox to create
Mailbox created
void renameMailbox(Mailbox source,
String targetName)
source - original mailboxtargetName - new name for the mailbox
void deleteMailbox(long ownerID,
long mailboxID,
boolean delete)
ownerID - ID of the user who owns the mailboxmailboxID - ID of the mailboxdelete - true when delete, false when empty
boolean isSubscribed(long userID,
String mailboxName)
userID - ID of usermailboxID - ID of mailbox
void addSubscription(long userID,
long mailboxID,
String mailboxName)
userID - ID of the usermailboxID - ID of the mailbox to subscribe
void deleteSubscription(long userID,
String mailboxName)
mailboxID - ID of the mailbox to unsubscribeFetchData getMessageFetchData(long uid)
javax.mail.Flags getFlags(long uid)
List<Long> getMessageIDList(long mailboxID)
void addMessage(long ownerID,
MailMessage message,
String mailboxName)
void appendMessage(long mailboxID,
Date internalDate,
javax.mail.Flags flags,
File file)
throws IOException
mailboxID - ID of mailbox to append a messageinternalDate - the time of addition to be setflags - optionally set these flags on created message, or null when no
additional flags should be setfile - the file containing the mail contents
IOExceptionvoid deleteMessage(long uid)
uid - ID of the message to delete
void copyMessage(long uid,
long mailboxID)
uid - ID of the message to copymailboxID - ID of mailbox where message will be copiedvoid resetRecent(long mailboxID)
void setFlags(long uid,
javax.mail.Flags flags,
boolean replace,
boolean set)
uid - ID of the message to set flagsflags - flags to be setreplace - true if to replaceset - true if to set, false to resetMap<String,String> getHeader(long physMessageID)
physMessageID - ID of the physical message
Map<String,String> getHeader(long physMessageID,
String[] fields)
physMessageID - ID of the physical messagefields - Array of fields to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||