public class DefaultUserSignUpConfiguration extends Object implements UserSignUpConfiguration, Configurable, Serviceable, PluginAware, Component
| Modifier and Type | Field and Description |
|---|---|
private String |
_htmlBodyKeyForResetPwd |
private String |
_htmlBodyKeyForSignupEmail |
private String |
_htmlBodyKeyForSignupValidationEmail |
protected I18nUtils |
_i18nUtils
The i18n utils
|
private String |
_pluginName |
private String |
_subjectKeyForResetPwd |
private String |
_subjectKeyForSignupEmail |
private String |
_subjectKeyForSignupValidationEmail |
private String |
_textBodyKeyForResetPwd |
private String |
_textBodyKeyForSignupEmail |
private String |
_textBodyKeyForSignupValidationEmail |
private int |
_tokenValidity |
ROLE| Constructor and Description |
|---|
DefaultUserSignUpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected I18nizableText |
_getI18nizableText(String fullI18nKey,
Map<String,I18nizableText> i18nParams)
Get the
I18nizableText from the configured key and i18n parameters |
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 |
getHtmlBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email html body when user sign up was validated.
|
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 |
getSubjectForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email subject when user sign up was validated.
|
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.
|
String |
getTextBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams,
String language)
The email text body when user sign up was validated.
|
int |
getTokenValidity()
The token validity period, in days.
|
void |
service(ServiceManager manager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
protected I18nUtils _i18nUtils
private int _tokenValidity
private String _subjectKeyForSignupEmail
private String _textBodyKeyForSignupEmail
private String _htmlBodyKeyForSignupEmail
private String _subjectKeyForSignupValidationEmail
private String _textBodyKeyForSignupValidationEmail
private String _htmlBodyKeyForSignupValidationEmail
private String _subjectKeyForResetPwd
private String _textBodyKeyForResetPwd
private String _htmlBodyKeyForResetPwd
private String _pluginName
public DefaultUserSignUpConfiguration()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic 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 getSubjectForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetSubjectForSignUpValidatedEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getTextBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetTextBodyForSignUpValidatedEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
siteTitle the site title
siteUrl the site urllanguage - the languagepublic String getHtmlBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)
UserSignUpConfigurationgetHtmlBodyForSignUpValidatedEmail in interface UserSignUpConfigurationdefaultI18nParams - The default i18n parameters with :
siteName the site name
login the login
email the mail
fullName the full name
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 languageprotected I18nizableText _getI18nizableText(String fullI18nKey, Map<String,I18nizableText> i18nParams)
I18nizableText from the configured key and i18n parametersfullI18nKey - the configured i18n keyi18nParams - the i18n parameters