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
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.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.ModelAndVieworg.springframework.web.servlet.ModelAndViewget()getSetupAccount(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, 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:
-
ACCOUNT_SETUP_MAPPING
- See Also:
-
-
Constructor Details
-
AccountsController
public AccountsController()
-
-
Method Details
-
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)
-