public class

IssueMailQueueItem

extends AbstractMailQueueItem
java.lang.Object
   ↳ com.atlassian.mail.queue.AbstractMailQueueItem
     ↳ com.atlassian.jira.mail.IssueMailQueueItem

Summary

[Expand]
Inherited Fields
From class com.atlassian.mail.queue.AbstractMailQueueItem
Public Constructors
IssueMailQueueItem(TemplateContextFactory templateContextFactory, IssueEvent event, Long templateId, Set<NotificationRecipient> recipientList, String notificationType, JiraAuthenticationContext authenticationContext, MailingListCompiler mailingListCompiler, TemplateManager templateManager, VelocityTemplatingEngine templatingEngine, MailServerManager mailServerManager, PermissionManager permissionManager)
Create an issue mail queue item.
Public Methods
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()
Protected Methods
Map<StringObject> getIssueContextParams(Locale locale, IssueEvent iEvent)
[Expand]
Inherited Methods
From class com.atlassian.mail.queue.AbstractMailQueueItem
From class java.lang.Object
From interface com.atlassian.core.task.Task
From interface com.atlassian.mail.queue.MailQueueItem
From interface java.lang.Comparable

Public Constructors

public IssueMailQueueItem (TemplateContextFactory templateContextFactory, IssueEvent event, Long templateId, Set<NotificationRecipient> recipientList, String notificationType, JiraAuthenticationContext authenticationContext, MailingListCompiler mailingListCompiler, TemplateManager templateManager, VelocityTemplatingEngine templatingEngine, MailServerManager mailServerManager, PermissionManager permissionManager)

Create an issue mail queue item.

Parameters
templateContextFactory template context factory
event 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 type
authenticationContext authentication context
mailingListCompiler mailing list compiler
templatingEngine velocity templating engine
mailServerManager mail server manager
permissionManager permission manager

Public Methods

public Set<NotificationRecipient> getRecipientList ()

Used in testing only

Returns
  • recipientList the set of recipients to recieve this email notification

public String getSubject ()

This is the subject as displayed in the Mail Queue Admin page. The subject is displayed in the preference language of the current user viewing items to be sent (i.e. different from items CURRENTLY being sent).

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.

Returns
  • String the subject as displayed on the mail queue admin page

public void send ()

Throws
MailException

public String toString ()

Protected Methods

protected Map<StringObject> getIssueContextParams (Locale locale, IssueEvent iEvent)

Throws
GenericEntityException