Class AccountInfoController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractAccountController
-
- org.duracloud.account.app.controller.AccountInfoController
-
@Controller @Lazy public class AccountInfoController extends AbstractAccountController
- Author:
- Daniel Bernstein
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_DETAILS_VIEW_IDstatic StringACCOUNT_INFO_EDIT_IDstatic StringEDIT_ACCOUNT_INFO_FORM_KEYstatic StringINFO_EDIT_MAPPING-
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 AccountInfoController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndVieweditInfo(Long accountId, AccountEditForm accountEditForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model)StringgetEditForm(Long accountId, org.springframework.ui.Model model)-
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_INFO_EDIT_ID
public static final String ACCOUNT_INFO_EDIT_ID
- See Also:
- Constant Field Values
-
EDIT_ACCOUNT_INFO_FORM_KEY
public static final String EDIT_ACCOUNT_INFO_FORM_KEY
- See Also:
- Constant Field Values
-
INFO_EDIT_MAPPING
public static final String INFO_EDIT_MAPPING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEditForm
@RequestMapping(value="/byid/{accountId}/details/edit", method=GET) public String getEditForm(@PathVariable Long accountId, org.springframework.ui.Model model) throws AccountNotFoundException- Throws:
AccountNotFoundException
-
editInfo
@Transactional @RequestMapping(value="/byid/{accountId}/details/edit", method=POST) public org.springframework.web.servlet.ModelAndView editInfo(@PathVariable Long accountId, @ModelAttribute("accountInfoEditForm") AccountEditForm accountEditForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) throws AccountNotFoundException, DBNotFoundException
-
-