Class UserController

java.lang.Object
org.duracloud.account.app.controller.AbstractController
org.duracloud.account.app.controller.UserController

@Controller @Lazy @RequestMapping("/users") public class UserController extends AbstractController
The default view for this application
  • Field Details

  • Constructor Details

    • UserController

      public UserController()
  • Method Details

    • setUserService

      public void setUserService(DuracloudUserService userService)
      Parameters:
      userService -
    • getUserService

      public DuracloudUserService 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

      public void setAccountManagerService(AccountManagerService accountManagerService)
    • getAccountManagerService

      public AccountManagerService getAccountManagerService()
    • setAmaEndpoint

      public void setAmaEndpoint(org.duracloud.account.config.AmaEndpoint amaEndpoint)