Class EmailController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Controller
    public class EmailController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • EmailController

        public EmailController()
    • Method Detail

      • verifyUser

        @CrossOrigin(origins="*",
                     allowCredentials="false")
        @GetMapping("/verify")
        @ResponseBody
        public void verifyUser​(@RequestParam("token")
                               java.lang.String token,
                               @RequestParam(value="site",required=false)
                               java.lang.String site,
                               @RequestParam(value="lang",required=false)
                               java.lang.String lang,
                               @RequestParam(value="redirect",defaultValue="true",required=false)
                               boolean redirect,
                               javax.servlet.http.HttpServletResponse response)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • resetPassword

        @PostMapping("/resetPassword")
        public void resetPassword​(@RequestParam("email")
                                  java.lang.String email,
                                  @RequestParam(value="site",required=false)
                                  java.lang.String site,
                                  @RequestParam(value="lang",required=false)
                                  java.lang.String lang,
                                  @RequestParam(value="redirect",defaultValue="true",required=false)
                                  boolean redirect,
                                  javax.servlet.http.HttpServletResponse response)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • changePassword

        @GetMapping("/changePassword")
        public void changePassword​(@RequestParam("token")
                                   java.lang.String token,
                                   @RequestParam(value="site",required=false)
                                   java.lang.String site,
                                   @RequestParam(value="lang",required=false)
                                   java.lang.String lang,
                                   @RequestParam(value="redirect",defaultValue="true",required=false)
                                   boolean redirect,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • savePassword

        @PostMapping("/savePassword")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> savePassword​(@RequestParam("token")
                                                                       java.lang.String token,
                                                                       @RequestParam("password")
                                                                       java.lang.String password)
      • saveContactForm

        @PostMapping("/saveContactForm")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> saveContactForm​(@RequestBody
                                                                          EmailMessage emailMessage)
      • saveContactFormWithAttachments

        @PostMapping("/saveContactFormWithAttachments")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> saveContactFormWithAttachments​(@RequestBody
                                                                                         EmailMessage emailMessage)
      • sendUploadRequest

        @PostMapping("/sendUploadRequest")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> sendUploadRequest​(@RequestBody
                                                                            EmailMessage emailMessage)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception