Class UserController
java.lang.Object
org.duracloud.account.app.controller.AbstractController
org.duracloud.account.app.controller.UserController
The default view for this application
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewadd(NewUserForm newUserForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) anonymousPasswordChange(String redemptionCode, AnonymousChangePasswordForm form, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) anonymousPasswordChange(String redemptionCode, org.springframework.ui.Model model) org.springframework.web.servlet.ModelAndViewchangePassword(String username, ChangePasswordForm form, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) changePassword(String username, org.springframework.ui.Model model) protected org.duracloud.account.db.model.UserInvitationcheckRedemptionCode(String redemptionCode, org.springframework.ui.Model model) 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.RedirectViewformatUserRedirect(String username) org.springframework.web.servlet.ModelAndViewgetForgotPasswordForm(javax.servlet.http.HttpServletRequest request) org.springframework.web.servlet.ModelAndViewgetNewForm(javax.servlet.http.HttpServletRequest request) org.springframework.web.servlet.ModelAndVieworg.springframework.web.servlet.ModelAndViewgetUserAccounts(String username) org.duracloud.account.db.model.InstanceType[]org.springframework.web.servlet.ModelAndVieworg.springframework.web.servlet.ModelAndViewredeemUser(javax.servlet.http.HttpServletRequest request, String redemptionCode) voidsetAccountManagerService(AccountManagerService accountManagerService) voidsetAmaEndpoint(org.duracloud.account.config.AmaEndpoint amaEndpoint) voidsetUserService(DuracloudUserService userService) org.springframework.web.servlet.ModelAndViewupdate(String username, UserProfileEditForm form, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) Methods inherited from class org.duracloud.account.app.controller.AbstractController
accountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getRecaptchaSecret, getRecaptchaSiteKey, getUserRole, handleException, init, isRecaptchaEnabled, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRights, validateRecaptcha
-
Field Details
-
FORGOT_PASSWORD_SUCCESS_VIEW
- See Also:
-
USER_KEY
- See Also:
-
NEW_USER_VIEW
- See Also:
-
FORGOT_PASSWORD_VIEW
- See Also:
-
USER_HOME
- See Also:
-
FORGOT_PASSWORD_MAPPING
- See Also:
-
USER_ACCOUNTS
- See Also:
-
USER_EDIT_MAPPING
- See Also:
-
USER_ACCOUNTS_MAPPING
- See Also:
-
USER_EDIT_VIEW
- See Also:
-
CHANGE_PASSWORD_MAPPING
- See Also:
-
CHANGE_PASSWORD_VIEW
- See Also:
-
USER_PROFILE_FORM_KEY
- See Also:
-
CHANGE_PASSWORD_FORM_KEY
- See Also:
-
FORGOT_PASSWORD_FORM_KEY
- See Also:
-
NEW_USER_FORM_KEY
- See Also:
-
NEW_INSTANCE_FORM
- See Also:
-
-
Constructor Details
-
UserController
public UserController()
-
-
Method Details
-
setUserService
- Parameters:
userService-
-
getUserService
-
getNewForm
@RequestMapping(value="/new", method=GET) public org.springframework.web.servlet.ModelAndView getNewForm(javax.servlet.http.HttpServletRequest request) -
getForgotPasswordForm
@RequestMapping(value="/forgot-password", method=GET) public org.springframework.web.servlet.ModelAndView getForgotPasswordForm(javax.servlet.http.HttpServletRequest request) -
instanceTypes
@ModelAttribute("instanceTypes") public org.duracloud.account.db.model.InstanceType[] instanceTypes() -
profileRedirect
@RequestMapping(value="/profile", method=GET) public org.springframework.web.servlet.ModelAndView profileRedirect() -
getUser
@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 - Throws:
DBNotFoundException
-
getUserAccounts
@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/accounts", method=GET) public org.springframework.web.servlet.ModelAndView getUserAccounts(@PathVariable String username) throws DBNotFoundException - Throws:
DBNotFoundException
-
edit
@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/edit", method=GET) public String edit(@PathVariable String username, org.springframework.ui.Model model) throws DBNotFoundException - Throws:
DBNotFoundException
-
update
@Transactional @RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/edit", method=POST) public org.springframework.web.servlet.ModelAndView update(@PathVariable String username, @ModelAttribute("userProfileEditForm") UserProfileEditForm form, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
changePassword
@RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/change-password", method=GET) public String changePassword(@PathVariable String username, org.springframework.ui.Model model) throws DBNotFoundException - Throws:
DBNotFoundException
-
changePassword
@Transactional @RequestMapping(value="/byid/{username:[a-z0-9.\\-_@]*}/change-password", method=POST) public org.springframework.web.servlet.ModelAndView changePassword(@PathVariable String username, @ModelAttribute("changePasswordForm") ChangePasswordForm form, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
anonymousPasswordChange
@RequestMapping(value="/change-password/{redemptionCode}", method=GET) public String anonymousPasswordChange(@PathVariable String redemptionCode, org.springframework.ui.Model model) throws DBNotFoundException - Throws:
DBNotFoundException
-
checkRedemptionCode
protected org.duracloud.account.db.model.UserInvitation checkRedemptionCode(String redemptionCode, org.springframework.ui.Model model) -
anonymousPasswordChange
@Transactional @RequestMapping(value="/change-password/{redemptionCode}", method=POST) public String anonymousPasswordChange(@PathVariable String redemptionCode, @ModelAttribute("changePasswordForm") AnonymousChangePasswordForm form, org.springframework.validation.BindingResult result, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
add
@Transactional @RequestMapping(value="/new", method=POST) public org.springframework.web.servlet.ModelAndView add(@ModelAttribute("newUserForm") NewUserForm newUserForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws Exception - Throws:
Exception
-
formatUserRedirect
protected static org.springframework.web.servlet.view.RedirectView formatUserRedirect(String username) -
forgotPassword
@Transactional @RequestMapping(value="/forgot-password", method=POST) public String forgotPassword(@ModelAttribute("forgotPasswordForm") ForgotPasswordForm forgotPasswordForm, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws Exception - Throws:
Exception
-
redeemUser
@RequestMapping(value="/redeem/{redemptionCode}", method=GET) public org.springframework.web.servlet.ModelAndView redeemUser(javax.servlet.http.HttpServletRequest request, @PathVariable String redemptionCode) throws DBNotFoundException - Throws:
DBNotFoundException
-
setAccountManagerService
-
getAccountManagerService
-
setAmaEndpoint
public void setAmaEndpoint(org.duracloud.account.config.AmaEndpoint amaEndpoint)
-