Class AccountsController


  • @Controller
    @RequestMapping("/root/accounts")
    public class AccountsController
    extends AbstractRootController
    Author:
    Daniel Bernstein Date: Feb 27, 2012
    • Constructor Detail

      • AccountsController

        public AccountsController()
    • Method Detail

      • get

        @RequestMapping("")
        public org.springframework.web.servlet.ModelAndView get()
      • delete

        @RequestMapping(value="/byid/{id}/delete",
                        method=POST)
        @Transactional
        public org.springframework.web.servlet.ModelAndView delete​(@PathVariable
                                                                   Long id,
                                                                   org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                                            throws AccountNotFoundException
        Throws:
        AccountNotFoundException
      • activate

        @RequestMapping(value="/byid/{id}/activate",
                        method=POST)
        @Transactional
        public org.springframework.web.servlet.ModelAndView activate​(@PathVariable
                                                                     Long id,
                                                                     org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                                              throws AccountNotFoundException
        Throws:
        AccountNotFoundException
      • deactivate

        @RequestMapping(value="/byid/{id}/deactivate",
                        method=POST)
        @Transactional
        public org.springframework.web.servlet.ModelAndView deactivate​(@PathVariable
                                                                       Long id,
                                                                       org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                                                throws AccountNotFoundException
        Throws:
        AccountNotFoundException
      • getSetupAccount

        @RequestMapping(value="/byid/{id}/setup",
                        method=GET)
        public String getSetupAccount​(@PathVariable
                                      Long id,
                                      org.springframework.ui.Model model)
                               throws Exception
        Throws:
        Exception
      • setupAccount

        @RequestMapping(value="/byid/{id}/setup",
                        method=POST)
        @Transactional
        public org.springframework.web.servlet.ModelAndView setupAccount​(@PathVariable
                                                                         Long id,
                                                                         @ModelAttribute("setupAccountForm")
                                                                         AccountSetupForm accountSetupForm,
                                                                         org.springframework.validation.BindingResult result,
                                                                         org.springframework.ui.Model model,
                                                                         org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                                                  throws Exception
        Throws:
        Exception
      • setAmaEndpoint

        public void setAmaEndpoint​(org.duracloud.account.config.AmaEndpoint amaEndpoint)