de.iai.ilcd.webgui.controller.admin
Class RegistrationEmailGenerator
java.lang.Object
de.iai.ilcd.webgui.controller.admin.RegistrationEmailGenerator
public class RegistrationEmailGenerator
- extends java.lang.Object
Method Summary |
javax.mail.Message |
genActivationEmailForUser(User user,
java.lang.String plainPassword)
Generate an activation information mail for the user. |
javax.mail.Message |
genActivationMailForProvider(User user)
Generate an activation information mail for the provider of the web site. |
javax.mail.Message |
genUserNotice(User user,
java.lang.String plainPassword)
Generate user information mail for created account |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FALLBACK_SITENAME
public static final java.lang.String FALLBACK_SITENAME
- See Also:
- Constant Field Values
RegistrationEmailGenerator
public RegistrationEmailGenerator()
genActivationMailForProvider
public javax.mail.Message genActivationMailForProvider(User user)
throws javax.mail.MessagingException
- Generate an activation information mail for the provider of the web site.
Mail will be sent to mail address configured in properties file
(key:
user.registration.registrationAddress
)
- Parameters:
user
- user object to generate activation mail for
- Returns:
- the generated message
- Throws:
javax.mail.MessagingException
- if an error occurs
genActivationEmailForUser
public javax.mail.Message genActivationEmailForUser(User user,
java.lang.String plainPassword)
throws javax.mail.MessagingException
- Generate an activation information mail for the user.
- Parameters:
user
- user object to generate activation mail forplainPassword
- the plain text password that is only stored in an encrypted manner in the user object
- Returns:
- the generated message
- Throws:
javax.mail.MessagingException
- if an error occurs
genUserNotice
public javax.mail.Message genUserNotice(User user,
java.lang.String plainPassword)
throws javax.mail.MessagingException
- Generate user information mail for created account
- Parameters:
user
- user object to generate message forplainPassword
- the plain text password that is only stored in an encrypted manner in the user object
- Returns:
- the generated message
- Throws:
javax.mail.MessagingException
- if an error occurs