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
This component overrides
UserSignupManager
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.SignupType, UserSignupManager.TempUser
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
The default workflow action id for initializing user contentprotected String
The default workflow name user contentFields inherited from class org.ametys.web.usermanagement.UserSignupManager
_currentUserProvider, _i18nUtils, _populationContextHelper, _pwdChangeTable, _renderingContextHandler, _resolver, _rightManager, _siteConf, _siteManager, _tempUsersTable, _userDirectoryFactory, _userManager, _userPopulationDAO, _userSignUpConfiguration, CHANGE_PASSWORD_PAGE_SERVICE_ID, CHANGE_PASSWORD_PAGE_TAG_NAME, ROLE, SIGNUP_PAGE_SERVICE_ID, SIGNUP_PAGE_TAG_NAME, SIGNUP_SERVICE_PARAMETER_USERDIRECTORY, SITE_PARAM_SIGNUP_TYPE
Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Request
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
Do some validation before signupMethods inherited from class org.ametys.web.usermanagement.UserSignupManager
addPasswordToken, addTemporaryUser, changeUserPassword, checkPasswordToken, checkPublicSignup, checkSignupAllowed, checkToken, checkUserAllowedForInvitation, getAllowedUserPopulationForInvitation, getGTUContent, getGTUPage, getOrCreateToken, getPwdChangePage, getPwdChangePages, getResetPasswordUri, getSignupPage, getSignupPage, getSignupPages, getSignupPages, getSignupType, getSuccessContent, getSuccessPage, getTempUser, getTempUser, getTempUsers, getTempUsersProperties, getToken, getTotalCount, getUserDirectory, getUserIfHeExists, inviteToSignup, inviteToSignup, isPublicSignupAllowed, isPwdChangePage, isSignupAllowed, isSignupPage, removeExpiredPasswordTokens, removeExpiredTokens, removeExpiredTokens, removePasswordToken, removeTempUser, resendInvitation, resetPassword, resetTempSignup, resetTempSignup, searchTempUsers, 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 Details
-
_initWorkflowActionId
The default workflow action id for initializing user content -
_workflowName
The default workflow name user content
-
-
Constructor Details
-
UserSignupManager
public UserSignupManager()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Overrides:
contextualize
in classAbstractMyBatisDAO
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classUserSignupManager
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classUserSignupManager
- Throws:
ConfigurationException
-
_getRequest
Get the request- Returns:
- the request
-
validationBeforeSignup
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 UserManagementExceptionDescription 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.
-