public class IssueMailQueueItem
extends com.atlassian.mail.queue.AbstractMailQueueItem
Constructor and Description |
---|
IssueMailQueueItem(TemplateContextFactory templateContextFactory,
IssueEvent event,
Long templateId,
Set<NotificationRecipient> recipientList,
String notificationType,
JiraAuthenticationContext authenticationContext,
MailingListCompiler mailingListCompiler,
TemplateManager templateManager,
VelocityTemplatingEngine templatingEngine,
com.atlassian.mail.server.MailServerManager mailServerManager,
PermissionManager permissionManager)
Create an issue mail queue item.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getIssueContextParams(Locale locale,
IssueEvent iEvent) |
Set<NotificationRecipient> |
getRecipientList()
Used in testing only
|
String |
getSubject()
This is the subject as displayed in the Mail Queue Admin page.
|
void |
send() |
String |
toString() |
public IssueMailQueueItem(TemplateContextFactory templateContextFactory, IssueEvent event, Long templateId, Set<NotificationRecipient> recipientList, String notificationType, JiraAuthenticationContext authenticationContext, MailingListCompiler mailingListCompiler, TemplateManager templateManager, VelocityTemplatingEngine templatingEngine, com.atlassian.mail.server.MailServerManager mailServerManager, PermissionManager permissionManager)
templateContextFactory
- template context factoryevent
- the event that is the subject of this mail item.templateId
- the template ID for this mail item.recipientList
- a list of recipients for this mail item.notificationType
- notification typeauthenticationContext
- authentication contextmailingListCompiler
- mailing list compilertemplatingEngine
- velocity templating enginemailServerManager
- mail server managerpermissionManager
- permission managerIssueMailQueueItemFactory
public String getSubject()
The subject will be displayed in the preference language of the mail recipient once the mail is actually being sent. When the mail is being sent, it is a SingleMailQueueItem.
getSubject
in interface com.atlassian.mail.queue.MailQueueItem
getSubject
in class com.atlassian.mail.queue.AbstractMailQueueItem
public void send() throws com.atlassian.mail.MailException
com.atlassian.mail.MailException
protected Map<String,Object> getIssueContextParams(Locale locale, IssueEvent iEvent) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public Set<NotificationRecipient> getRecipientList()
Copyright © 2002-2021 Atlassian. All Rights Reserved.