public class MailingListCompiler extends Object
NotificationRecipients.
Notification format (eg. text/html) is taken into account as well as comment security levels.| Constructor and Description |
|---|
MailingListCompiler(TemplateManager templateManager,
ProjectRoleManager projectRoleManager) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEmailAddresses(Set<String> addresses)
Deprecated.
just use Joiner.on(",").join(addresses)
|
void |
sendLists(Set<NotificationRecipient> recipients,
String sender,
String senderFrom,
Long templateId,
String baseUrl,
Map<String,Object> contextParams,
com.atlassian.mail.MailThreader threader)
This function works out where the mail message has originated and then sets up the correct
parameters.
|
public MailingListCompiler(TemplateManager templateManager, ProjectRoleManager projectRoleManager)
@Deprecated public static String getEmailAddresses(Set<String> addresses)
addresses - email addressespublic void sendLists(Set<NotificationRecipient> recipients, String sender, String senderFrom, Long templateId, String baseUrl, Map<String,Object> contextParams, com.atlassian.mail.MailThreader threader) throws org.apache.velocity.exception.VelocityException
recipients - Set of NotificationRecipientssender - sendersenderFrom - sender fromtemplateId - the velocity template IDbaseUrl - base urlcontextParams - map of context parametersthreader - mail threaderorg.apache.velocity.exception.VelocityException - if notification compiler failsCopyright © 2002-2015 Atlassian. All Rights Reserved.