de.iai.ilcd.webgui.controller.admin
Class RegistrationEmailGenerator

java.lang.Object
  extended by de.iai.ilcd.webgui.controller.admin.RegistrationEmailGenerator

public class RegistrationEmailGenerator
extends java.lang.Object


Field Summary
static java.lang.String FALLBACK_SITENAME
           
 
Constructor Summary
RegistrationEmailGenerator()
           
 
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
 

Field Detail

FALLBACK_SITENAME

public static final java.lang.String FALLBACK_SITENAME
See Also:
Constant Field Values
Constructor Detail

RegistrationEmailGenerator

public RegistrationEmailGenerator()
Method Detail

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 for
plainPassword - 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 for
plainPassword - 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