Package org.ametys.web.usermanagement
Class DefaultUserSignUpConfiguration
- java.lang.Object
-
- org.ametys.web.usermanagement.DefaultUserSignUpConfiguration
-
- All Implemented Interfaces:
PluginAware,UserSignUpConfiguration,Component,Configurable,Serviceable
public class DefaultUserSignUpConfiguration extends Object implements UserSignUpConfiguration, Configurable, Serviceable, PluginAware, Component
The default user sign up configuration
-
-
Field Summary
Fields Modifier and Type Field Description private String_htmlBodyKeyForResetPwdprivate String_htmlBodyKeyForSignupEmailprivate String_htmlBodyKeyForSignupValidationEmailprotected I18nUtils_i18nUtilsThe i18n utilsprivate String_pluginNameprivate String_subjectKeyForResetPwdprivate String_subjectKeyForSignupEmailprivate String_subjectKeyForSignupValidationEmailprivate String_textBodyKeyForResetPwdprivate String_textBodyKeyForSignupEmailprivate String_textBodyKeyForSignupValidationEmailprivate int_tokenValidity-
Fields inherited from interface org.ametys.web.usermanagement.UserSignUpConfiguration
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultUserSignUpConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected I18nizableText_getI18nizableText(String fullI18nKey, Map<String,I18nizableText> i18nParams)Get theI18nizableTextfrom the configured key and i18n parametersvoidconfigure(Configuration configuration)StringgetHtmlBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email html body when user reset password.StringgetHtmlBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email html body when user sign up.StringgetHtmlBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email html body when user sign up was validated.StringgetSubjectForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email subject when user reset password.StringgetSubjectForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email subject when user sign up.StringgetSubjectForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email subject when user sign up was validated.StringgetTextBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email text body when user reset password.StringgetTextBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email text body when user sign up.StringgetTextBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)The email text body when user sign up was validated.intgetTokenValidity()The token validity period, in days.voidservice(ServiceManager manager)voidsetPluginInfo(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.
-
-
-
Field Detail
-
_i18nUtils
protected I18nUtils _i18nUtils
The i18n utils
-
_tokenValidity
private int _tokenValidity
-
_subjectKeyForSignupEmail
private String _subjectKeyForSignupEmail
-
_textBodyKeyForSignupEmail
private String _textBodyKeyForSignupEmail
-
_htmlBodyKeyForSignupEmail
private String _htmlBodyKeyForSignupEmail
-
_subjectKeyForSignupValidationEmail
private String _subjectKeyForSignupValidationEmail
-
_textBodyKeyForSignupValidationEmail
private String _textBodyKeyForSignupValidationEmail
-
_htmlBodyKeyForSignupValidationEmail
private String _htmlBodyKeyForSignupValidationEmail
-
_subjectKeyForResetPwd
private String _subjectKeyForResetPwd
-
_textBodyKeyForResetPwd
private String _textBodyKeyForResetPwd
-
_htmlBodyKeyForResetPwd
private String _htmlBodyKeyForResetPwd
-
_pluginName
private String _pluginName
-
-
Constructor Detail
-
DefaultUserSignUpConfiguration
public DefaultUserSignUpConfiguration()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getTokenValidity
public int getTokenValidity()
Description copied from interface:UserSignUpConfigurationThe token validity period, in days.- Specified by:
getTokenValidityin interfaceUserSignUpConfiguration- Returns:
- the token validity period, in days.
-
getSubjectForSignUpEmail
public String getSubjectForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email subject when user sign up.- Specified by:
getSubjectForSignUpEmailin interfaceUserSignUpConfiguration- Parameters:
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- Returns:
- the email subject when user sign up.
-
getTextBodyForSignUpEmail
public String getTextBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email text body when user sign up.- Specified by:
getTextBodyForSignUpEmailin interfaceUserSignUpConfiguration- Parameters:
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- Returns:
- the email text body when user sign up.
-
getHtmlBodyForSignUpEmail
public String getHtmlBodyForSignUpEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email html body when user sign up.- Specified by:
getHtmlBodyForSignUpEmailin interfaceUserSignUpConfiguration- Parameters:
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- Returns:
- the email html body when user sign up.
-
getSubjectForSignUpValidatedEmail
public String getSubjectForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email subject when user sign up was validated.- Specified by:
getSubjectForSignUpValidatedEmailin interfaceUserSignUpConfiguration- Parameters:
defaultI18nParams- 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 language- Returns:
- the email subject when user sign up.
-
getTextBodyForSignUpValidatedEmail
public String getTextBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email text body when user sign up was validated.- Specified by:
getTextBodyForSignUpValidatedEmailin interfaceUserSignUpConfiguration- Parameters:
defaultI18nParams- 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 language- Returns:
- the email text body when user sign up.
-
getHtmlBodyForSignUpValidatedEmail
public String getHtmlBodyForSignUpValidatedEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email html body when user sign up was validated.- Specified by:
getHtmlBodyForSignUpValidatedEmailin interfaceUserSignUpConfiguration- Parameters:
defaultI18nParams- 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 language- Returns:
- the email html body when user sign up.
-
getSubjectForResetPwdEmail
public String getSubjectForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email subject when user reset password.- Specified by:
getSubjectForResetPwdEmailin interfaceUserSignUpConfiguration- Parameters:
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- Returns:
- the email subject when user reset password.
-
getTextBodyForResetPwdEmail
public String getTextBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email text body when user reset password.- Specified by:
getTextBodyForResetPwdEmailin interfaceUserSignUpConfiguration- Parameters:
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- Returns:
- the email text body when user reset password.
-
getHtmlBodyForResetPwdEmail
public String getHtmlBodyForResetPwdEmail(Map<String,I18nizableText> defaultI18nParams, String language)
Description copied from interface:UserSignUpConfigurationThe email html body when user reset password.- Specified by:
getHtmlBodyForResetPwdEmailin interfaceUserSignUpConfiguration- Parameters:
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- Returns:
- the email html body when user reset password.
-
_getI18nizableText
protected I18nizableText _getI18nizableText(String fullI18nKey, Map<String,I18nizableText> i18nParams)
Get theI18nizableTextfrom the configured key and i18n parameters- Parameters:
fullI18nKey- the configured i18n keyi18nParams- the i18n parameters- Returns:
- the i18nizable text
-
-