Class MailNotificationQueueItem
java.lang.Object
com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem
com.atlassian.confluence.mail.template.MailNotificationQueueItem
- All Implemented Interfaces:
- com.atlassian.core.task.Task,- com.atlassian.mail.queue.MailQueueItem,- Serializable,- Comparable<com.atlassian.mail.queue.MailQueueItem>
- Direct Known Subclasses:
- PreRenderedMailNotificationQueueItem
@Deprecated(forRemoval=true,
            since="9.4")
public class MailNotificationQueueItem
extends AbstractMailNotificationQueueItem
Deprecated, for removal: This API element is subject to removal in a future version.
since 9.4
Handles mail notifications to Confluence users
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItemAbstractMailNotificationQueueItem.EncodeUtil
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.since 5.2, useinvalid reference#getDefaultTemplateLocation(String)Fields inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItembody, dateQueued, MIME_TYPE_HTML, MIME_TYPE_TEXT
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedMailNotificationQueueItem(com.atlassian.user.User user, String templateContent, String subject) Deprecated, for removal: This API element is subject to removal in a future version.protectedMailNotificationQueueItem(com.atlassian.user.User user, String templateLocation, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionstatic MailNotificationQueueItemcreateFromTemplateContent(com.atlassian.user.User user, String templateContent, String subject) Deprecated, for removal: This API element is subject to removal in a future version.static MailNotificationQueueItemcreateFromTemplateFile(com.atlassian.user.User user, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.static MailNotificationQueueItemcreateFromTemplateFileAndLocation(com.atlassian.user.User user, String templateLocation, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.protected com.atlassian.mail.EmailDeprecated, for removal: This API element is subject to removal in a future version.protected static StringgetDefaultTemplateLocation(@Nullable com.atlassian.user.User user, @Nullable String templateFileName) Deprecated, for removal: This API element is subject to removal in a future version.Returns the default location for the given user and template name.protected StringDeprecated, for removal: This API element is subject to removal in a future version.protected static StringgetMimeTypeForUser(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.TODO: CONFDEV-3278static UserAccessorDeprecated.since 8.7, use component injectionMethods inherited from class com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItemaddUtilsToContext, addVelocityContextParam, clearContext, compareTo, execute, getBody, getDateQueued, getLastError, getRenderedContent, getRenderedContent, getSendCount, getSubject, getTemplateContent, getTemplateFileName, getTemplateLocation, getVelocityContextParam, hasError, incrementSendCount, isRecognisedMimeType, preRenderBody, removeVelocityContextParam, renderTemplate, retrieveMailServer, send, setBody, setLastError, setSubject, setTemplateContent, setTemplateFileName, setTemplateLocation, transformForEmail
- 
Field Details- 
TEMPLATES_LOCATIONDeprecated.since 5.2, useinvalid reference#getDefaultTemplateLocation(String)- See Also:
 
 
- 
- 
Constructor Details- 
MailNotificationQueueItemprotected MailNotificationQueueItem(com.atlassian.user.User user, String templateLocation, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.
- 
MailNotificationQueueItemprotected MailNotificationQueueItem(com.atlassian.user.User user, String templateContent, String subject) Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
createFromTemplateFilepublic static MailNotificationQueueItem createFromTemplateFile(com.atlassian.user.User user, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.
- 
createFromTemplateFileAndLocationpublic static MailNotificationQueueItem createFromTemplateFileAndLocation(com.atlassian.user.User user, String templateLocation, String templateFileName, String subject) Deprecated, for removal: This API element is subject to removal in a future version.
- 
createFromTemplateContentpublic static MailNotificationQueueItem createFromTemplateContent(com.atlassian.user.User user, String templateContent, String subject) Deprecated, for removal: This API element is subject to removal in a future version.
- 
getMimeTypeDeprecated, for removal: This API element is subject to removal in a future version.
- 
createMailObjectprotected com.atlassian.mail.Email createMailObject()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- createMailObjectin class- AbstractMailNotificationQueueItem
 
- 
getMimeTypeForUserDeprecated, for removal: This API element is subject to removal in a future version.TODO: CONFDEV-3278With 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. - Parameters:
- user- The user to check
- Returns:
- the user's preferred format for email notifications
 
- 
getDefaultTemplateLocationprotected static String getDefaultTemplateLocation(@Nullable com.atlassian.user.User user, @Nullable String templateFileName) Deprecated, for removal: This API element is subject to removal in a future version.Returns the default location for the given user and template name.If a template name ends with .vm indicating a Velocity template, a path relative to the webapp context is returned. In any other case, a completeKey pointing to a web resource is returned. - Parameters:
- user- the name of the user for which the default location should be retrieved, currently not used
- templateFileName- the name of the template for which the default location should be retrieved
- Returns:
- the default template location
 
- 
getUserAccessorDeprecated.since 8.7, use component injection
 
-