@Controller @Lazy public class AccountUsersController extends AbstractAccountController
| Modifier and Type | Class and Description |
|---|---|
class |
AccountUsersController.AccountUser
This class is a read only representation of a user from the perspective
of an account admin/owner.
|
static class |
AccountUsersController.InvitationStatus |
class |
AccountUsersController.PendingAccountUser |
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_USERS_EDIT_ID |
static String |
ACCOUNT_USERS_MAPPING |
static String |
ACCOUNT_USERS_PATH |
static String |
ACCOUNT_USERS_VIEW_ID |
static String |
EDIT_ACCOUNT_USERS_FORM_KEY |
static String |
USERS_DELETE_MAPPING |
static String |
USERS_EDIT_MAPPING |
static String |
USERS_INVITATIONS_DELETE_MAPPING |
static String |
USERS_KEY |
ACCOUNT_HOME, ACCOUNT_INFO_KEY, ACCOUNT_PATH, accountManagerService, ACCOUNTS_PATH, ACTION_STATUS, DC_VERSIONS_KEY, EDIT_PATH, NEW_ACCOUNT_VIEW, 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 |
|---|
AccountUsersController() |
| Modifier and Type | Method and Description |
|---|---|
AccountUserEditForm |
accountUserEditForm() |
org.springframework.web.servlet.ModelAndView |
addUser(Long accountId,
UsernameForm usernameForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
org.springframework.web.servlet.ModelAndView |
deleteUserFromAccount(Long accountId,
Long userId,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
deleteUserInvitation(Long accountId,
Long invitationId,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
editUser(Long accountId,
Long userId,
AccountUserEditForm accountUserEditForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
protected String |
get(AccountService accountService,
org.springframework.ui.Model model) |
String |
get(Long accountId,
org.springframework.ui.Model model) |
String |
getEditUserForm(Long accountId,
Long userId,
org.springframework.ui.Model model) |
InvitationForm |
invitationForm() |
org.springframework.web.servlet.ModelAndView |
sendInvitations(Long accountId,
InvitationForm invitationForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
UsernameForm |
usernameForm() |
addAccountInfoToModel, addAccountOwnersToModel, addUserToModel, createAccountRedirectModelAndView, createAccountRedirectView, getAccountManagerService, getUser, getUserService, loadAccountInfo, loadAccountInfo, loadBillingInfo, loadProviderInfo, setAccountManagerService, setUserServiceaccountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getUserRole, handleException, init, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRightspublic static final String ACCOUNT_USERS_VIEW_ID
public static final String ACCOUNT_USERS_EDIT_ID
public static final String EDIT_ACCOUNT_USERS_FORM_KEY
public static final String ACCOUNT_USERS_PATH
public static final String ACCOUNT_USERS_MAPPING
public static final String USERS_INVITATIONS_DELETE_MAPPING
public static final String USERS_DELETE_MAPPING
public static final String USERS_EDIT_MAPPING
public static final String USERS_KEY
@ModelAttribute(value="invitationForm") public InvitationForm invitationForm()
@ModelAttribute(value="usernameForm") public UsernameForm usernameForm()
@ModelAttribute(value="accountUsersEditForm") public AccountUserEditForm accountUserEditForm()
@RequestMapping(value="/byid/{accountId}/users",
method=GET)
public String get(@PathVariable
Long accountId,
org.springframework.ui.Model model)
throws Exception
accountId - model - AccountNotFoundExceptionException@Transactional
@RequestMapping(value="/byid/{accountId}/users/adduser",
method=POST)
public org.springframework.web.servlet.ModelAndView addUser(@PathVariable
Long accountId,
@ModelAttribute(value="usernameForm")
UsernameForm usernameForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws Exception
Exceptionprotected String get(AccountService accountService, org.springframework.ui.Model model) throws Exception
Exception@Transactional
@RequestMapping(value="/byid/{accountId}/users",
method=POST)
public org.springframework.web.servlet.ModelAndView sendInvitations(@PathVariable
Long accountId,
@ModelAttribute(value="invitationForm")
InvitationForm invitationForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws Exception
Exception@Transactional
@RequestMapping(value="/byid/{accountId}/users/invitations/byid/{invitationId}/delete",
method=POST)
public org.springframework.web.servlet.ModelAndView deleteUserInvitation(@PathVariable
Long accountId,
@PathVariable
Long invitationId,
org.springframework.ui.Model model)
throws Exception
Exception@Transactional
@RequestMapping(value="/byid/{accountId}/users/byid/{userId}/delete",
method=POST)
public org.springframework.web.servlet.ModelAndView deleteUserFromAccount(@PathVariable
Long accountId,
@PathVariable
Long userId,
org.springframework.ui.Model model)
throws Exception
Exception@RequestMapping(value="/byid/{accountId}/users/byid/{userId}/edit",
method=GET)
public String getEditUserForm(@PathVariable
Long accountId,
@PathVariable
Long userId,
org.springframework.ui.Model model)
throws Exception
Exception@Transactional
@RequestMapping(value="/byid/{accountId}/users/byid/{userId}/edit",
method=POST)
public org.springframework.web.servlet.ModelAndView editUser(@PathVariable
Long accountId,
@PathVariable
Long userId,
@ModelAttribute(value="accountUsersEditForm")
AccountUserEditForm accountUserEditForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws Exception
ExceptionCopyright © 2009–2019 DuraSpace. All rights reserved.