Class NotificationController


  • @RestController
    @RequestMapping("#{ (${tesler.api.use-servlet-context-path} == true) ? \'\':  \'${tesler.api.path}\'}/notification")
    public class NotificationController
    extends Object
    • Constructor Detail

      • NotificationController

        public NotificationController()
    • Method Detail

      • getNotifications

        @GetMapping("/get-notifications")
        public ResponseDTO getNotifications​(@RequestParam(defaultValue="false")
                                            boolean unread,
                                            @RequestParam(required=false)
                                            Long offset,
                                            PageSpecification page)
      • countNotifications

        @GetMapping("/count-notifications")
        public ResponseDTO countNotifications​(@RequestParam(defaultValue="false")
                                              boolean unread,
                                              @RequestParam(required=false)
                                              Long offset)
      • checkNewNotifications

        @GetMapping("/check-new-notification")
        public org.springframework.web.context.request.async.DeferredResult<ResponseDTO> checkNewNotifications​(@RequestParam
                                                                                                               Long latestNotificationId,
                                                                                                               @RequestParam(defaultValue="false")
                                                                                                               boolean unread)
      • deleteNotifications

        @DeleteMapping("/delete-notification")
        public List<Long> deleteNotifications​(@RequestParam
                                              List<Long> notificationId)
      • saveNotification

        @PostMapping("/save-notification")
        public void saveNotification​(@RequestParam("url")
                                     String url,
                                     @RequestParam("message")
                                     String message)