@Controller public class ManageUsersController extends Object
| Constructor and Description |
|---|
ManageUsersController() |
| Modifier and Type | Method and Description |
|---|---|
String |
deleteUser(Long userId) |
String |
editUser(org.springframework.ui.Model model,
Long userId,
EditUserCommand command,
org.springframework.validation.BindingResult errors) |
void |
manageUsers(org.springframework.ui.Model model) |
void |
setUserService(UserService userService) |
String |
showEditUserForm(org.springframework.ui.Model model,
Long userId,
EditUserCommand command) |
@Autowired public void setUserService(UserService userService)
@RequestMapping(value="/manageUsers") public void manageUsers(org.springframework.ui.Model model)
@RequestMapping(value="/editUser",
method=GET)
public String showEditUserForm(org.springframework.ui.Model model,
@RequestParam
Long userId,
@ModelAttribute
EditUserCommand command)
@RequestMapping(value="/editUser",
method=POST)
public String editUser(org.springframework.ui.Model model,
@RequestParam
Long userId,
@ModelAttribute
EditUserCommand command,
org.springframework.validation.BindingResult errors)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.