com.atlassian.jira.mail
Class MailingListCompiler
java.lang.Object
com.atlassian.jira.mail.MailingListCompiler
- Direct Known Subclasses:
- DefaultSubscriptionManager
public class MailingListCompiler
- extends java.lang.Object
Methods responsible for sending a notification email to a list of NotificationRecipient
s.
Notification format (eg. text/html) is taken into account as well as comment security levels.
Method Summary |
static java.lang.String |
getEmailAddresses(java.util.Set addresses)
|
void |
sendLists(java.util.Set recipients,
java.lang.String sender,
java.lang.String senderFrom,
java.lang.Long templateId,
java.lang.String baseUrl,
java.util.Map contextParams,
com.atlassian.mail.MailThreader threader)
This function works out where the mail message has originated and then sets up the correct
parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailingListCompiler
public MailingListCompiler(TemplateManager templateManager,
ProjectRoleManager projectRoleManager)
getEmailAddresses
public static java.lang.String getEmailAddresses(java.util.Set addresses)
sendLists
public void sendLists(java.util.Set recipients,
java.lang.String sender,
java.lang.String senderFrom,
java.lang.Long templateId,
java.lang.String baseUrl,
java.util.Map contextParams,
com.atlassian.mail.MailThreader threader)
throws org.apache.velocity.exception.VelocityException
- This function works out where the mail message has originated and then sets up the correct
parameters. It allows comments to be hidden in the email from users that do not have permissions
to see them.
- Parameters:
recipients
- Set of NotificationRecipient
ssender
- sendersenderFrom
- sender fromtemplateId
- the velocity template IDbaseUrl
- base urlcontextParams
- map of context parametersthreader
- mail threader
- Throws:
org.apache.velocity.exception.VelocityException
- if notification compiler fails
Copyright © 2002-2010 Atlassian. All Rights Reserved.