@Controller @Lazy public class AccountController extends AbstractAccountController
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_ACCOUNT_FORM_KEY |
static String |
NEW_INSTANCE_FORM |
ACCOUNT_HOME, ACCOUNT_INFO_KEY, ACCOUNT_PATH, accountManagerService, ACCOUNTS_PATH, ACTION_STATUS, DC_VERSIONS_KEY, EDIT_PATH, INSTANCE_AVAILABLE_PATH, INSTANCE_INFO_KEY, INSTANCE_PATH, INSTANCE_REINIT_PATH, INSTANCE_REINIT_USERS_PATH, INSTANCE_RESTART_PATH, INSTANCE_START_PATH, INSTANCE_STATUS_KEY, INSTANCE_STOP_PATH, INSTANCE_UPGRADE_PATH, instanceManagerService, NEW_ACCOUNT_VIEW, SERVER_DETAILS_KEY, STATEMENT_PATH, userServiceBY_ID_DELETE_MAPPING, BY_ID_EDIT_MAPPING, BY_ID_MAPPING, EDIT_MAPPING, log, NEW_MAPPING, USER_MAPPING, USERS_MAPPING| Constructor and Description |
|---|
AccountController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
activate(Long accountId) |
org.springframework.web.servlet.ModelAndView |
deactivate(Long accountId,
org.springframework.ui.Model model) |
org.springframework.security.authentication.AuthenticationManager |
getAuthenticationManager() |
String |
getHome(Long accountId,
org.springframework.ui.Model model) |
String |
getInstance(Long accountId,
org.springframework.ui.Model model) |
String |
getStatement(Long accountId,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
instanceAvailable(Long accountId,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
reInitialize(Long accountId,
Long instanceId,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
org.springframework.web.servlet.ModelAndView |
reInitializeUserRoles(Long accountId,
Long instanceId,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
protected void |
restartInstance(Long instanceId) |
org.springframework.web.servlet.ModelAndView |
restartInstance(Long accountId,
Long instanceId,
org.springframework.ui.Model model) |
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager) |
org.springframework.web.servlet.ModelAndView |
startInstance(Long accountId,
AccountInstanceForm instanceForm,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
protected DuracloudInstanceService |
startInstance(Long accountId,
String version,
org.duracloud.account.db.model.InstanceType instanceType) |
protected void |
stopInstance(Long instanceId) |
org.springframework.web.servlet.ModelAndView |
stopInstance(Long accountId,
Long instanceId,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
upgradeInstance(Long accountId,
Long instanceId,
org.springframework.ui.Model model) |
addAccountInfoToModel, addAccountOwnersToModel, addUserToModel, createAccountRedirectModelAndView, createAccountRedirectView, getAccountManagerService, getUser, getUserService, loadAccountInfo, loadAccountInfo, loadBillingInfo, loadProviderInfo, setAccountManagerService, setInstanceManagerService, setProviderRrs, setUserServiceaccountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getUserRole, handleException, init, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRightspublic static final String NEW_ACCOUNT_FORM_KEY
public static final String NEW_INSTANCE_FORM
@RequestMapping(value="/byid/{accountId}",
method=GET)
public String getHome(@PathVariable
Long accountId,
org.springframework.ui.Model model)
throws AccountNotFoundException
AccountNotFoundException@RequestMapping(value="/byid/{accountId}/statement",
method=GET)
public String getStatement(@PathVariable
Long accountId,
org.springframework.ui.Model model)
throws AccountNotFoundException
AccountNotFoundException@RequestMapping(value="/byid/{accountId}/instance",
method=GET)
public String getInstance(@PathVariable
Long accountId,
org.springframework.ui.Model model)
throws AccountNotFoundException,
DBNotFoundException,
DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/instance/start",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView startInstance(@PathVariable
Long accountId,
@ModelAttribute(value="instanceForm")
AccountInstanceForm instanceForm,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/instance/available",
method=POST)
public org.springframework.web.servlet.ModelAndView instanceAvailable(@PathVariable
Long accountId,
org.springframework.ui.Model model)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
protected DuracloudInstanceService startInstance(Long accountId, String version, org.duracloud.account.db.model.InstanceType instanceType)
@RequestMapping(value="/byid/{accountId}/instance/byid/{instanceId}/upgrade",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView upgradeInstance(@PathVariable
Long accountId,
@PathVariable
Long instanceId,
org.springframework.ui.Model model)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/instance/byid/{instanceId}/restart",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView restartInstance(@PathVariable
Long accountId,
@PathVariable
Long instanceId,
org.springframework.ui.Model model)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
protected void restartInstance(Long instanceId) throws DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/instance/byid/{instanceId}/reinitusers",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView reInitializeUserRoles(@PathVariable
Long accountId,
@PathVariable
Long instanceId,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/instance/byid/{instanceId}/reinit",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView reInitialize(@PathVariable
Long accountId,
@PathVariable
Long instanceId,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/instance/byid/{instanceId}/stop",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView stopInstance(@PathVariable
Long accountId,
@PathVariable
Long instanceId,
org.springframework.ui.Model model)
throws AccountNotFoundException,
DuracloudInstanceNotAvailableException
protected void stopInstance(Long instanceId) throws DuracloudInstanceNotAvailableException
@RequestMapping(value="/byid/{accountId}/activate",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView activate(@PathVariable
Long accountId)
throws AccountNotFoundException
AccountNotFoundException@RequestMapping(value="/byid/{accountId}/deactivate",
method=POST)
@Transactional
public org.springframework.web.servlet.ModelAndView deactivate(@PathVariable
Long accountId,
org.springframework.ui.Model model)
throws AccountNotFoundException
AccountNotFoundExceptionpublic org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
Copyright © 2009–2015 DuraSpace. All rights reserved.