Class UsersController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractRootController
-
- org.duracloud.account.app.controller.UsersController
-
@Controller @RequestMapping("/root/users") public class UsersController extends AbstractRootController- Author:
- Daniel Bernstein Date: Feb 17, 2012
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_MAPPINGstatic StringEDIT_ACCOUNT_USERS_FORM_KEY-
Fields inherited from class org.duracloud.account.app.controller.AbstractController
BY_ID_DELETE_MAPPING, BY_ID_EDIT_MAPPING, BY_ID_MAPPING, EDIT_MAPPING, log, NEW_MAPPING, USER_MAPPING, USERS_MAPPING
-
-
Constructor Summary
Constructors Constructor Description UsersController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndViewchangeUserRole(Long userId, AccountUserEditForm accountUserEditForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)StringcreateList(javax.servlet.http.HttpServletResponse response)org.springframework.web.servlet.ModelAndViewdeleteUser(Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ModelAndViewget()protected DuracloudUserServicegetUserService()org.springframework.web.servlet.ModelAndViewresetUsersPassword(Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ModelAndViewrevokeUserRightsFromAccount(Long userId, Long accountId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)voidsetUserService(DuracloudUserService userService)-
Methods inherited from class org.duracloud.account.app.controller.AbstractRootController
getAccountManagerService, getBaseView, getRootAccountManagerService, setAccountManagerService, setRootAccountManagerService
-
Methods inherited from class org.duracloud.account.app.controller.AbstractController
accountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getUserRole, handleException, init, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRights
-
-
-
-
Field Detail
-
BASE_MAPPING
public static final String BASE_MAPPING
- See Also:
- Constant Field Values
-
EDIT_ACCOUNT_USERS_FORM_KEY
public static final String EDIT_ACCOUNT_USERS_FORM_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
@RequestMapping("") public org.springframework.web.servlet.ModelAndView get()
-
resetUsersPassword
@Transactional @RequestMapping(value="/byid/{id}/reset", method=POST) public org.springframework.web.servlet.ModelAndView resetUsersPassword(@PathVariable Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception- Throws:
Exception
-
deleteUser
@Transactional @RequestMapping(value="/byid/{id}/delete", method=POST) public org.springframework.web.servlet.ModelAndView deleteUser(@PathVariable Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception- Throws:
Exception
-
revokeUserRightsFromAccount
@Transactional @RequestMapping(value="/byid/{id}/revoke", method=POST) public org.springframework.web.servlet.ModelAndView revokeUserRightsFromAccount(@PathVariable("id") Long userId, @RequestParam(required=true) Long accountId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception- Throws:
Exception
-
changeUserRole
@Transactional @RequestMapping(value="/byid/{id}/changerole", method=POST) public org.springframework.web.servlet.ModelAndView changeUserRole(@PathVariable("id") Long userId, @ModelAttribute AccountUserEditForm accountUserEditForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception- Throws:
Exception
-
createList
@RequestMapping(value="create-list", method=GET) public String createList(javax.servlet.http.HttpServletResponse response) throws Exception- Throws:
Exception
-
getUserService
protected DuracloudUserService getUserService()
-
setUserService
public void setUserService(DuracloudUserService userService)
-
-