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:
- com.atlassian.core.task.Task, com.atlassian.mail.queue.MailQueueItem, Serializable
public class PreRenderedMailNotificationQueueItem
- extends MailNotificationQueueItem
- implements com.atlassian.mail.queue.MailQueueItem
- See Also:
- Serialized Form
Method Summary |
static MailNotificationQueueItem |
createFromTemplateContent(com.atlassian.user.User recipient,
String templateContent,
String subject)
|
static MailNotificationQueueItem |
createFromTemplateFile(com.atlassian.user.User recipient,
String templateFileName,
String subject)
|
static PreRenderedMailNotificationQueueItem |
createFromTemplateFileAndContext(com.atlassian.user.User recipient,
String templateFileName,
String subject,
Map contextMap,
com.atlassian.user.User modifier)
|
static MailNotificationQueueItem |
createFromTemplateFileAndLocation(com.atlassian.user.User recipient,
String templateLocation,
String templateFileName,
String subject)
Deprecated. since 3.5 |
protected com.atlassian.mail.Email |
createMailObject()
|
void |
render()
|
void |
send()
|
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 |
createFromTemplateFile
public static MailNotificationQueueItem createFromTemplateFile(com.atlassian.user.User recipient,
String templateFileName,
String subject)
createFromTemplateFileAndContext
public static PreRenderedMailNotificationQueueItem createFromTemplateFileAndContext(com.atlassian.user.User recipient,
String templateFileName,
String subject,
Map contextMap,
com.atlassian.user.User modifier)
createFromTemplateFileAndLocation
@Deprecated
public static MailNotificationQueueItem createFromTemplateFileAndLocation(com.atlassian.user.User recipient,
String templateLocation,
String templateFileName,
String subject)
- Deprecated. since 3.5
createFromTemplateContent
public static MailNotificationQueueItem createFromTemplateContent(com.atlassian.user.User recipient,
String templateContent,
String subject)
render
public void render()
send
public final void send()
throws com.atlassian.mail.MailException
- Specified by:
send
in interface com.atlassian.mail.queue.MailQueueItem
- Overrides:
send
in class AbstractMailNotificationQueueItem
- Throws:
com.atlassian.mail.MailException
createMailObject
protected com.atlassian.mail.Email createMailObject()
- Overrides:
createMailObject
in class MailNotificationQueueItem
Copyright © 2003-2011 Atlassian. All Rights Reserved.