public class ManagerSecurityWarnMailMessage extends MailMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
RISK_LEVEL_HIGH
message key for high risk
|
static String |
RISK_LEVEL_LOW
message key for low risk
|
static String |
RISK_LEVEL_MEDIUM
message key for medium risk
|
static String |
WARN_REASON_POSSIBLE_HACK_ATTEMPT
message key for warn reason: possible hack attempt
|
static String |
WARN_REASON_USER_ACCOUNT_PERM_LOCKED
message key for warn reason: user locked
|
ACTIVATION_LINK_PREFIX| Constructor and Description |
|---|
ManagerSecurityWarnMailMessage(User manager,
String riskLevel,
String warnReason,
Long userId)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
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, getMessageIdentifier, getReplyToAddress, getReplyToAddressName, getSubjectTemplate, getSubjectTemplateId, getTo, getToAddresses, getToAddressPersonalName, isHtmlMail, isInsertRecipientPersonalName, setFromAddress, setFromAddressName, setInsertRecipientPersonalNamepublic static final String RISK_LEVEL_LOW
public static final String RISK_LEVEL_MEDIUM
public static final String RISK_LEVEL_HIGH
public static final String WARN_REASON_POSSIBLE_HACK_ATTEMPT
public static final String WARN_REASON_USER_ACCOUNT_PERM_LOCKED
public ManagerSecurityWarnMailMessage(User manager, String riskLevel, String warnReason, Long userId)
manager - the client manager to informriskLevel - message key for risk levelwarnReason - text which contains the warning reasonuserId - The users id.public 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.