com.atlassian.confluence.mail.template
Class PreRenderedMailNotificationQueueItem
java.lang.Object
com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
com.atlassian.confluence.mail.template.MailNotificationQueueItem
com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem
- All Implemented Interfaces:
- MailQueueItem, Serializable, Task
- public class PreRenderedMailNotificationQueueItem
- extends MailNotificationQueueItem
- implements MailQueueItem
- See Also:
- Serialized Form
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.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.core.task.Task |
execute |
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)