Class AccountDetailsController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractAccountController
-
- org.duracloud.account.app.controller.AccountDetailsController
-
@Controller @Lazy public class AccountDetailsController extends AbstractAccountController
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_DETAILS_MAPPINGstatic StringACCOUNT_DETAILS_PATHstatic StringACCOUNT_DETAILS_VIEW_ID-
Fields inherited from class org.duracloud.account.app.controller.AbstractAccountController
ACCOUNT_HOME, ACCOUNT_INFO_KEY, ACCOUNT_PATH, accountManagerService, ACCOUNTS_PATH, ACTION_STATUS, DC_VERSIONS_KEY, EDIT_PATH, NEW_ACCOUNT_VIEW, STATEMENT_PATH, userService
-
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 AccountDetailsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndViewaddProvider(Long accountId, ProviderForm providerForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model)Stringget(Long accountId, org.springframework.ui.Model model)org.springframework.web.servlet.ViewmakePrimary(Long accountId, String providerType, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)org.springframework.web.servlet.ViewremoveProvider(Long accountId, String providerType, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)-
Methods inherited from class org.duracloud.account.app.controller.AbstractAccountController
addAccountInfoToModel, addAccountOwnersToModel, addUserToModel, createAccountRedirectModelAndView, createAccountRedirectView, getAccountManagerService, getUser, getUserService, loadAccountInfo, loadAccountInfo, loadBillingInfo, loadProviderInfo, setAccountManagerService, setUserService
-
Methods 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 Detail
-
ACCOUNT_DETAILS_VIEW_ID
public static final String ACCOUNT_DETAILS_VIEW_ID
- See Also:
- Constant Field Values
-
ACCOUNT_DETAILS_PATH
public static final String ACCOUNT_DETAILS_PATH
- See Also:
- Constant Field Values
-
ACCOUNT_DETAILS_MAPPING
public static final String ACCOUNT_DETAILS_MAPPING
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
@RequestMapping(value="/byid/{accountId}/details", method=GET) public String get(@PathVariable Long accountId, org.springframework.ui.Model model) throws AccountNotFoundException, DBNotFoundException
-
addProvider
@RequestMapping(value="/byid/{accountId}/details/providers/add", method=POST) @Transactional public org.springframework.web.servlet.ModelAndView addProvider(@PathVariable Long accountId, @ModelAttribute("providerForm") ProviderForm providerForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) throws AccountNotFoundException- Throws:
AccountNotFoundException
-
removeProvider
@RequestMapping(value="/byid/{accountId}/details/providers/{providerType}/remove", method=POST) @Transactional public org.springframework.web.servlet.View removeProvider(@PathVariable Long accountId, @PathVariable String providerType, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws AccountNotFoundException- Throws:
AccountNotFoundException
-
makePrimary
@RequestMapping(value="/byid/{accountId}/details/providers/{providerType}/make-primary", method=POST) @Transactional public org.springframework.web.servlet.View makePrimary(@PathVariable Long accountId, @PathVariable String providerType, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws AccountNotFoundException- Throws:
AccountNotFoundException
-
-