Class AbstractController

    • Constructor Detail

      • AbstractController

        public AbstractController()
    • Method Detail

      • init

        public void init()
      • destroy

        public void destroy()
      • getOwnerRole

        @ModelAttribute("ownerRole")
        public org.duracloud.account.db.model.Role getOwnerRole()
      • getAdminRole

        @ModelAttribute("adminRole")
        public org.duracloud.account.db.model.Role getAdminRole()
      • getUserRole

        @ModelAttribute("userRole")
        public org.duracloud.account.db.model.Role getUserRole()
      • getRecaptchaSiteKey

        @ModelAttribute("recaptchaSiteKey")
        public String getRecaptchaSiteKey()
      • isRecaptchaEnabled

        @ModelAttribute("recaptchaEnabled")
        protected boolean isRecaptchaEnabled()
      • getRecaptchaSecret

        public String getRecaptchaSecret()
      • setUserRights

        protected void setUserRights​(DuracloudUserService userService,
                                     Long accountId,
                                     Long userId,
                                     org.duracloud.account.db.model.Role role)
      • accountHasMoreThanOneOwner

        protected boolean accountHasMoreThanOneOwner​(Set<org.duracloud.account.db.model.DuracloudUser> users,
                                                     Long accountId)
        Parameters:
        users -
        Returns:
      • formatUserUrl

        protected static String formatUserUrl​(String username)
      • setError

        protected void setError​(Exception e)
      • setError

        protected void setError​(Exception e,
                                org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      • createRedirectMav

        protected org.springframework.web.servlet.ModelAndView createRedirectMav​(String url)
      • setSuccessFeedback

        protected void setSuccessFeedback​(String message,
                                          org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      • setFailureFeedback

        protected void setFailureFeedback​(String message,
                                          org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)