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 inherited from interface org.ametys.web.usermanagement.UserSignUpConfiguration
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText
_getI18nizableText
(String fullI18nKey, Map<String, I18nizableTextParameter> i18nParams) Get theI18nizableText
from the configured key and i18n parametersvoid
configure
(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.int
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.
-
Field Details
-
_i18nUtils
The i18n utils
-
-
Constructor Details
-
DefaultUserSignUpConfiguration
public DefaultUserSignUpConfiguration()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAware
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.- Specified by:
setPluginInfo
in 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:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getTokenValidity
Description copied from interface:UserSignUpConfiguration
The token validity period, in days.- Specified by:
getTokenValidity
in interfaceUserSignUpConfiguration
- Returns:
- the token validity period, in days.
-
getSubjectForSignUpEmail
public String getSubjectForSignUpEmail(Map<String, I18nizableTextParameter> defaultI18nParams, String language) Description copied from interface:UserSignUpConfiguration
The email subject when user sign up.- Specified by:
getSubjectForSignUpEmail
in 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:UserSignUpConfiguration
The email text body when user sign up.- Specified by:
getTextBodyForSignUpEmail
in 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:UserSignUpConfiguration
The email html body when user sign up.- Specified by:
getHtmlBodyForSignUpEmail
in 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:UserSignUpConfiguration
The email subject when user is invit to signup- Specified by:
getSubjectForInvitationToSignUpEmail
in 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:UserSignUpConfiguration
The email text body when user is invit to signup- Specified by:
getTextBodyForInvitationToSignUpEmail
in 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:UserSignUpConfiguration
The email html body when user is invit to signup- Specified by:
getHtmlBodyForInvitationToSignUpEmail
in 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:UserSignUpConfiguration
The email subject when user sign up was validated.- Specified by:
getSubjectForSignUpValidatedEmail
in 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:UserSignUpConfiguration
The email text body when user sign up was validated.- Specified by:
getTextBodyForSignUpValidatedEmail
in 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:UserSignUpConfiguration
The email html body when user sign up was validated.- Specified by:
getHtmlBodyForSignUpValidatedEmail
in 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:UserSignUpConfiguration
The email subject when user reset password.- Specified by:
getSubjectForResetPwdEmail
in 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:UserSignUpConfiguration
The email text body when user reset password.- Specified by:
getTextBodyForResetPwdEmail
in 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:UserSignUpConfiguration
The email html body when user reset password.- Specified by:
getHtmlBodyForResetPwdEmail
in 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 theI18nizableText
from the configured key and i18n parameters- Parameters:
fullI18nKey
- the configured i18n keyi18nParams
- the i18n parameters- Returns:
- the i18nizable text
-