|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.web.controller.UsersController
@Controller @RequestMapping(value="/admin/users/*.htm") @SessionAttributes(value="user") public class UsersController
The controller for the various user views
| Constructor Summary | |
|---|---|
UsersController(UserService userService)
Constructor |
|
| Method Summary | |
|---|---|
String |
changePassword(User user,
String confirmNewPassword,
org.springframework.ui.ModelMap model,
org.springframework.validation.BindingResult result)
Accepts submission of the changePassword form |
String |
createUser(org.springframework.ui.ModelMap model,
User user,
org.springframework.validation.BindingResult result)
Accepts submission of the createUser form |
String |
deleteUser(String username,
org.springframework.ui.ModelMap model)
Delete a existing user |
String |
disableUser(String username,
org.springframework.ui.ModelMap model)
Disable an existing user |
String |
enableUser(String username,
org.springframework.ui.ModelMap model)
Enable an existing user |
String |
grantAuthority(String username,
String authority,
org.springframework.ui.ModelMap model)
Grant a new authority to an existing user |
String |
listUsers(org.springframework.ui.ModelMap model)
List the users known to the system |
String |
revokeAuthority(String username,
String authority,
org.springframework.ui.ModelMap model)
Revoke an authority from a existing user |
String |
viewUser(String username,
org.springframework.ui.ModelMap model)
List the users known to the system |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UsersController(UserService userService)
userService - - The user service to use| Method Detail |
|---|
@RequestMapping(value="list.htm") public String listUsers(org.springframework.ui.ModelMap model)
model - - The model (map)
@RequestMapping(value="createUser.htm",
method=POST)
public String createUser(org.springframework.ui.ModelMap model,
@ModelAttribute(value="user")
User user,
org.springframework.validation.BindingResult result)
model - - The model (map)user - - The user we're trying to createresult - - The result
@RequestMapping(value="view.htm",
method=GET)
public String viewUser(@RequestParam(value="username")
String username,
org.springframework.ui.ModelMap model)
username - - The name of the user we're trying to viewmodel - - The model (map)
@RequestMapping(value="changePassword.htm",
method=POST)
public String changePassword(@ModelAttribute(value="user")
User user,
@RequestParam(value="confirm_password")
String confirmNewPassword,
org.springframework.ui.ModelMap model,
org.springframework.validation.BindingResult result)
user - - The user we're changing the password forconfirmNewPassword - - The password again, for confirmationmodel - - The model (map)result - - The binding result
@RequestMapping(value="grantAuthority.htm",
method=POST)
public String grantAuthority(@RequestParam(value="username")
String username,
@RequestParam(value="authority")
String authority,
org.springframework.ui.ModelMap model)
username - - The name of the user we're granting authority toauthority - - The authority we're granting the usermodel - - The model (map)
@RequestMapping(value="revokeAuthority.htm",
method=POST)
public String revokeAuthority(@RequestParam(value="username")
String username,
@RequestParam(value="authority")
String authority,
org.springframework.ui.ModelMap model)
username - - The name of the user we're revoking authority fromauthority - - The authority we're revoking from the usermodel - - The model (map)
@RequestMapping(value="delete.htm",
method=POST)
public String deleteUser(@RequestParam(value="username")
String username,
org.springframework.ui.ModelMap model)
username - - The name of the user we're deletingmodel - - The model (map)
@RequestMapping(value="disable.htm",
method=POST)
public String disableUser(@RequestParam(value="username")
String username,
org.springframework.ui.ModelMap model)
username - - The name of the user we're disablingmodel - - The model (map)
@RequestMapping(value="enable.htm",
method=POST)
public String enableUser(@RequestParam(value="username")
String username,
org.springframework.ui.ModelMap model)
username - - The name of the user we're enablingmodel - - The model (map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||