com.atlassian.jira.mail
Class SubscriptionMailQueueItem

java.lang.Object
  extended by com.atlassian.mail.queue.AbstractMailQueueItem
      extended by com.atlassian.jira.mail.SubscriptionMailQueueItem
All Implemented Interfaces:
com.atlassian.core.task.Task, com.atlassian.mail.queue.MailQueueItem, Serializable

public class SubscriptionMailQueueItem
extends com.atlassian.mail.queue.AbstractMailQueueItem

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.mail.queue.AbstractMailQueueItem
mailThreader
 
Constructor Summary
SubscriptionMailQueueItem(org.ofbiz.core.entity.GenericValue sub, MailingListCompiler mailingListCompiler, SearchService searchService)
           
 
Method Summary
 boolean equals(Object o)
           
 List getColumns(User user)
           
 String getSubject()
          This is the subject as displayed in the Mail Queue Admin page when the mail is BEING sent.
 String getSubjectKey()
          Retrieve the translation key for the subject.
 String getSubjectTrailer()
           
 IssueTableLayoutBean getTableLayout(User user)
           
 int hashCode()
           
 void send()
           
 String toString()
           
 
Methods inherited from class com.atlassian.mail.queue.AbstractMailQueueItem
execute, getDateQueued, getSendCount, hasError, incrementSendCount, setMailThreader
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscriptionMailQueueItem

public SubscriptionMailQueueItem(org.ofbiz.core.entity.GenericValue sub,
                                 MailingListCompiler mailingListCompiler,
                                 SearchService searchService)
Method Detail

send

public void send()
          throws com.atlassian.mail.MailException
Throws:
com.atlassian.mail.MailException

getTableLayout

public IssueTableLayoutBean getTableLayout(User user)
                                    throws Exception
Throws:
Exception

getColumns

public List getColumns(User user)
                throws Exception
Throws:
Exception

getSubject

public String getSubject()
This is the subject as displayed in the Mail Queue Admin page when the mail is BEING sent. The string is retrieved in the default language for the JIRA system.

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

getSubjectKey

public String getSubjectKey()
Retrieve the translation key for the subject. The appropriate translation will be retrieved for each recipient on sending the mail item.

Returns:
String translation key

getSubjectTrailer

public String getSubjectTrailer()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2009 Atlassian. All Rights Reserved.