| java.lang.Object |
| ↳ |
com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
An abstract mail notification queue item that provides default implementations of most methods.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.core.task.Task
|
From interface
com.atlassian.mail.queue.MailQueueItem
|
abstract
Date
|
getDateQueued()
|
|
abstract
int
|
getSendCount()
|
|
abstract
String
|
getSubject()
|
|
abstract
boolean
|
hasError()
|
|
abstract
void
|
send()
|
|
Constants
public
static
final
String
MIME_TYPE_HTML
Constant Value:
"text/html"
public
static
final
String
MIME_TYPE_TEXT
Constant Value:
"text/plain"
Fields
protected
Date
dateQueued
Public Constructors
public
AbstractMailNotificationQueueItem
(String templateContent)
public
AbstractMailNotificationQueueItem
(String templateLocation, String templateFileName)
Public Methods
public
void
addVelocityContextParam
(String name, Object value)
public
void
clearContext
()
public
Date
getDateQueued
()
public
String
getRenderedContent
()
public
int
getSendCount
()
public
String
getTemplateContent
()
public
String
getTemplateFileName
()
public
String
getTemplateLocation
()
public
boolean
hasError
()
public
void
preRenderBody
(Map<String, Object> contextMap)
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.
public
void
setBody
(String body)
public
void
setSubject
(String subject)
public
void
setTemplateContent
(String templateContent)
public
void
setTemplateFileName
(String templateFileName)
public
void
setTemplateLocation
(String templateLocation)
Protected Methods
protected
abstract
Email
createMailObject
()
protected
void
incrementSendCount
()
protected
static
boolean
isRecognisedMimeType
(String mimePref)
protected
SMTPMailServer
retrieveMailServer
()
protected
void
setLastError
(String lastError)