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 classDeprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated, for removal: This API element is subject to removal in a future version.protected DateDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, 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 voidaddUtilsToContext(Map<String, Object> contextParams) Deprecated, for removal: This API element is subject to removal in a future version.voidaddVelocityContextParam(String name, Object value) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.intcompareTo(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.EmailDeprecated, for removal: This API element is subject to removal in a future version.voidexecute()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.intDeprecated, 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.booleanhasError()Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.protected static booleanisRecognisedMimeType(String mimePref) Deprecated, for removal: This API element is subject to removal in a future version.voidpreRenderBody(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 StringDeprecated, for removal: This API element is subject to removal in a future version.protected com.atlassian.mail.server.SMTPMailServerDeprecated, for removal: This API element is subject to removal in a future version.voidsend()Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.protected voidsetLastError(String lastError) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSubject(String subject) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTemplateContent(String templateContent) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTemplateFileName(String templateFileName) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTemplateLocation(String templateLocation) Deprecated, for removal: This API element is subject to removal in a future version.protected StringtransformForEmail(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:
compareToin 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:
getSubjectin interfacecom.atlassian.mail.queue.MailQueueItem
-
getDateQueued
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDateQueuedin 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:
getSendCountin 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:
hasErrorin interfacecom.atlassian.mail.queue.MailQueueItem
-
execute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
executein 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:
sendin 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.
-