Class UserSignupManager
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.datasource.AbstractMyBatisDAO
-
- org.ametys.web.usermanagement.UserSignupManager
-
- org.ametys.plugins.userdirectory.signup.UserSignupManager
-
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Component
,Configurable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
UserSignupManager
public class UserSignupManager extends UserSignupManager
This component overridesUserSignupManager
to add the creation of a user content on signup.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.web.usermanagement.UserSignupManager
UserSignupManager.LostPasswordError, UserSignupManager.TempUser
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_initWorkflowActionId
The default workflow action id for initializing user contentprotected String
_workflowName
The default workflow name user content-
Fields inherited from class org.ametys.web.usermanagement.UserSignupManager
_i18nUtils, _pageUriResolver, _populationContextHelper, _pwdChangeTable, _resolver, _siteConf, _siteManager, _tempUsersTable, _uriResolverEP, _userManager, _userPopulationDAO, _userSignUpConfiguration, ROLE, SIGNUP_ERROR, SIGNUP_ERROR_TEMP_EMAIL_ALREADY_EXISTS, SIGNUP_ERROR_USER_ALREADY_EXISTS, SIGNUP_NO_ERROR, SIGNUP_RESET_ERROR_EMAIL_UNKNOWN, SIGNUP_TOKEN_EXPIRED, SIGNUP_TOKEN_UNKNOWN
-
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
-
Constructor Summary
Constructors Constructor Description UserSignupManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Request
_getRequest()
Get the requestvoid
additionalSignupOperations(User createdUser, Multimap<String,I18nizableText> errors)
Process additional operations after creation of uservoid
configure(Configuration configuration)
void
contextualize(Context context)
void
service(ServiceManager serviceManager)
void
validationBeforeSignup(Multimap<String,I18nizableText> errors)
Do some validation before signup-
Methods inherited from class org.ametys.web.usermanagement.UserSignupManager
addPasswordToken, addTemporaryUser, changeUserPassword, checkPasswordToken, checkPublicSignup, checkToken, getGTUContent, getGTUPage, getPwdChangePage, getPwdChangePages, getSignupPage, getSignupPages, getSuccessContent, getSuccessPage, getTempUser, getTempUser, getToken, isPublicSignupAllowed, removeExpiredPasswordTokens, removeExpiredTokens, removePasswordToken, removeTempUser, resetPassword, resetTempSignup, sendResetPasswordMail, sendSignupConfirmMail, sendSignupValidatedMail, signup, temporarySignup, temporarySignup, updateTempToken, userExists, validate, validatePassword
-
Methods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_configureDatasource, _getDataSourceId, _getMyBatisConfiguration, getSession, getSession, reload, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_initWorkflowActionId
protected int _initWorkflowActionId
The default workflow action id for initializing user content
-
_workflowName
protected String _workflowName
The default workflow name user content
-
-
Constructor Detail
-
UserSignupManager
public UserSignupManager()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Overrides:
contextualize
in classAbstractMyBatisDAO
- Throws:
ContextException
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classUserSignupManager
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classUserSignupManager
- Throws:
ConfigurationException
-
_getRequest
protected Request _getRequest()
Get the request- Returns:
- the request
-
validationBeforeSignup
public void validationBeforeSignup(Multimap<String,I18nizableText> errors)
Description copied from class:UserSignupManager
Do some validation before signup- Overrides:
validationBeforeSignup
in classUserSignupManager
- Parameters:
errors
- the map of errors to fill in cause of errors during validation
-
additionalSignupOperations
public void additionalSignupOperations(User createdUser, Multimap<String,I18nizableText> errors) throws UserManagementException
Description copied from class:UserSignupManager
Process additional operations after creation of user- Overrides:
additionalSignupOperations
in classUserSignupManager
- Parameters:
createdUser
- the created usererrors
- the map of errors to fill in case of errors during additional operations- Throws:
UserManagementException
- if an error occurs.
-
-