com.atlassian.confluence.mail.template
Class MailNotificationQueueItem

java.lang.Object
  extended by com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
      extended by com.atlassian.confluence.mail.template.MailNotificationQueueItem
All Implemented Interfaces:
com.atlassian.core.task.Task, MailQueueItem, Serializable
Direct Known Subclasses:
PreRenderedMailNotificationQueueItem

public class MailNotificationQueueItem
extends AbstractMailNotificationQueueItem

Handles mail notifications to Confluence users

See Also:
Serialized Form

Field Summary
static String TEMPLATES_LOCATION
           
 
Fields inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
body, dateQueued, MIME_TYPE_HTML, MIME_TYPE_TEXT
 
Constructor Summary
protected MailNotificationQueueItem(com.atlassian.user.User user, String templateContent, String subject)
           
protected MailNotificationQueueItem(com.atlassian.user.User user, String templateLocation, String templateFileName, String subject)
           
 
Method Summary
static MailNotificationQueueItem createFromTemplateContent(com.atlassian.user.User user, String templateContent, String subject)
           
static MailNotificationQueueItem createFromTemplateFile(com.atlassian.user.User user, String templateFileName, String subject)
           
static MailNotificationQueueItem createFromTemplateFileAndLocation(com.atlassian.user.User user, String templateLocation, String templateFileName, String subject)
           
protected  Email createMailObject()
           
protected  String getMimeType()
           
protected static String getMimeTypeForUser(com.atlassian.user.User user)
           
static UserAccessor getUserAccessor()
           
 
Methods inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
addVelocityContextParam, clearContext, execute, getBody, getDateQueued, getLastError, getRenderedContent, getRenderedContent, getSendCount, getSubject, getTemplateContent, getTemplateFileName, getTemplateLocation, getVelocityContextParam, hasError, incrementSendCount, isRecognisedMimeType, preRenderBody, removeVelocityContextParam, retrieveMailServer, send, setBody, setLastError, setSubject, setTemplateContent, setTemplateFileName, setTemplateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATES_LOCATION

public static final String TEMPLATES_LOCATION
See Also:
Constant Field Values
Constructor Detail

MailNotificationQueueItem

protected MailNotificationQueueItem(com.atlassian.user.User user,
                                    String templateLocation,
                                    String templateFileName,
                                    String subject)

MailNotificationQueueItem

protected MailNotificationQueueItem(com.atlassian.user.User user,
                                    String templateContent,
                                    String subject)
Method Detail

createFromTemplateFile

public static MailNotificationQueueItem createFromTemplateFile(com.atlassian.user.User user,
                                                               String templateFileName,
                                                               String subject)

createFromTemplateFileAndLocation

public static MailNotificationQueueItem createFromTemplateFileAndLocation(com.atlassian.user.User user,
                                                                          String templateLocation,
                                                                          String templateFileName,
                                                                          String subject)

createFromTemplateContent

public static MailNotificationQueueItem createFromTemplateContent(com.atlassian.user.User user,
                                                                  String templateContent,
                                                                  String subject)

getMimeType

protected String getMimeType()

createMailObject

protected Email createMailObject()
Specified by:
createMailObject in class AbstractMailNotificationQueueItem

getMimeTypeForUser

protected static String getMimeTypeForUser(com.atlassian.user.User user)

getUserAccessor

public static UserAccessor getUserAccessor()


Confluence is developed by Atlassian.