|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.mail.DummyMailingListsManager
public class DummyMailingListsManager
A dummy implmentation MailingListsManager. This operation reports UNAVAILABLE status
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.objectledge.mail.MailingListsManager |
|---|
MailingListsManager.Status |
| Field Summary | |
|---|---|
private static MailingListsException |
SUPPORT_UNAVAILABLE_EXCEPTION
Exception thrown when methods other than getStaus() is called. |
| Constructor Summary | |
|---|---|
DummyMailingListsManager()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final MailingListsException SUPPORT_UNAVAILABLE_EXCEPTION
| Constructor Detail |
|---|
public DummyMailingListsManager()
| Method Detail |
|---|
public 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.
getStatus in interface MailingListsManager
public String createList(String name,
String domain,
String[] administrators,
String password,
boolean notify,
Locale locale,
boolean moderated)
throws MailingListsException
createList in interface MailingListsManagername - 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.
public void deleteList(String name,
boolean deleteArchived)
throws MailingListsException
deleteList in interface MailingListsManagername - name of the list to delete.deleteArchived - delete if true
MailingListsException - if ml deletion failed.
public MailingList getList(String name,
String password)
throws MailingListsException
getList in interface MailingListsManagername - name of the list.password - the password.
MailingListsException
public MailingList getList(String name)
throws MailingListsException
getList in interface MailingListsManagername - name of the list.
MailingListsException
public List<String> getPublicLists()
throws MailingListsException
getPublicLists in interface MailingListsManagerMailingListsException - if something goes wrong.
public List<String> getLists()
throws MailingListsException
getLists in interface MailingListsManagerMailingListsException - if something goes wrong;
public List<Locale> getAvailableLocales()
throws MailingListsException
getAvailableLocales in interface MailingListsManagerMailingListsException
public List<String> getAvailableDomains()
throws MailingListsException
getAvailableDomains in interface MailingListsManagerMailingListsException
public javax.mail.Store getMessageStore()
throws MailingListsException
getMessageStore in interface MailingListsManagerMailingListsException
public MailingList getList(javax.mail.Message message)
throws MailingListsException
getList in interface MailingListsManagernull 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 | |||||||||