Class AbstractMailNotificationQueueItem
java.lang.Object
com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
- All Implemented Interfaces:
com.atlassian.core.task.Task
,com.atlassian.mail.queue.MailQueueItem
,Serializable
,Comparable<com.atlassian.mail.queue.MailQueueItem>
- Direct Known Subclasses:
MailNotificationQueueItem
,NonUserMailNotificationQueueItem
@Deprecated(forRemoval=true,
since="9.4")
public abstract class AbstractMailNotificationQueueItem
extends Object
implements com.atlassian.mail.queue.MailQueueItem, com.atlassian.core.task.Task
Deprecated, for removal: This API element is subject to removal in a future version.
since 9.4
An abstract mail notification queue item that provides default implementations of most methods.
- 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. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Deprecated, for removal: This API element is subject to removal in a future version.protected Date
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMailNotificationQueueItem
(String templateContent) Deprecated, for removal: This API element is subject to removal in a future version.AbstractMailNotificationQueueItem
(String templateLocation, String templateFileName) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addUtilsToContext
(Map<String, Object> contextParams) Deprecated, for removal: This API element is subject to removal in a future version.void
addVelocityContextParam
(String name, Object value) Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.int
compareTo
(com.atlassian.mail.queue.MailQueueItem that) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract com.atlassian.mail.Email
Deprecated, for removal: This API element is subject to removal in a future version.void
execute()
Deprecated, for removal: This API element is subject to removal in a future version.getBody()
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.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.getRenderedContent
(String content) Deprecated, for removal: This API element is subject to removal in a future version.int
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.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.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.boolean
hasError()
Deprecated, for removal: This API element is subject to removal in a future version.protected void
Deprecated, for removal: This API element is subject to removal in a future version.protected static boolean
isRecognisedMimeType
(String mimePref) Deprecated, for removal: This API element is subject to removal in a future version.void
preRenderBody
(Map<String, Object> contextMap) Deprecated, for removal: This API element is subject to removal in a future version.This method will not retain a local copy of the contextMap - making it advantageous for pre-rendering templates with contexts comprising of transient or session-based data.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.protected com.atlassian.mail.server.SMTPMailServer
Deprecated, for removal: This API element is subject to removal in a future version.void
send()
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.protected void
setLastError
(String lastError) Deprecated, for removal: This API element is subject to removal in a future version.void
setSubject
(String subject) Deprecated, for removal: This API element is subject to removal in a future version.void
setTemplateContent
(String templateContent) Deprecated, for removal: This API element is subject to removal in a future version.void
setTemplateFileName
(String templateFileName) Deprecated, for removal: This API element is subject to removal in a future version.void
setTemplateLocation
(String templateLocation) Deprecated, for removal: This API element is subject to removal in a future version.protected String
transformForEmail
(String input) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
dateQueued
Deprecated, for removal: This API element is subject to removal in a future version. -
MIME_TYPE_HTML
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
MIME_TYPE_TEXT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
body
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
AbstractMailNotificationQueueItem
Deprecated, for removal: This API element is subject to removal in a future version. -
AbstractMailNotificationQueueItem
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
compareTo
public int compareTo(com.atlassian.mail.queue.MailQueueItem that) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
compareTo
in interfaceComparable<com.atlassian.mail.queue.MailQueueItem>
-
getLastError
Deprecated, for removal: This API element is subject to removal in a future version. -
setLastError
Deprecated, for removal: This API element is subject to removal in a future version. -
getSubject
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSubject
in interfacecom.atlassian.mail.queue.MailQueueItem
-
getDateQueued
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDateQueued
in interfacecom.atlassian.mail.queue.MailQueueItem
-
getSendCount
public int getSendCount()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSendCount
in interfacecom.atlassian.mail.queue.MailQueueItem
-
setSubject
Deprecated, for removal: This API element is subject to removal in a future version. -
hasError
public boolean hasError()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasError
in interfacecom.atlassian.mail.queue.MailQueueItem
-
execute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
execute
in interfacecom.atlassian.core.task.Task
- Throws:
Exception
-
send
public 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
- Throws:
com.atlassian.mail.MailException
-
createMailObject
protected abstract com.atlassian.mail.Email createMailObject()Deprecated, for removal: This API element is subject to removal in a future version. -
retrieveMailServer
protected com.atlassian.mail.server.SMTPMailServer retrieveMailServer() throws com.atlassian.mail.MailExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
com.atlassian.mail.MailException
-
incrementSendCount
protected void incrementSendCount()Deprecated, for removal: This API element is subject to removal in a future version. -
isRecognisedMimeType
Deprecated, for removal: This API element is subject to removal in a future version. -
addVelocityContextParam
Deprecated, for removal: This API element is subject to removal in a future version. -
removeVelocityContextParam
Deprecated, for removal: This API element is subject to removal in a future version. -
clearContext
public void clearContext()Deprecated, for removal: This API element is subject to removal in a future version. -
getVelocityContextParam
Deprecated, for removal: This API element is subject to removal in a future version. -
preRenderBody
Deprecated, for removal: This API element is subject to removal in a future version.This method will not retain a local copy of the contextMap - making it advantageous for pre-rendering templates with contexts comprising of transient or session-based data. -
getRenderedContent
Deprecated, for removal: This API element is subject to removal in a future version. -
getRenderedContent
Deprecated, for removal: This API element is subject to removal in a future version. -
addUtilsToContext
Deprecated, for removal: This API element is subject to removal in a future version. -
getTemplateFileName
Deprecated, for removal: This API element is subject to removal in a future version. -
setTemplateFileName
Deprecated, for removal: This API element is subject to removal in a future version. -
getTemplateContent
Deprecated, for removal: This API element is subject to removal in a future version. -
setTemplateContent
Deprecated, for removal: This API element is subject to removal in a future version. -
getTemplateLocation
Deprecated, for removal: This API element is subject to removal in a future version. -
setTemplateLocation
Deprecated, for removal: This API element is subject to removal in a future version. -
getBody
Deprecated, for removal: This API element is subject to removal in a future version. -
setBody
Deprecated, for removal: This API element is subject to removal in a future version. -
transformForEmail
Deprecated, for removal: This API element is subject to removal in a future version. -
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.
-