|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class provides interface for mail store.
The mail store serves mainly for storing mail folders and messages.
Method Summary | |
void |
addMailEventListener(MailEventListener listener)
Adds the given mail event listener to this store. |
void |
create(java.lang.String user)
Creates a mail store for the given user. |
void |
dispatchMailEvent(MailEvent event)
Dispatches the given mail event to the registered listeners. |
boolean |
exists(java.lang.String user)
Whether the given user's mail store exists. |
MailFolder |
getDefaultFolder(java.lang.String user)
Returns a default folder for the given user. |
java.lang.String[] |
listUsers()
Returns a list of all users present in this mail store. |
void |
remove(java.lang.String user)
Removes the given user's mail store. |
void |
removeMailEventListener(MailEventListener listener)
Removes the given mail event listener from this store. |
Method Detail |
public void create(java.lang.String user) throws MailException
user
- the user identification
MailException
- if an error occuredpublic boolean exists(java.lang.String user) throws MailException
user
- the user identification
MailException
- if an error occuredpublic void remove(java.lang.String user) throws MailException
user
- the user identification
MailException
- if an error occuredpublic MailFolder getDefaultFolder(java.lang.String user) throws MailException
user
- the user identification
MailException
- if an error occuredpublic java.lang.String[] listUsers() throws MailException
MailException
- if an error occuredpublic void addMailEventListener(MailEventListener listener)
listener
- the mail event listenerpublic void removeMailEventListener(MailEventListener listener)
listener
- the mail event listenerpublic void dispatchMailEvent(MailEvent event)
event
- the mail event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |