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
FieldsFields inherited from interface org.ametys.web.usermanagement.UserSignUpConfiguration
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText_getI18nizableText(String fullI18nKey, Map<String, I18nizableTextParameter> i18nParams) Get theI18nizableTextfrom the configured key and i18n parametersvoidconfigure(Configuration configuration) getHtmlBodyForInvitationToSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email html body when user is invit to signupgetHtmlBodyForResetPwdEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email html body when user reset password.getHtmlBodyForSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email html body when user sign up.getHtmlBodyForSignUpValidatedEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email html body when user sign up was validated.getSubjectForInvitationToSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email subject when user is invit to signupgetSubjectForResetPwdEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email subject when user reset password.getSubjectForSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email subject when user sign up.getSubjectForSignUpValidatedEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email subject when user sign up was validated.getTextBodyForInvitationToSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email text body when user is invit to signupgetTextBodyForResetPwdEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email text body when user reset password.getTextBodyForSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email text body when user sign up.getTextBodyForSignUpValidatedEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) The email text body when user sign up was validated.intThe 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 Details
-
_i18nUtils
The i18n utils
-
-
Constructor Details
-
DefaultUserSignUpConfiguration
public DefaultUserSignUpConfiguration()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
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
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
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, I18nizableTextParameter> 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, I18nizableTextParameter> 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, I18nizableTextParameter> 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.
-
getSubjectForInvitationToSignUpEmail
public String getSubjectForInvitationToSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) Description copied from interface:UserSignUpConfigurationThe email subject when user is invit to signup- Specified by:
getSubjectForInvitationToSignUpEmailin 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.
-
getTextBodyForInvitationToSignUpEmail
public String getTextBodyForInvitationToSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) Description copied from interface:UserSignUpConfigurationThe email text body when user is invit to signup- Specified by:
getTextBodyForInvitationToSignUpEmailin 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.
-
getHtmlBodyForInvitationToSignUpEmail
public String getHtmlBodyForInvitationToSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) Description copied from interface:UserSignUpConfigurationThe email html body when user is invit to signup- Specified by:
getHtmlBodyForInvitationToSignUpEmailin 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, I18nizableTextParameter> 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, I18nizableTextParameter> 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, I18nizableTextParameter> 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, I18nizableTextParameter> 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, I18nizableTextParameter> 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, I18nizableTextParameter> 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, I18nizableTextParameter> i18nParams) Get theI18nizableTextfrom the configured key and i18n parameters- Parameters:
fullI18nKey- the configured i18n keyi18nParams- the i18n parameters- Returns:
- the i18nizable text
-