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
org.ametys.plugins.workspaces.signup.UserSignupManager
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Component
,Configurable
,Contextualizable
,Serviceable
This component overrides
UserSignupManager
to handle invitations by mail for workspaces-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.web.usermanagement.UserSignupManager
UserSignupManager.SignupType, UserSignupManager.TempUser
-
Field Summary
Fields inherited from class org.ametys.plugins.userdirectory.signup.UserSignupManager
_initWorkflowActionId, _workflowName
Fields 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 TypeMethodDescriptionvoid
additionalSignupOperations
(User createdUser, Multimap<String, I18nizableText> errors) Process additional operations after creation of usergetPwdChangePage
(String siteName, String language) Get the password change page in a given site and sitemap.getPwdChangePages
(String siteName, String language) Get all the pages tagged "password change".getSignupPage
(String siteName, String language) Get the sign-up page in a given site and sitemap.
If more than one page are tagged "sign-up", return the first.getSignupPages
(String siteName, String language) Get all the pages tagged "sign-up" with signup serviceboolean
isPublicSignupAllowed
(String siteName) Test if public signup is allowed in a site.void
service
(ServiceManager serviceManager) void
temporarySignup
(String siteName, String language, String email, String population, String userDirectoryId) Validate and store a sign-up request and send a confirmation e-mail.Methods inherited from class org.ametys.plugins.userdirectory.signup.UserSignupManager
_getRequest, configure, contextualize, validationBeforeSignup
Methods inherited from class org.ametys.web.usermanagement.UserSignupManager
addPasswordToken, addTemporaryUser, changeUserPassword, checkPasswordToken, checkPublicSignup, checkSignupAllowed, checkToken, checkUserAllowedForInvitation, getAllowedUserPopulationForInvitation, getGTUContent, getGTUPage, getOrCreateToken, getResetPasswordUri, getSignupPage, getSignupPages, getSignupType, getSuccessContent, getSuccessPage, getTempUser, getTempUser, getTempUsers, getTempUsersProperties, getToken, getTotalCount, getUserDirectory, getUserIfHeExists, inviteToSignup, inviteToSignup, isPwdChangePage, isSignupAllowed, isSignupPage, removeExpiredPasswordTokens, removeExpiredTokens, removeExpiredTokens, removePasswordToken, removeTempUser, resendInvitation, resetPassword, resetTempSignup, resetTempSignup, searchTempUsers, sendResetPasswordMail, sendSignupConfirmMail, sendSignupValidatedMail, signup, 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
-
Constructor Details
-
UserSignupManager
public UserSignupManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classUserSignupManager
- Throws:
ServiceException
-
temporarySignup
public void temporarySignup(String siteName, String language, String email, String population, String userDirectoryId) throws UserManagementException Description copied from class:UserSignupManager
Validate and store a sign-up request and send a confirmation e-mail.- Overrides:
temporarySignup
in classUserSignupManager
- Parameters:
siteName
- the site name.language
- the sitemap name.email
- the user e-mail address.population
- the populationuserDirectoryId
- the id of the user directory of the population- Throws:
UserManagementException
- if an error occurs.
-
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.
-
isPublicSignupAllowed
Description copied from class:UserSignupManager
Test if public signup is allowed in a site.- Overrides:
isPublicSignupAllowed
in classUserSignupManager
- Parameters:
siteName
- the site to test.- Returns:
- true if public signup is allowed, false otherwise.
-
getSignupPage
Description copied from class:UserSignupManager
Get the sign-up page in a given site and sitemap.
If more than one page are tagged "sign-up", return the first.- Overrides:
getSignupPage
in classUserSignupManager
- Parameters:
siteName
- the site name.language
- the sitemap name.- Returns:
- the sign-up page or null if not found.
-
getSignupPages
Description copied from class:UserSignupManager
Get all the pages tagged "sign-up" with signup service- Overrides:
getSignupPages
in classUserSignupManager
- Parameters:
siteName
- the site name.language
- the sitemap name.- Returns:
- an iterable on all the pages tagged "sign-up".
-
getPwdChangePage
Description copied from class:UserSignupManager
Get the password change page in a given site and sitemap. If more than one page are tagged "password change", return the first.- Overrides:
getPwdChangePage
in classUserSignupManager
- Parameters:
siteName
- the site name.language
- the sitemap name.- Returns:
- the password change page or null if not found.
-
getPwdChangePages
Description copied from class:UserSignupManager
Get all the pages tagged "password change".- Overrides:
getPwdChangePages
in classUserSignupManager
- Parameters:
siteName
- the site name.language
- the sitemap name.- Returns:
- an iterable on all the pages tagged "password change".
-