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 AbstractRootController
This controller adds support for managing root users.
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewget()protected DuracloudUserServiceorg.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) Methods inherited from class org.duracloud.account.app.controller.AbstractRootController
getAccountManagerService, getBaseView, getRootAccountManagerService, setAccountManagerService, setRootAccountManagerServiceMethods 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 Details
-
BASE_MAPPING
- See Also:
-
EDIT_ACCOUNT_ROOT_USERS_FORM_KEY
- See Also:
-
-
Constructor Details
-
RootUsersController
public RootUsersController()
-
-
Method Details
-
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
-
setUserService
-