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 Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public int getTokenValidity()
UserSignUpConfiguration
getTokenValidity
in interface UserSignUpConfiguration
public String getSubjectForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfiguration
getSubjectForSignUpEmail
in interface UserSignUpConfiguration
defaultI18nParams
- 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)
UserSignUpConfiguration
getTextBodyForSignUpEmail
in interface UserSignUpConfiguration
defaultI18nParams
- 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)
UserSignUpConfiguration
getHtmlBodyForSignUpEmail
in interface UserSignUpConfiguration
defaultI18nParams
- 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)
UserSignUpConfiguration
getSubjectForResetPwdEmail
in interface UserSignUpConfiguration
defaultI18nParams
- 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)
UserSignUpConfiguration
getTextBodyForResetPwdEmail
in interface UserSignUpConfiguration
defaultI18nParams
- 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)
UserSignUpConfiguration
getHtmlBodyForResetPwdEmail
in interface UserSignUpConfiguration
defaultI18nParams
- 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