public class NotifyAboutNoteMailMessage extends MailMessage
ACTIVATION_LINK_PREFIX| Constructor and Description |
|---|
NotifyAboutNoteMailMessage(User recipient,
User sender,
Locale locale,
Note note,
Blog blog,
Map<String,String> templatePlaceholderMessageKeys,
Map<String,Object> model)
Create a notification message for user a note.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageIdentifier()
Returns an identifier of the message which can be used in the Message-ID header.
|
String |
getReplyToAddress()
Returns a string holding the email address to be used in the "reply-to" header.
|
String |
getReplyToAddressName()
Returns the personal name to be used in the "reply-to" header field.
|
void |
prepareModel(Map<String,Object> model)
Prepare a model of key-value pairs which will be passed to the template engine when the
content and subject templates should be rendered.
|
addBcc, addCc, addTo, addTo, addTo, getBcc, getCc, getContentTemplate, getContentTemplateId, getFromAddress, getFromAddressName, getGlobalModel, getLocale, getSubjectTemplate, getSubjectTemplateId, getTo, getToAddresses, getToAddressPersonalName, isHtmlMail, isInsertRecipientPersonalName, setFromAddress, setFromAddressName, setInsertRecipientPersonalNamepublic NotifyAboutNoteMailMessage(User recipient, User sender, Locale locale, Note note, Blog blog, Map<String,String> templatePlaceholderMessageKeys, Map<String,Object> model)
recipient - the user to notify about the notenote - the user tagged postblog - the associated topic/blogsender - the senderlocale - the localetemplatePlaceholderMessageKeys - A map of placeholders to message keys, which will be replaced within the template
with the loaded message. Use it in the template @@placeholderMessageKey@@.model - Additional elements used for the velocity context.public String getMessageIdentifier()
MailMessagegetMessageIdentifier in class MailMessagepublic String getReplyToAddress()
MailMessagegetReplyToAddress in class MailMessagepublic String getReplyToAddressName()
MailMessagegetReplyToAddressName in class MailMessagepublic void prepareModel(Map<String,Object> model)
MailMessageprepareModel in class MailMessagemodel - The model to prepare. It will be initialized with the settings returned by
MailMessage.getGlobalModel().Copyright © 2019 Communote team. All rights reserved.