Class RootUsersController


  • @Controller
    @Lazy
    @RequestMapping("/root/rootusers")
    public class RootUsersController
    extends AbstractRootController
    This controller adds support for managing root users.
    • Constructor Detail

      • RootUsersController

        public RootUsersController()
    • 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