Class NewsletterController

    • Constructor Detail

      • NewsletterController

        public NewsletterController()
    • Method Detail

      • initialize

        @PostConstruct
        public void initialize()
      • addNewsletter

        @PostMapping("/addNewsletter")
        public org.springframework.http.ResponseEntity<?> addNewsletter​(@Validated(AddNode.class)
                                                                        NewsletterDTO newsletterDTO)
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getNewsletter

        @GetMapping("/getNewsletter/{newsletterId}")
        public org.springframework.http.ResponseEntity<?> getNewsletter​(@PathVariable("newsletterId")
                                                                        java.lang.Long newsletterId)
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateNewsletter

        @PutMapping("/updateNewsletter")
        public org.springframework.http.ResponseEntity<?> updateNewsletter​(NewsletterDTO newsletterDTO)
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • removeNewsletter

        @DeleteMapping("/removeNewsletter/{newsletterId}")
        public org.springframework.http.ResponseEntity<?> removeNewsletter​(@PathVariable("newsletterId")
                                                                           java.lang.Long newsletterId)
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getNewsletters

        @GetMapping("/getNewsletters")
        public org.springframework.http.ResponseEntity<?> getNewsletters​(NewsletterDTO newsletterDTO,
                                                                         @RequestParam
                                                                         int pageIndex,
                                                                         @RequestParam
                                                                         int pageUnit)
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPopularNewsletters

        @GetMapping("/getPopularNewsletters")
        public org.springframework.http.ResponseEntity<?> getPopularNewsletters​(NewsletterDTO newsletterDTO,
                                                                                @RequestParam
                                                                                int pageIndex,
                                                                                @RequestParam
                                                                                int pageUnit)
                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • countNewsletters

        @GetMapping("/countNewsletters")
        public org.springframework.http.ResponseEntity<?> countNewsletters​(NewsletterDTO newsletterDTO)
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception