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, _workflowNameFields 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_TYPEFields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadditionalSignupOperations(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 servicebooleanisPublicSignupAllowed(String siteName) Test if public signup is allowed in a site.voidservice(ServiceManager serviceManager) voidtemporarySignup(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, validationBeforeSignupMethods 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, validatePasswordMethods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_configureDatasource, _getDataSourceId, _getMyBatisConfiguration, getSession, getSession, reload, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
UserSignupManager
public UserSignupManager()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classUserSignupManager- Throws:
ServiceException
-
temporarySignup
public void temporarySignup(String siteName, String language, String email, String population, String userDirectoryId) throws UserManagementException Description copied from class:UserSignupManagerValidate and store a sign-up request and send a confirmation e-mail.- Overrides:
temporarySignupin 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:UserSignupManagerProcess additional operations after creation of user- Overrides:
additionalSignupOperationsin 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:UserSignupManagerTest if public signup is allowed in a site.- Overrides:
isPublicSignupAllowedin classUserSignupManager- Parameters:
siteName- the site to test.- Returns:
- true if public signup is allowed, false otherwise.
-
getSignupPage
Description copied from class:UserSignupManagerGet the sign-up page in a given site and sitemap.
If more than one page are tagged "sign-up", return the first.- Overrides:
getSignupPagein 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:UserSignupManagerGet all the pages tagged "sign-up" with signup service- Overrides:
getSignupPagesin 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:UserSignupManagerGet the password change page in a given site and sitemap. If more than one page are tagged "password change", return the first.- Overrides:
getPwdChangePagein 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:UserSignupManagerGet all the pages tagged "password change".- Overrides:
getPwdChangePagesin classUserSignupManager- Parameters:
siteName- the site name.language- the sitemap name.- Returns:
- an iterable on all the pages tagged "password change".
-