@Controller @Lazy @RequestMapping(value="/users") public class UserController extends AbstractController
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_PASSWORD_FORM_KEY |
static String |
CHANGE_PASSWORD_MAPPING |
static String |
CHANGE_PASSWORD_VIEW |
static String |
FORGOT_PASSWORD_FORM_KEY |
static String |
FORGOT_PASSWORD_MAPPING |
protected static String |
FORGOT_PASSWORD_SUCCESS_VIEW |
static String |
FORGOT_PASSWORD_VIEW |
static String |
NEW_INSTANCE_FORM |
static String |
NEW_USER_FORM_KEY |
static String |
NEW_USER_VIEW |
static String |
USER_ACCOUNTS |
static String |
USER_ACCOUNTS_MAPPING |
static String |
USER_EDIT_MAPPING |
static String |
USER_EDIT_VIEW |
static String |
USER_HOME |
static String |
USER_KEY |
static String |
USER_PROFILE_FORM_KEY |
BY_ID_DELETE_MAPPING, BY_ID_EDIT_MAPPING, BY_ID_MAPPING, EDIT_MAPPING, log, NEW_MAPPING, USER_MAPPING, USERS_MAPPING| Constructor and Description |
|---|
UserController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
add(NewUserForm newUserForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
String |
anonymousPasswordChange(String redemptionCode,
AnonymousChangePasswordForm form,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model) |
String |
anonymousPasswordChange(String redemptionCode,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
changePassword(String username,
ChangePasswordForm form,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model) |
String |
changePassword(String username,
org.springframework.ui.Model model) |
protected org.duracloud.account.db.model.UserInvitation |
checkRedemptionCode(String redemptionCode,
org.springframework.ui.Model model) |
String |
edit(String username,
org.springframework.ui.Model model) |
String |
forgotPassword(ForgotPasswordForm forgotPasswordForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request) |
protected static org.springframework.web.servlet.view.RedirectView |
formatUserRedirect(String username) |
AccountManagerService |
getAccountManagerService() |
org.springframework.web.servlet.ModelAndView |
getForgotPasswordForm(javax.servlet.http.HttpServletRequest request) |
org.springframework.web.servlet.ModelAndView |
getNewForm(javax.servlet.http.HttpServletRequest request) |
org.springframework.web.servlet.ModelAndView |
getUser(String username,
javax.servlet.http.HttpServletRequest request) |
org.springframework.web.servlet.ModelAndView |
getUserAccounts(String username) |
DuracloudUserService |
getUserService() |
org.duracloud.account.db.model.InstanceType[] |
instanceTypes() |
org.springframework.web.servlet.ModelAndView |
profileRedirect() |
org.springframework.web.servlet.ModelAndView |
redeemUser(javax.servlet.http.HttpServletRequest request,
String redemptionCode) |
void |
setAccountManagerService(AccountManagerService accountManagerService) |
void |
setAmaEndpoint(org.duracloud.account.config.AmaEndpoint amaEndpoint) |
void |
setUserService(DuracloudUserService userService) |
org.springframework.web.servlet.ModelAndView |
update(String username,
UserProfileEditForm form,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model) |
accountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getUserRole, handleException, init, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRightsprotected static final String FORGOT_PASSWORD_SUCCESS_VIEW
public static final String USER_KEY
public static final String NEW_USER_VIEW
public static final String FORGOT_PASSWORD_VIEW
public static final String USER_HOME
public static final String FORGOT_PASSWORD_MAPPING
public static final String USER_ACCOUNTS
public static final String USER_EDIT_MAPPING
public static final String USER_ACCOUNTS_MAPPING
public static final String USER_EDIT_VIEW
public static final String CHANGE_PASSWORD_MAPPING
public static final String CHANGE_PASSWORD_VIEW
public static final String USER_PROFILE_FORM_KEY
public static final String CHANGE_PASSWORD_FORM_KEY
public static final String FORGOT_PASSWORD_FORM_KEY
public static final String NEW_USER_FORM_KEY
public static final String NEW_INSTANCE_FORM
public void setUserService(DuracloudUserService userService)
userService - public DuracloudUserService getUserService()
@RequestMapping(value="/new",
method=GET)
public org.springframework.web.servlet.ModelAndView getNewForm(javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/forgot-password",
method=GET)
public org.springframework.web.servlet.ModelAndView getForgotPasswordForm(javax.servlet.http.HttpServletRequest request)
@ModelAttribute(value="instanceTypes") public org.duracloud.account.db.model.InstanceType[] instanceTypes()
@RequestMapping(value="/profile",
method=GET)
public org.springframework.web.servlet.ModelAndView profileRedirect()
@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}",
method=GET)
public org.springframework.web.servlet.ModelAndView getUser(@PathVariable
String username,
javax.servlet.http.HttpServletRequest request)
throws DBNotFoundException
DBNotFoundException@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/accounts",
method=GET)
public org.springframework.web.servlet.ModelAndView getUserAccounts(@PathVariable
String username)
throws DBNotFoundException
DBNotFoundException@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/edit",
method=GET)
public String edit(@PathVariable
String username,
org.springframework.ui.Model model)
throws DBNotFoundException
DBNotFoundException@Transactional
@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/edit",
method=POST)
public org.springframework.web.servlet.ModelAndView update(@PathVariable
String username,
@ModelAttribute(value="userProfileEditForm")
UserProfileEditForm form,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model)
throws Exception
Exception@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/change-password",
method=GET)
public String changePassword(@PathVariable
String username,
org.springframework.ui.Model model)
throws DBNotFoundException
DBNotFoundException@Transactional
@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/change-password",
method=POST)
public org.springframework.web.servlet.ModelAndView changePassword(@PathVariable
String username,
@ModelAttribute(value="changePasswordForm")
ChangePasswordForm form,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model)
throws Exception
Exception@RequestMapping(value="/change-password/{redemptionCode}",
method=GET)
public String anonymousPasswordChange(@PathVariable
String redemptionCode,
org.springframework.ui.Model model)
throws DBNotFoundException
DBNotFoundExceptionprotected org.duracloud.account.db.model.UserInvitation checkRedemptionCode(String redemptionCode, org.springframework.ui.Model model)
@Transactional
@RequestMapping(value="/change-password/{redemptionCode}",
method=POST)
public String anonymousPasswordChange(@PathVariable
String redemptionCode,
@ModelAttribute(value="changePasswordForm")
AnonymousChangePasswordForm form,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model)
throws Exception
Exception@Transactional
@RequestMapping(value="/new",
method=POST)
public org.springframework.web.servlet.ModelAndView add(@ModelAttribute(value="newUserForm")
NewUserForm newUserForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
throws Exception
Exceptionprotected static org.springframework.web.servlet.view.RedirectView formatUserRedirect(String username)
@Transactional
@RequestMapping(value="/forgot-password",
method=POST)
public String forgotPassword(@ModelAttribute(value="forgotPasswordForm")
ForgotPasswordForm forgotPasswordForm,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request)
throws Exception
Exception@RequestMapping(value="/redeem/{redemptionCode}",
method=GET)
public org.springframework.web.servlet.ModelAndView redeemUser(javax.servlet.http.HttpServletRequest request,
@PathVariable
String redemptionCode)
throws DBNotFoundException
DBNotFoundExceptionpublic void setAccountManagerService(AccountManagerService accountManagerService)
public AccountManagerService getAccountManagerService()
public void setAmaEndpoint(org.duracloud.account.config.AmaEndpoint amaEndpoint)
Copyright © 2009–2019 DuraSpace. All rights reserved.