|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailingListsManager
Mailing manager component.
| Nested Class Summary | |
|---|---|
static class |
MailingListsManager.Status
|
| Method Summary | |
|---|---|
String |
createList(String name,
String domain,
String[] administrators,
String password,
boolean notify,
Locale locale,
boolean moderated)
Create new mailing list. |
void |
deleteList(String name,
boolean deleteArchived)
Delete mailing list. |
List<String> |
getAvailableDomains()
Get all e-mail domains configured in the system. |
List<Locale> |
getAvailableLocales()
Get all available locales. |
MailingList |
getList(javax.mail.Message message)
Returns the mailing list that that the given message belongs to, if any. |
MailingList |
getList(String name)
Get mailing list, using system administrator's credantials. |
MailingList |
getList(String name,
String password)
Get mailing list. |
List<String> |
getLists()
Get all lists. |
javax.mail.Store |
getMessageStore()
Open a connection to the incoming message store. |
List<String> |
getPublicLists()
Get all advertised lists. |
MailingListsManager.Status |
getStatus()
Checks the manager's status. |
| Method Detail |
|---|
MailingListsManager.Status getStatus()
When UNOPERATIONAL status is returned, all relevant information should be written to the server logs.
When UNOPERATIONAL or UNAVAILABLE status is returned, all methods except this one are free to throw any exceptions as will, with unspecified side effects. In short - don't call them.
String createList(String name,
String domain,
String[] administrators,
String password,
boolean notify,
Locale locale,
boolean moderated)
throws MailingListsException
name - the name of the list.domain - the email domain.administrators - list of administrators's email addressespassword - the administrator password, auto generated if nullnotify - if true send notification about list creation.locale - mailing list locale.moderated - should member postings be moderated.
MailingListsException - if ml creation failed.
void deleteList(String name,
boolean deleteArchived)
throws MailingListsException
name - name of the list to delete.deleteArchived - delete if true
MailingListsException - if ml deletion failed.
MailingList getList(String name,
String password)
throws MailingListsException
name - name of the list.password - the password.
MailingListsException
MailingList getList(String name)
throws MailingListsException
name - name of the list.
MailingListsException
List<String> getPublicLists()
throws MailingListsException
MailingListsException - if something goes wrong.
List<String> getLists()
throws MailingListsException
MailingListsException - if something goes wrong;
List<Locale> getAvailableLocales()
throws MailingListsException
MailingListsException
List<String> getAvailableDomains()
throws MailingListsException
MailingListsException
javax.mail.Store getMessageStore()
throws MailingListsException
MailingListsException
MailingList getList(javax.mail.Message message)
throws MailingListsException
a - mail message.
null if the message does not belong to a
mailing list.
MailingListsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||