Class AbstractAccountController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractAccountController
-
- Direct Known Subclasses:
AccountController,AccountDetailsController,AccountGroupsController,AccountInfoController,AccountUsersController,ProviderController
@Lazy @RequestMapping("/accounts") public abstract class AbstractAccountController extends AbstractControllerThe default view for this application
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_HOMEstatic StringACCOUNT_INFO_KEYstatic StringACCOUNT_PATHprotected AccountManagerServiceaccountManagerServicestatic StringACCOUNTS_PATHstatic StringACTION_STATUSstatic StringDC_VERSIONS_KEYstatic StringEDIT_PATHstatic StringNEW_ACCOUNT_VIEWstatic StringSTATEMENT_PATHprotected DuracloudUserServiceuserService-
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 AbstractAccountController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAccountInfoToModel(org.duracloud.account.db.model.AccountInfo info, org.springframework.ui.Model model)protected voidaddAccountOwnersToModel(List<org.duracloud.account.db.model.DuracloudUser> owners, org.springframework.ui.Model model)protected voidaddUserToModel(org.springframework.ui.Model model)protected org.springframework.web.servlet.ModelAndViewcreateAccountRedirectModelAndView(Long accountId, String suffix)protected org.springframework.web.servlet.ViewcreateAccountRedirectView(Long accountId, String suffix)AccountManagerServicegetAccountManagerService()protected org.duracloud.account.db.model.DuracloudUsergetUser()DuracloudUserServicegetUserService()protected org.duracloud.account.db.model.AccountInfoloadAccountInfo(Long accountId, org.springframework.ui.Model model)protected org.duracloud.account.db.model.AccountInfoloadAccountInfo(AccountService accountService, org.springframework.ui.Model model)protected voidloadBillingInfo(Long accountId, org.springframework.ui.Model model)protected voidloadProviderInfo(Long accountId, org.springframework.ui.Model model)voidsetAccountManagerService(AccountManagerService accountManagerService)voidsetUserService(DuracloudUserService userService)-
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
-
ACCOUNTS_PATH
public static final String ACCOUNTS_PATH
- See Also:
- Constant Field Values
-
ACCOUNT_PATH
public static final String ACCOUNT_PATH
- See Also:
- Constant Field Values
-
EDIT_PATH
public static final String EDIT_PATH
- See Also:
- Constant Field Values
-
STATEMENT_PATH
public static final String STATEMENT_PATH
- See Also:
- Constant Field Values
-
ACCOUNT_INFO_KEY
public static final String ACCOUNT_INFO_KEY
- See Also:
- Constant Field Values
-
DC_VERSIONS_KEY
public static final String DC_VERSIONS_KEY
- See Also:
- Constant Field Values
-
ACTION_STATUS
public static final String ACTION_STATUS
- See Also:
- Constant Field Values
-
accountManagerService
@Autowired(required=true) protected AccountManagerService accountManagerService
-
userService
@Autowired(required=true) protected DuracloudUserService userService
-
NEW_ACCOUNT_VIEW
public static final String NEW_ACCOUNT_VIEW
- See Also:
- Constant Field Values
-
ACCOUNT_HOME
public static final String ACCOUNT_HOME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccountManagerService
public AccountManagerService getAccountManagerService()
-
setAccountManagerService
public void setAccountManagerService(AccountManagerService accountManagerService)
-
getUserService
public DuracloudUserService getUserService()
-
setUserService
public void setUserService(DuracloudUserService userService)
-
addAccountInfoToModel
protected void addAccountInfoToModel(org.duracloud.account.db.model.AccountInfo info, org.springframework.ui.Model model)
-
addAccountOwnersToModel
protected void addAccountOwnersToModel(List<org.duracloud.account.db.model.DuracloudUser> owners, org.springframework.ui.Model model) throws AccountNotFoundException
- Throws:
AccountNotFoundException
-
loadAccountInfo
protected org.duracloud.account.db.model.AccountInfo loadAccountInfo(Long accountId, org.springframework.ui.Model model) throws AccountNotFoundException
- Parameters:
accountId-model-- Throws:
AccountNotFoundException
-
loadAccountInfo
protected org.duracloud.account.db.model.AccountInfo loadAccountInfo(AccountService accountService, org.springframework.ui.Model model)
-
createAccountRedirectModelAndView
protected org.springframework.web.servlet.ModelAndView createAccountRedirectModelAndView(Long accountId, String suffix)
- Parameters:
accountId-suffix-- Returns:
-
createAccountRedirectView
protected org.springframework.web.servlet.View createAccountRedirectView(Long accountId, String suffix)
- Parameters:
accountId-suffix-- Returns:
-
loadBillingInfo
protected void loadBillingInfo(Long accountId, org.springframework.ui.Model model)
-
loadProviderInfo
protected void loadProviderInfo(Long accountId, org.springframework.ui.Model model) throws AccountNotFoundException
- Throws:
AccountNotFoundException
-
addUserToModel
protected void addUserToModel(org.springframework.ui.Model model) throws DBNotFoundException- Throws:
DBNotFoundException
-
getUser
protected org.duracloud.account.db.model.DuracloudUser getUser() throws DBNotFoundException- Returns:
- Throws:
DBNotFoundException
-
-