|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailboxDao
| Method Summary | |
|---|---|
void |
addSubscription(long userID,
long mailboxID,
String mailboxName)
Subscribe the mailbox. |
Mailbox |
createMailbox(long ownerID,
String mailboxName)
Create a mailbox with given name. |
void |
deleteMailbox(long ownerID,
long mailboxID)
Delete the mailbox. |
void |
deleteMailboxes(long ownerID)
Delete all the mailboxes owned by the user. |
void |
deleteMessages(long ownerID)
Delete all the messages owned by the user. |
void |
deleteMessages(long ownerID,
long mailboxID)
Delete all the messages in the mailbox. |
void |
deleteSubscription(long userID,
String mailboxName)
Unsubscribe the mailbox. |
void |
forbidSelectMailbox(long ownerID,
long mailboxID)
Set \Noselect mailbox name attribute. |
int |
getChildCount(long ownerID,
String mailboxName)
Get the child mailboxes count. |
List<Mailbox> |
getChildren(long userID,
long ownerID,
String mailboxName,
boolean subscribed)
Get all child mailboxes of named mailbox. |
List<PhysMessage> |
getDanglingMessageIDList(long ownerID)
Get the list of physical message identifiers which will be dangling pointers (pointing messages which are already deleted) after deleting all the messages owned by the user. |
List<PhysMessage> |
getDanglingMessageIDList(long ownerID,
long mailboxID)
Get the list of physical message identifiers which will be dangling pointers (pointing messages which are already deleted) after expunging the mailbox. |
List<Long> |
getDeletedMessageIDList(long mailboxID)
Get the deleted message's identifiers. |
long |
getFirstUnseenMessageID(long mailboxID)
Get the message identifier of the first unseen message. |
Mailbox |
getMailbox(long ownerID,
String mailboxName)
Get the named mailbox. |
List<Long> |
getMailboxIDList(String mailboxName)
Get the identifiers of mailboxes whose name match the given name. |
int |
getMessageCount(long mailboxID)
Get the total message count. |
int |
getRecentMessageCount(long mailboxID)
Get the recent message count. |
int |
getUnseenMessageCount(long mailboxID)
Get the unseen message count. |
boolean |
isSubscribed(long userID,
String mailboxName)
Check whether the mailbox is subscribed. |
boolean |
mailboxExists(long ownerID,
String mailboxName)
Check whether the mailbox really exists. |
void |
renameMailbox(Mailbox source,
String dest)
Rename the mailbox. |
| Method Detail |
|---|
Mailbox getMailbox(long ownerID,
String mailboxName)
ownerID - the id of the user who owns the mailboxmailboxName - fullname of the mailbox
List<Mailbox> getChildren(long userID,
long ownerID,
String mailboxName,
boolean subscribed)
userID - ID of user who called this methodownerID - ID of user who owns the mailboxmailboxName - fullname of the parent mailboxsubscribed - If true, only subscribed mailboxes are returned
int getChildCount(long ownerID,
String mailboxName)
ownerID - ID of the user who owns the mailboxmailboxName - fullname of the parent mailbox
List<Long> getMailboxIDList(String mailboxName)
mailboxName - fullname of the mailboxes to find
List<Long> getDeletedMessageIDList(long mailboxID)
mailboxID - id of the mailbox
List<PhysMessage> getDanglingMessageIDList(long ownerID)
ownerID - ID of the user
List<PhysMessage> getDanglingMessageIDList(long ownerID,
long mailboxID)
ownerID - ID of the user who owns the mailboxmailboxID - ID of the mailbox
boolean mailboxExists(long ownerID,
String mailboxName)
ownerID - ID of the user who owns the mailboxmailboxName - fullname of the parent mailbox
Mailbox createMailbox(long ownerID,
String mailboxName)
ownerID - ID of the user who owns the mailboxmailboxName - fullname of the mailbox to create
void renameMailbox(Mailbox source,
String dest)
source - fullname of the mailbox to renamedest - new name for the mailboxvoid deleteMailboxes(long ownerID)
ownerID - ID of the user
void deleteMailbox(long ownerID,
long mailboxID)
ownerID - ID of the usermailboxID - ID of the mailboxvoid deleteMessages(long ownerID)
ownerID - ID of the user
void deleteMessages(long ownerID,
long mailboxID)
ownerID - ID of the usermailboxID - ID of the mailbox
void forbidSelectMailbox(long ownerID,
long mailboxID)
ownerID - ID of the usermailboxID - ID of the mailbox
boolean isSubscribed(long userID,
String mailboxName)
userID - ID of the usermailboxID - ID of the 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)
userID - ID of the usermailboxName - name of the mailbox to unsubscribeint getMessageCount(long mailboxID)
mailboxID - ID of the mailbox
int getRecentMessageCount(long mailboxID)
mailboxID - ID of the mailbox
int getUnseenMessageCount(long mailboxID)
mailboxID - ID of the mailbox
long getFirstUnseenMessageID(long mailboxID)
mailboxID - ID of the mailbox.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||