public class UserPasswordAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected RenderingContextHandler |
_renderingContextHandler
The rendering context handler.
|
protected UserSignupManager |
_userSignupManager
The user signup manager.
|
manager
EMPTY_MAP
Constructor and Description |
---|
UserPasswordAction() |
Modifier and Type | Method and Description |
---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected void |
changeUserPassword(Request request,
String siteName,
String token,
Multimap<String,I18nizableText> errors)
Sign-up the user: create a real user from his temporary information.
|
protected void |
checkPasswordToken(Request request,
String siteName,
String login,
String token,
String populationId,
Multimap<String,I18nizableText> errors)
Check that a token is valid.
|
protected void |
resetConnectedUserPassword(Request request,
String siteName,
String language,
Multimap<String,I18nizableText> errors)
Reset a connected user password.
|
protected void |
resetPassword(Request request,
String siteName,
String language,
Multimap<String,I18nizableText> errors)
Reset a user's sign-up request.
|
void |
service(ServiceManager serviceManager) |
protected void |
setGlobalError(UserSignupManager.LostPasswordError error,
Multimap<String,I18nizableText> errors,
String login,
String populationId)
Set the global error if there is one.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected UserSignupManager _userSignupManager
protected RenderingContextHandler _renderingContextHandler
protected CurrentUserProvider _currentUserProvider
public UserPasswordAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected void resetPassword(Request request, String siteName, String language, Multimap<String,I18nizableText> errors) throws UserManagementException
request
- the user request.siteName
- the site name.language
- the language.errors
- the Map to fill with errors to display to the user.UserManagementException
- if an error occurs.protected void resetConnectedUserPassword(Request request, String siteName, String language, Multimap<String,I18nizableText> errors) throws UserManagementException
request
- the user request.siteName
- the site name.language
- the language.errors
- the Map to fill with errors to display to the user.UserManagementException
- if an error occurs.protected void checkPasswordToken(Request request, String siteName, String login, String token, String populationId, Multimap<String,I18nizableText> errors) throws UserManagementException
request
- the user request.siteName
- the site name.login
- the user login.token
- the sign-up token that was sent to the user.populationId
- The id of the populationerrors
- the Map to fill with errors to display to the user.UserManagementException
- if an error occurs.protected void changeUserPassword(Request request, String siteName, String token, Multimap<String,I18nizableText> errors) throws UserManagementException
request
- the user request.siteName
- the site name.token
- the sign-up token that was sent to the user.errors
- the Map to fill with errors to display to the user.UserManagementException
- if an error occurs.protected void setGlobalError(UserSignupManager.LostPasswordError error, Multimap<String,I18nizableText> errors, String login, String populationId)
error
- The error to add (can be null)errors
- The errors maplogin
- The login of the user (can be null)populationId
- The population of the user (can be null)