Class AccountUsersController


@Controller @Lazy public class AccountUsersController extends AbstractAccountController
  • Field Details

  • Constructor Details

    • AccountUsersController

      public AccountUsersController()
  • Method Details

    • invitationForm

      @ModelAttribute("invitationForm") public InvitationForm invitationForm()
    • usernameForm

      @ModelAttribute("usernameForm") public UsernameForm usernameForm()
    • accountUserEditForm

      @ModelAttribute("accountUsersEditForm") public AccountUserEditForm accountUserEditForm()
    • get

      @RequestMapping(value="/byid/{accountId}/users", method=GET) public String get(@PathVariable Long accountId, org.springframework.ui.Model model) throws Exception
      Parameters:
      accountId -
      model -
      Returns:
      Throws:
      AccountNotFoundException
      Exception
    • addUser

      @Transactional @RequestMapping(value="/byid/{accountId}/users/adduser", method=POST) public org.springframework.web.servlet.ModelAndView addUser(@PathVariable Long accountId, @ModelAttribute("usernameForm") UsernameForm usernameForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception
      Throws:
      Exception
    • get

      protected String get(AccountService accountService, org.springframework.ui.Model model) throws Exception
      Throws:
      Exception
    • sendInvitations

      @Transactional @RequestMapping(value="/byid/{accountId}/users", method=POST) public org.springframework.web.servlet.ModelAndView sendInvitations(@PathVariable Long accountId, @ModelAttribute("invitationForm") InvitationForm invitationForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception
      Throws:
      Exception
    • deleteUserInvitation

      @Transactional @RequestMapping(value="/byid/{accountId}/users/invitations/byid/{invitationId}/delete", method=POST) public org.springframework.web.servlet.ModelAndView deleteUserInvitation(@PathVariable Long accountId, @PathVariable Long invitationId, org.springframework.ui.Model model) throws Exception
      Throws:
      Exception
    • deleteUserFromAccount

      @Transactional @RequestMapping(value="/byid/{accountId}/users/byid/{userId}/delete", method=POST) public org.springframework.web.servlet.ModelAndView deleteUserFromAccount(@PathVariable Long accountId, @PathVariable Long userId, org.springframework.ui.Model model) throws Exception
      Throws:
      Exception
    • getEditUserForm

      @RequestMapping(value="/byid/{accountId}/users/byid/{userId}/edit", method=GET) public String getEditUserForm(@PathVariable Long accountId, @PathVariable Long userId, org.springframework.ui.Model model) throws Exception
      Throws:
      Exception
    • editUser

      @Transactional @RequestMapping(value="/byid/{accountId}/users/byid/{userId}/edit", method=POST) public org.springframework.web.servlet.ModelAndView editUser(@PathVariable Long accountId, @PathVariable Long userId, @ModelAttribute("accountUsersEditForm") AccountUserEditForm accountUserEditForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception
      Throws:
      Exception