BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.user.controller.SaveAccountController Class Reference

Public Member Functions

 SaveAccountController ()
 
String setupForm (@RequestParam(value="user_id", required=false) String userId, ModelMap model)
 
String processSubmit (HttpServletRequest request, ModelMap model, @ModelAttribute("user_account") User user, BindingResult result)
 
List< String > getRoles ()
 
void setUserManager (IUserManager userManager)
 
void setRoleManager (IRoleManager roleManager)
 
void setValidator (AccountValidator validator)
 
void setMessages (MessageResourceUtil messages)
 
IAuthorizationManager getAuthorizationManager ()
 
void setAuthorizationManager (IAuthorizationManager authorizationManager)
 

Detailed Description

Allows to configure new user account or to modify an existing one.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.1
Since
0.1.6

Constructor & Destructor Documentation

◆ SaveAccountController()

eu.baltrad.dex.user.controller.SaveAccountController.SaveAccountController ( )
inline

Constructor.

Member Function Documentation

◆ getRoles()

List< String > eu.baltrad.dex.user.controller.SaveAccountController.getRoles ( )
inline

Creates list of roles.

Returns
List of roles

◆ processSubmit()

String eu.baltrad.dex.user.controller.SaveAccountController.processSubmit ( HttpServletRequest request,
ModelMap model,
@ModelAttribute("user_account") User user,
BindingResult result )
inline

Save user account.

Parameters
accountUser account
requestHTTP servlet request
resultForm binding result
modelModel map
Returns
View name

◆ setMessages()

void eu.baltrad.dex.user.controller.SaveAccountController.setMessages ( MessageResourceUtil messages)
inline
Parameters
messagesthe messages to set

◆ setRoleManager()

void eu.baltrad.dex.user.controller.SaveAccountController.setRoleManager ( IRoleManager roleManager)
inline
Parameters
roleManagerthe roleManager to set

◆ setupForm()

String eu.baltrad.dex.user.controller.SaveAccountController.setupForm ( @RequestParam(value="user_id", required=false) String userId,
ModelMap model )
inline

Load form backing object.

Parameters
userIdUser id
modelModel map
Returns
Form view name

◆ setUserManager()

void eu.baltrad.dex.user.controller.SaveAccountController.setUserManager ( IUserManager userManager)
inline
Parameters
userManager

◆ setValidator()

void eu.baltrad.dex.user.controller.SaveAccountController.setValidator ( AccountValidator validator)
inline
Parameters
validatorthe validator to set

The documentation for this class was generated from the following file: