Class RootUsersController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractRootController
-
- org.duracloud.account.app.controller.RootUsersController
-
@Controller @Lazy @RequestMapping("/root/rootusers") public class RootUsersController extends AbstractRootControllerThis controller adds support for managing root users.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_MAPPINGstatic StringEDIT_ACCOUNT_ROOT_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 RootUsersController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndViewget()protected DuracloudUserServicegetUserService()org.springframework.web.servlet.ModelAndViewsetRootUser(UsernameForm usernameForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)voidsetUserService(DuracloudUserService userService)org.springframework.web.servlet.ModelAndViewunsetRootUser(Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)UsernameFormusernameForm()-
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, getRecaptchaSecret, getRecaptchaSiteKey, getUserRole, handleException, init, isRecaptchaEnabled, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRights, validateRecaptcha
-
-
-
-
Field Detail
-
BASE_MAPPING
public static final String BASE_MAPPING
- See Also:
- Constant Field Values
-
EDIT_ACCOUNT_ROOT_USERS_FORM_KEY
public static final String EDIT_ACCOUNT_ROOT_USERS_FORM_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
usernameForm
@ModelAttribute("usernameForm") public UsernameForm usernameForm()
-
get
@RequestMapping("") public org.springframework.web.servlet.ModelAndView get()
-
setRootUser
@Transactional @RequestMapping(value="/set-root", method=POST) public org.springframework.web.servlet.ModelAndView setRootUser(@ModelAttribute("usernameForm") UsernameForm usernameForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception- Throws:
Exception
-
unsetRootUser
@Transactional @RequestMapping(value="/byid/{id}/unset-root", method=POST) public org.springframework.web.servlet.ModelAndView unsetRootUser(@PathVariable Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception- Throws:
Exception
-
getUserService
protected DuracloudUserService getUserService()
-
setUserService
public void setUserService(DuracloudUserService userService)
-
-