public class DefaultUserSignUpConfiguration extends Object implements UserSignUpConfiguration, Configurable, Serviceable
| Modifier and Type | Field and Description |
|---|---|
private String |
_htmlBodyKeyForResetPwd |
private String |
_htmlBodyKeyForSignupEmail |
private I18nUtils |
_i18nUtils |
private String |
_subjectKeyForResetPwd |
private String |
_subjectKeyForSignupEmail |
private String |
_textBodyKeyForResetPwd |
private String |
_textBodyKeyForSignupEmail |
private int |
_tokenValidity |
ROLE| Constructor and Description |
|---|
DefaultUserSignUpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
String |
getHtmlBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email html body when user reset password.
|
String |
getHtmlBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email html body when user sign up.
|
String |
getSubjectForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email subject when user reset password.
|
String |
getSubjectForSignUpEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email subject when user sign up.
|
String |
getTextBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email text body when user reset password.
|
String |
getTextBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email text body when user sign up.
|
int |
getTokenValidity()
The token validity period, in days.
|
void |
service(ServiceManager manager) |
private int _tokenValidity
private String _subjectKeyForSignupEmail
private String _textBodyKeyForSignupEmail
private String _htmlBodyKeyForSignupEmail
private String _subjectKeyForResetPwd
private String _textBodyKeyForResetPwd
private String _htmlBodyKeyForResetPwd
private I18nUtils _i18nUtils
public DefaultUserSignUpConfiguration()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic int getTokenValidity()
UserSignUpConfigurationgetTokenValidity in interface UserSignUpConfigurationpublic String getSubjectForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetSubjectForSignUpEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
token the token
confirmUri the confirmation uri
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getTextBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetTextBodyForSignUpEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
token the token
confirmUri the confirmation uri
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getHtmlBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetHtmlBodyForSignUpEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
token the token
confirmUri the confirmation uri
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getSubjectForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetSubjectForResetPwdEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
token the token
confirmUri the confirmation uri
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getTextBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetTextBodyForResetPwdEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
token the token
confirmUri the confirmation uri
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getHtmlBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetHtmlBodyForResetPwdEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
token the token
confirmUri the confirmation uri
siteTitle the site title
siteUrl the site urllanguage - the language