Known Direct Subclasses
|
Class Overview
Handles mail notifications to Confluence users
Constants
public
static
final
String
TEMPLATES_LOCATION
Constant Value:
"/templates/email/"
Protected Constructors
protected
MailNotificationQueueItem
(User user, String templateLocation, String templateFileName, String subject)
protected
MailNotificationQueueItem
(User user, String templateContent, String subject)
Public Methods
Protected Methods
protected
Email
createMailObject
()
protected
String
getMimeType
()
protected
static
String
getMimeTypeForUser
(User user)
TODO: CONFDEV-3278
With the switch to XHTML from wiki markup, we no longer support TEXT or HTML selection.
It is always HTML, but some day we might want to add support for something else,
so keep the structure for selection in place, but just hidden.
Returns
- the user's preferred format for email notifications
protected
static
String
getTemplateLocationFromUserPreference
(User user)
TODO: CONFDEV-3278
Retrieve the location of the mail notification templates, based on the user's email
notification format preference.
Parameters
user
| The user whose preferences to check for the appropriate email format |
Returns
- the location in which the appropriate mail notification templates reside