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
,Comparable<com.atlassian.mail.queue.MailQueueItem>
@Deprecated(forRemoval=true,
since="9.4")
public class PreRenderedMailNotificationQueueItem
extends MailNotificationQueueItem
implements com.atlassian.mail.queue.MailQueueItem
Deprecated, for removal: This API element is subject to removal in a future version.
since 9.4
- See Also:
-
DispatchService
- Serialized Form
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.A builder forPreRenderedMailNotificationQueueItems
.Nested classes/interfaces inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
AbstractMailNotificationQueueItem.EncodeUtil
-
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
Modifier and TypeMethodDescriptioncreateFromTemplateFile
(com.atlassian.user.User recipient, String templateFileName, String subject) Deprecated.since 5.2, usewith(User, String, String)
insteadstatic MailNotificationQueueItem
createFromTemplateFileAndLocation
(com.atlassian.user.User recipient, String templateLocation, String templateFileName, String subject) Deprecated.since 5.2, usewith(User, String, String)
insteadprotected com.atlassian.mail.Email
Deprecated, for removal: This API element is subject to removal in a future version.void
render()
Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, for removal: This API element is subject to removal in a future version.final void
send()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Mandatory parametrisation in order to construct aPreRenderedMailNotificationQueueItem
instance.Methods inherited from class com.atlassian.confluence.mail.template.MailNotificationQueueItem
createFromTemplateContent, getDefaultTemplateLocation, getMimeType, getMimeTypeForUser, getUserAccessor
Methods inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
addUtilsToContext, addVelocityContextParam, clearContext, compareTo, execute, getBody, getDateQueued, getLastError, getRenderedContent, getRenderedContent, getSendCount, getSubject, getTemplateContent, getTemplateFileName, getTemplateLocation, getVelocityContextParam, hasError, incrementSendCount, isRecognisedMimeType, preRenderBody, removeVelocityContextParam, retrieveMailServer, setBody, setLastError, setSubject, setTemplateContent, setTemplateFileName, setTemplateLocation, transformForEmail
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.atlassian.mail.queue.MailQueueItem
getDateQueued, getSendCount, getSubject, hasError
-
Method Details
-
createFromTemplateFile
@Deprecated public static PreRenderedMailNotificationQueueItem createFromTemplateFile(com.atlassian.user.User recipient, String templateFileName, String subject) Deprecated.since 5.2, usewith(User, String, String)
instead -
createFromTemplateFileAndLocation
@Deprecated public static MailNotificationQueueItem createFromTemplateFileAndLocation(com.atlassian.user.User recipient, String templateLocation, String templateFileName, String subject) Deprecated.since 5.2, usewith(User, String, String)
instead -
with
public static PreRenderedMailNotificationQueueItem.Builder with(com.atlassian.user.User recipient, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.Mandatory parametrisation in order to construct aPreRenderedMailNotificationQueueItem
instance.The
templateFileName
denotes the templating technology to be used. E.g. parametrising the constructor withmyTemplateFile.vm
will lead to Apache Velocity being used as the engine, ormyTemplateFile.soy
will lead to Google Closure Templates being used.- Parameters:
recipient
- the recipient of this emailtemplateFileName
- the name of the templatesubject
- the subject, assumed to be pre-rendered- See Also:
-
render
public void render()Deprecated, for removal: This API element is subject to removal in a future version. -
send
public final void send() throws com.atlassian.mail.MailExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
send
in interfacecom.atlassian.mail.queue.MailQueueItem
- Overrides:
send
in classAbstractMailNotificationQueueItem
- Throws:
com.atlassian.mail.MailException
-
createMailObject
protected com.atlassian.mail.Email createMailObject()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createMailObject
in classMailNotificationQueueItem
-
renderTemplate
protected String renderTemplate(String templateLocation, String templateName, Map<String, Object> contextMap) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
renderTemplate
in classAbstractMailNotificationQueueItem
-