Class AccountsController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractRootController
-
- org.duracloud.account.app.controller.AccountsController
-
@Controller @RequestMapping("/root/accounts") public class AccountsController extends AbstractRootController- Author:
- Daniel Bernstein Date: Feb 27, 2012
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_SETUP_MAPPINGstatic StringBASE_MAPPING-
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 AccountsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndViewactivate(Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ModelAndViewdeactivate(Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ModelAndViewdelete(Long id, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ModelAndViewget()StringgetSetupAccount(Long id, org.springframework.ui.Model model)voidsetAmaEndpoint(org.duracloud.account.config.AmaEndpoint amaEndpoint)org.springframework.web.servlet.ModelAndViewsetupAccount(Long id, AccountSetupForm accountSetupForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)-
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, getUserRole, handleException, init, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRights
-
-
-
-
Field Detail
-
BASE_MAPPING
public static final String BASE_MAPPING
- See Also:
- Constant Field Values
-
ACCOUNT_SETUP_MAPPING
public static final String ACCOUNT_SETUP_MAPPING
- See Also:
- Constant Field Values
-
-
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)
-
-