|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailingList
Mailing list interface.
| Nested Class Summary | |
|---|---|
static class |
MailingList.OperationStatus
|
static class |
MailingList.SubscriptionPolicy
|
static class |
MailingList.TaskType
|
| Method Summary | |
|---|---|
void |
acceptMessage(String id)
Accept message. |
void |
acceptSubscription(String id)
Accept subscription request. |
void |
acceptUnsubscription(String id)
Accept unsubscription request. |
MailingList.OperationStatus |
addMember(String address,
String name,
String password,
boolean digest,
boolean ignoreCreationPolicy,
boolean acknowledge,
boolean notifyAdmins)
Add new member to mailing list. |
void |
addMemberAddress(String oldAddress,
String newAddress)
Add member address |
void |
changeMemberAddress(String oldAddress,
String newAddress)
Change list member address |
MailingList.OperationStatus |
deleteMember(String address,
boolean ignoreDeletingPolicy,
boolean acknowledge,
boolean notifyAdmins)
Delete list member. |
void |
discardMessage(String id)
Discard message. |
URL |
getAdministratorInterfaceLocation()
Returns the location of the list administrators WWW interface. |
URL |
getMemberInterfaceLocation()
Returns the location of the list member's self-service WWW interface. |
List<String> |
getMembers()
Get all lists members. |
String |
getName()
Returns the list name. |
List<String> |
getNewPendingTasks()
Get pending tasks. |
javax.mail.Message |
getPendingMessage(String id)
Get pending message. |
List<String> |
getPendingPosts()
Get list of messages waiting for moderation. |
List<String> |
getPendingSubscriptions()
Get list of subscriptions. |
MailingList.TaskType |
getPendingTaskType(String id)
Get pending message. |
List<String> |
getPendingUnubscriptions()
Get list of unsubscriptions. |
String |
getPostingAddress()
Returns the e-mail address used for posting to the list. |
Locale |
getPreferredLanguage()
Returns the preferred language for the list. |
String |
getSubscriptionAddress()
Returns the e-mail address used for subscribing to the list. |
MailingList.SubscriptionPolicy |
getSubscriptionPolicy()
Get current subscription policy. |
boolean |
isPostingModerated()
Get current moderation flag. |
void |
postMessage(javax.mail.Message message)
Post an e-mail message to the list. |
void |
rejectMessage(String id,
String comment)
Reject message. |
void |
rejectSubscription(String id,
String comment)
Reject subscription request. |
void |
rejectUnsubscription(String id,
String comment)
Reject unsubscription request. |
void |
setPassword(String password)
Set ml's administrator password. |
void |
setPostingModerated(boolean moderated)
Set moderation flag for mailing list. |
void |
setSubscriptionPolicy(MailingList.SubscriptionPolicy policy)
Set subscription policy for list. |
| Method Detail |
|---|
String getName()
MailingList.OperationStatus addMember(String address,
String name,
String password,
boolean digest,
boolean ignoreCreationPolicy,
boolean acknowledge,
boolean notifyAdmins)
throws MailingListsException
address - email address of new member.name - full name of new member.password - member's password, auto generated if nulldigest - if true member will receive batched digest delivery.ignoreCreationPolicy - force creating ignoring confirmation and approval.acknowledge - send acknowledge message to the subscribed user.notifyAdmins - send notification message to the list administrators.
MailingListsException - if anything goes wrong.
MailingList.OperationStatus deleteMember(String address,
boolean ignoreDeletingPolicy,
boolean acknowledge,
boolean notifyAdmins)
throws MailingListsException
address - email address of a member.ignoreDeletingPolicy - force deleting ignoring confirmation and approval.acknowledge - send acknowledge message to the subscribed user.notifyAdmins - send notification message to the list administrators.
MailingListsException - if anything goes wrong.
void changeMemberAddress(String oldAddress,
String newAddress)
throws MailingListsException
oldAddress - old address.newAddress - new address.
MailingListsException - if anything goes wrong.
void addMemberAddress(String oldAddress,
String newAddress)
throws MailingListsException
oldAddress - old address.newAddress - new address.
MailingListsException - if anything goes wrong.
List<String> getMembers()
throws MailingListsException
MailingListsException - if anything goes wrong.
void setPassword(String password)
throws MailingListsException
password - new password.
MailingListsException
void setPostingModerated(boolean moderated)
throws MailingListsException
moderated - moderated if true
MailingListsException
boolean isPostingModerated()
throws MailingListsException
MailingListsException
void setSubscriptionPolicy(MailingList.SubscriptionPolicy policy)
throws MailingListsException
policy - the policy.
MailingListsException
MailingList.SubscriptionPolicy getSubscriptionPolicy()
throws MailingListsException
MailingListsException
List<String> getPendingPosts()
throws MailingListsException
MailingListsException
List<String> getPendingSubscriptions()
throws MailingListsException
MailingListsException
List<String> getPendingUnubscriptions()
throws MailingListsException
MailingListsException
javax.mail.Message getPendingMessage(String id)
throws MailingListsException
id - message identifier.
MailingListsException
List<String> getNewPendingTasks()
throws MailingListsException
MailingListsException
MailingList.TaskType getPendingTaskType(String id)
throws MailingListsException
id - message identifier.
MailingListsException
void acceptMessage(String id)
throws MailingListsException
id - message identifier.
MailingListsException
void rejectMessage(String id,
String comment)
throws MailingListsException
id - message identifier.comment - comment on reasons of rejection (may be null).
MailingListsException
void discardMessage(String id)
throws MailingListsException
id - message identifier.
MailingListsException
void rejectSubscription(String id,
String comment)
throws MailingListsException
id - message identifier.comment - comment on reasons of rejection (may be null).
MailingListsException
void acceptSubscription(String id)
throws MailingListsException
id - message identifier.
MailingListsException
void rejectUnsubscription(String id,
String comment)
throws MailingListsException
id - message identifier.comment - comment on reasons of rejection (may be null).
MailingListsException
void acceptUnsubscription(String id)
throws MailingListsException
id - message identifier.
MailingListsException
void postMessage(javax.mail.Message message)
throws MailingListsException
message - the message.
MailingListsException
String getSubscriptionAddress()
throws MailingListsException
MailingListsException
String getPostingAddress()
throws MailingListsException
MailingListsException
URL getMemberInterfaceLocation()
throws MailingListsException
MailingListsException
URL getAdministratorInterfaceLocation()
throws MailingListsException
MailingListsException
Locale getPreferredLanguage()
throws MailingListsException
MailingListsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||