com.atlassian.jira.mail
Class IssueMailQueueItem

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

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


Field Summary
(package private)  IssueEvent event
           
(package private)  java.lang.String notificationType
           
(package private)  java.lang.String template
           
 
Fields inherited from class com.atlassian.mail.queue.AbstractMailQueueItem
mailThreader
 
Constructor Summary
IssueMailQueueItem(IssueEvent event, java.lang.String notificationType, java.lang.String template)
           
 
Method Summary
 IssueEvent getEvent()
           
protected  java.util.Map getIssueContextParams(IssueEvent iEvent)
           
 java.lang.String getNotificationType()
           
 int getSendCount()
           
 java.lang.String getSubject()
           
 java.lang.String getTemplate()
           
 boolean hasError()
           
 void send()
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.mail.queue.AbstractMailQueueItem
execute, getDateQueued, incrementSendCount, setMailThreader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

event

IssueEvent event

notificationType

java.lang.String notificationType

template

java.lang.String template
Constructor Detail

IssueMailQueueItem

public IssueMailQueueItem(IssueEvent event,
                          java.lang.String notificationType,
                          java.lang.String template)
Method Detail

getSendCount

public int getSendCount()

hasError

public boolean hasError()

getSubject

public java.lang.String getSubject()

getEvent

public IssueEvent getEvent()

getNotificationType

public java.lang.String getNotificationType()

getTemplate

public java.lang.String getTemplate()

send

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

toString

public java.lang.String toString()

getIssueContextParams

protected java.util.Map getIssueContextParams(IssueEvent iEvent)
                                       throws org.ofbiz.core.entity.GenericEntityException,
                                              com.opensymphony.user.EntityNotFoundException
Throws:
org.ofbiz.core.entity.GenericEntityException
com.opensymphony.user.EntityNotFoundException


Copyright © 2002-2005 Atlassian. All Rights Reserved.