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, setInsertRecipientPersonalName
public 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()
MailMessage
getMessageIdentifier
in class MailMessage
public String getReplyToAddress()
MailMessage
getReplyToAddress
in class MailMessage
public String getReplyToAddressName()
MailMessage
getReplyToAddressName
in class MailMessage
public void prepareModel(Map<String,Object> model)
MailMessage
prepareModel
in class MailMessage
model
- The model to prepare. It will be initialized with the settings returned by
MailMessage.getGlobalModel()
.Copyright © 2019 Communote team. All rights reserved.