@Lazy @RequestMapping(value="/accounts") public abstract class AbstractAccountController extends AbstractController
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_HOME |
static String |
ACCOUNT_INFO_KEY |
static String |
ACCOUNT_PATH |
protected AccountManagerService |
accountManagerService |
static String |
ACCOUNTS_PATH |
static String |
ACTION_STATUS |
static String |
DC_VERSIONS_KEY |
static String |
EDIT_PATH |
static String |
INSTANCE_AVAILABLE_PATH |
static String |
INSTANCE_INFO_KEY |
static String |
INSTANCE_PATH |
static String |
INSTANCE_REINIT_PATH |
static String |
INSTANCE_REINIT_USERS_PATH |
static String |
INSTANCE_RESTART_PATH |
static String |
INSTANCE_START_PATH |
static String |
INSTANCE_STATUS_KEY |
static String |
INSTANCE_STOP_PATH |
static String |
INSTANCE_UPGRADE_PATH |
protected DuracloudInstanceManagerService |
instanceManagerService |
static String |
NEW_ACCOUNT_VIEW |
static String |
SERVER_DETAILS_KEY |
static String |
STATEMENT_PATH |
protected DuracloudUserService |
userService |
BY_ID_DELETE_MAPPING, BY_ID_EDIT_MAPPING, BY_ID_MAPPING, EDIT_MAPPING, log, NEW_MAPPING, USER_MAPPING, USERS_MAPPING| Constructor and Description |
|---|
AbstractAccountController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAccountInfoToModel(org.duracloud.account.db.model.AccountInfo info,
org.duracloud.account.db.model.ServerDetails serverDetails,
org.springframework.ui.Model model) |
protected void |
addAccountOwnersToModel(List<org.duracloud.account.db.model.DuracloudUser> owners,
org.springframework.ui.Model model) |
protected void |
addUserToModel(org.springframework.ui.Model model) |
protected org.springframework.web.servlet.ModelAndView |
createAccountRedirectModelAndView(Long accountId,
String suffix) |
protected org.springframework.web.servlet.View |
createAccountRedirectView(Long accountId,
String suffix) |
AccountManagerService |
getAccountManagerService() |
protected org.duracloud.account.db.model.DuracloudUser |
getUser() |
DuracloudUserService |
getUserService() |
protected org.duracloud.account.db.model.AccountInfo |
loadAccountInfo(AccountService accountService,
org.springframework.ui.Model model) |
protected org.duracloud.account.db.model.AccountInfo |
loadAccountInfo(Long accountId,
org.springframework.ui.Model model) |
protected void |
loadBillingInfo(Long accountId,
org.springframework.ui.Model model) |
protected void |
loadProviderInfo(Long accountId,
org.springframework.ui.Model model) |
void |
setAccountManagerService(AccountManagerService accountManagerService) |
void |
setInstanceManagerService(DuracloudInstanceManagerService instanceManagerService) |
protected void |
setProviderRrs(Long accountId,
boolean rrs) |
void |
setUserService(DuracloudUserService userService) |
accountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getUserRole, handleException, init, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRightspublic static final String ACCOUNTS_PATH
public static final String ACCOUNT_PATH
public static final String EDIT_PATH
public static final String STATEMENT_PATH
public static final String INSTANCE_PATH
public static final String INSTANCE_REINIT_USERS_PATH
public static final String INSTANCE_REINIT_PATH
public static final String INSTANCE_RESTART_PATH
public static final String INSTANCE_STOP_PATH
public static final String INSTANCE_UPGRADE_PATH
public static final String INSTANCE_START_PATH
public static final String INSTANCE_AVAILABLE_PATH
public static final String ACCOUNT_INFO_KEY
public static final String SERVER_DETAILS_KEY
public static final String INSTANCE_INFO_KEY
public static final String INSTANCE_STATUS_KEY
public static final String DC_VERSIONS_KEY
public static final String ACTION_STATUS
@Autowired(required=true) protected AccountManagerService accountManagerService
@Autowired(required=true) protected DuracloudInstanceManagerService instanceManagerService
@Autowired(required=true) protected DuracloudUserService userService
public static final String NEW_ACCOUNT_VIEW
public static final String ACCOUNT_HOME
public AccountManagerService getAccountManagerService()
public void setAccountManagerService(AccountManagerService accountManagerService)
public void setInstanceManagerService(DuracloudInstanceManagerService instanceManagerService)
public DuracloudUserService getUserService()
public void setUserService(DuracloudUserService userService)
protected void addAccountInfoToModel(org.duracloud.account.db.model.AccountInfo info,
org.duracloud.account.db.model.ServerDetails serverDetails,
org.springframework.ui.Model model)
protected void addAccountOwnersToModel(List<org.duracloud.account.db.model.DuracloudUser> owners, org.springframework.ui.Model model) throws AccountNotFoundException
AccountNotFoundExceptionprotected org.duracloud.account.db.model.AccountInfo loadAccountInfo(Long accountId, org.springframework.ui.Model model) throws AccountNotFoundException
accountId - model - AccountNotFoundExceptionprotected org.duracloud.account.db.model.AccountInfo loadAccountInfo(AccountService accountService, org.springframework.ui.Model model)
protected org.springframework.web.servlet.ModelAndView createAccountRedirectModelAndView(Long accountId, String suffix)
accountId - suffix - protected org.springframework.web.servlet.View createAccountRedirectView(Long accountId, String suffix)
accountId - suffix - protected void loadBillingInfo(Long accountId, org.springframework.ui.Model model)
protected void loadProviderInfo(Long accountId, org.springframework.ui.Model model) throws AccountNotFoundException
AccountNotFoundExceptionprotected void addUserToModel(org.springframework.ui.Model model)
throws DBNotFoundException
DBNotFoundExceptionprotected org.duracloud.account.db.model.DuracloudUser getUser()
throws DBNotFoundException
DBNotFoundExceptionprotected void setProviderRrs(Long accountId, boolean rrs) throws AccountNotFoundException
AccountNotFoundExceptionCopyright © 2009–2015 DuraSpace. All rights reserved.