|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.manager.login.util.ForgottenLoginMailer
public class ForgottenLoginMailer
Helper class to perform mailing tasks for forgotten login.
| Field Summary | |
|---|---|
static java.lang.String |
ACTIVE_MACRO
Forgotten login active status |
static java.lang.String |
ADMIN_CONTACT_MACRO
Forgotten login administrator contact macro key. |
static java.lang.String |
DATE_MACRO
Forgotten login date macro key. |
static java.lang.String |
DEPLOYMENTTITLE_MACRO
Forgotten login deployment title macro key. |
static java.lang.String |
EMAIL_MACRO
Forgotten login email macro key. |
static java.lang.String |
FIRSTNAME_MACRO
Forgotten login firstname macro key. |
static java.lang.String |
LASTNAME_MACRO
Forgotten login lastname macro key. |
static java.lang.String |
PASSWORD_MACRO
Deprecated. |
static java.lang.String |
RESET_LINK_MACRO
Forgotten login link macro key. |
static java.lang.String |
USERNAME_MACRO
Forgotten login username macro key. |
| Constructor Summary | |
|---|---|
ForgottenLoginMailer(PropertyManager propertyManager,
MailManager mailManager,
I18nHelper i18nHelper)
Constructs a new instance of ForgottenLoginMailer. |
|
| Method Summary | |
|---|---|
java.lang.String |
checkActiveUser(User user)
|
void |
mailResetPasswordLink(User user,
java.lang.String resetLink)
Mails the reset password link to the user. |
void |
mailUsernames(User user,
java.util.List<java.lang.String> usernames)
Mails the list of usernames to the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String USERNAME_MACRO
public static final java.lang.String FIRSTNAME_MACRO
public static final java.lang.String LASTNAME_MACRO
public static final java.lang.String DEPLOYMENTTITLE_MACRO
public static final java.lang.String DATE_MACRO
public static final java.lang.String PASSWORD_MACRO
public static final java.lang.String RESET_LINK_MACRO
public static final java.lang.String EMAIL_MACRO
public static final java.lang.String ADMIN_CONTACT_MACRO
public static final java.lang.String ACTIVE_MACRO
| Constructor Detail |
|---|
public ForgottenLoginMailer(PropertyManager propertyManager,
MailManager mailManager,
I18nHelper i18nHelper)
propertyManager - manager used to retrieve SMTP and site configurationsmailManager - manager used to send emailsi18nHelper - internationalisation helper| Method Detail |
|---|
public void mailResetPasswordLink(User user,
java.lang.String resetLink)
throws InvalidEmailAddressException,
MailSendException
user.
user - user to emailresetLink - link to set a new password
java.lang.IllegalArgumentException - if user or resetLink is null
InvalidEmailAddressException - if the email address returned by user.getEmailAddress() is not a valid email address
MailSendException - if the email cannot be sent
public void mailUsernames(User user,
java.util.List<java.lang.String> usernames)
throws InvalidEmailAddressException,
MailSendException
user. The list of usernames must not be empty.
user - user to emailusernames - list of usernames associated with the email
java.lang.IllegalArgumentException - if user or usernames is null or empty.
InvalidEmailAddressException - if the email address returned by user.getEmailAddress() is not a valid email address
MailSendException - if the email cannot be sentpublic java.lang.String checkActiveUser(User user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||