com.atlassian.confluence.mail.template
Class PreRenderedMailNotificationQueueItem

java.lang.Object
  extended bycom.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
      extended bycom.atlassian.confluence.mail.template.MailNotificationQueueItem
          extended bycom.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem
All Implemented Interfaces:
MailQueueItem, Serializable, Task

public class PreRenderedMailNotificationQueueItem
extends MailNotificationQueueItem
implements MailQueueItem

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.mail.template.MailNotificationQueueItem
TEMPLATES_LOCATION
 
Fields inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
body, dateQueued, MIME_TYPE_HTML, MIME_TYPE_TEXT
 
Method Summary
static MailNotificationQueueItem createFromTemplateContent(User user, String templateContent, String subject)
           
static MailNotificationQueueItem createFromTemplateFile(User user, String templateFileName, String subject)
           
static PreRenderedMailNotificationQueueItem createFromTemplateFileAndContext(User user, String templateFileName, String subject, Map contextMap)
           
static MailNotificationQueueItem createFromTemplateFileAndLocation(User user, String templateLocation, String templateFileName, String subject)
           
protected  Email createMailObject()
           
 void render()
           
 void send()
           
 void setRenderedSubject(String renderedSubject)
           
 
Methods inherited from class com.atlassian.confluence.mail.template.MailNotificationQueueItem
getMimeType, getMimeTypeForUser, getUserAccessor
 
Methods inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
addVelocityContextParam, clearContext, execute, getBody, getDateQueued, getLastError, getRenderedContent, getRenderedContent, getSendCount, getSubject, getTemplateContent, getTemplateFileName, getTemplateLocation, getVelocityContextParam, hasError, incrementSendCount, isRecognisedMimeType, preRenderBody, removeVelocityContextParam, retrieveMailServer, setBody, setLastError, setSubject, setTemplateContent, setTemplateFileName, setTemplateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.mail.queue.MailQueueItem
getDateQueued, getSendCount, getSubject, hasError
 
Methods inherited from interface com.atlassian.core.task.Task
execute
 

Method Detail

createFromTemplateFile

public static MailNotificationQueueItem createFromTemplateFile(User user,
                                                               String templateFileName,
                                                               String subject)

createFromTemplateFileAndLocation

public static MailNotificationQueueItem createFromTemplateFileAndLocation(User user,
                                                                          String templateLocation,
                                                                          String templateFileName,
                                                                          String subject)

createFromTemplateContent

public static MailNotificationQueueItem createFromTemplateContent(User user,
                                                                  String templateContent,
                                                                  String subject)

render

public void render()

send

public final void send()
                throws MailException
Specified by:
send in interface MailQueueItem
Overrides:
send in class AbstractMailNotificationQueueItem
Throws:
MailException

createMailObject

protected Email createMailObject()
Overrides:
createMailObject in class MailNotificationQueueItem

createFromTemplateFileAndContext

public static PreRenderedMailNotificationQueueItem createFromTemplateFileAndContext(User user,
                                                                                    String templateFileName,
                                                                                    String subject,
                                                                                    Map contextMap)

setRenderedSubject

public void setRenderedSubject(String renderedSubject)


Confluence is developed by Atlassian.