public class PasswordExpirationNotificationMailer extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CHANGE_PASSWORD_ENDPOINT |
protected static String |
CHANGE_PASSWORD_LINK_MACRO
Change password link macro key.
|
protected static String |
DAYS_TO_PASSWORD_EXPIRATION_MACRO
Days until password will expire macro key.
|
static String |
FIRSTNAME_MACRO
Recipient's firstname macro key.
|
static String |
LASTNAME_MACRO
Recipient's lastname macro key.
|
protected static String |
MAIL_SUBJECT |
protected static String |
USERNAME_MACRO
Recipient's username macro key.
|
Constructor and Description |
---|
PasswordExpirationNotificationMailer(MailManager mailManager,
MailTemplateRenderer mailTemplateRenderer,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
void |
sendNotifications(Collection<InternalUserWithPasswordLastChanged> usersToNotify,
Instant currentTime,
Duration passwordMaxChangeTimeInDays) |
protected static final String MAIL_SUBJECT
protected static final String CHANGE_PASSWORD_ENDPOINT
protected static final String USERNAME_MACRO
public static final String FIRSTNAME_MACRO
public static final String LASTNAME_MACRO
protected static final String DAYS_TO_PASSWORD_EXPIRATION_MACRO
protected static final String CHANGE_PASSWORD_LINK_MACRO
public PasswordExpirationNotificationMailer(MailManager mailManager, MailTemplateRenderer mailTemplateRenderer, com.atlassian.sal.api.ApplicationProperties applicationProperties, I18nHelper i18nHelper)
public void sendNotifications(Collection<InternalUserWithPasswordLastChanged> usersToNotify, Instant currentTime, Duration passwordMaxChangeTimeInDays) throws MailSendException
MailSendException
Copyright © 2020 Atlassian. All rights reserved.