Class MentionsMailQueueItem

  extended by com.atlassian.mail.queue.AbstractMailQueueItem
      extended by com.atlassian.mail.queue.SingleMailQueueItem
          extended by com.atlassian.jira.mail.MentionsMailQueueItem
All Implemented Interfaces:
com.atlassian.core.task.Task, com.atlassian.mail.queue.MailQueueItem, Serializable, Comparable<com.atlassian.mail.queue.MailQueueItem>

public class MentionsMailQueueItem
extends com.atlassian.mail.queue.SingleMailQueueItem

Holds details for a Mentions-feature Email.

Required so that we can populate the Velocity render context from the mail-queue flushing thread rather than the REST thread that triggered the mentions. In turn, that is required because the REST thread will get things like baseUrl incorrect (it renders as a relative rather than absolute link).

See Also:
Serialized Form

Field Summary
Fields inherited from class com.atlassian.mail.queue.AbstractMailQueueItem
Constructor Summary
MentionsMailQueueItem(com.atlassian.mail.Email email, String template, Map<String,Object> params)
Method Summary
 String getSubject()
          NOTE - stolen from IssueMailQueueItem.
 void send()
Methods inherited from class com.atlassian.mail.queue.SingleMailQueueItem
getEmail, toString
Methods inherited from class com.atlassian.mail.queue.AbstractMailQueueItem
compareTo, execute, getDateQueued, getSendCount, hasError, incrementSendCount, setMailThreader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public MentionsMailQueueItem(com.atlassian.mail.Email email,
                             String template,
                             Map<String,Object> params)
Method Detail


public String getSubject()
NOTE - stolen from IssueMailQueueItem. Refactor that later. 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.

Specified by:
getSubject in interface com.atlassian.mail.queue.MailQueueItem
getSubject in class com.atlassian.mail.queue.AbstractMailQueueItem
String the subject as displayed on the mail queue admin page


public void send()
          throws com.atlassian.mail.MailException
Specified by:
send in interface com.atlassian.mail.queue.MailQueueItem
send in class com.atlassian.mail.queue.SingleMailQueueItem

Copyright © 2002-2012 Atlassian. All Rights Reserved.