Class TimedElementNotificationResource


  • @RestController
    @RequestMapping("/api")
    public class TimedElementNotificationResource
    extends Object
    REST controller for managing TimedElementNotification.
    • Method Detail

      • createTimedElementNotification

        @PostMapping("/timed-element-notifications")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<TimedElementNotification> createTimedElementNotification​(@Valid @RequestBody
                                                                                                                @Valid TimedElementNotification timedElementNotification)
                                                                                                         throws URISyntaxException
        POST /timed-element-notifications : Create a new timedElementNotification.
        Parameters:
        timedElementNotification - the timedElementNotification to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new timedElementNotification, or with status 400 (Bad Request) if the timedElementNotification has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updateTimedElementNotification

        @PutMapping("/timed-element-notifications/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<TimedElementNotification> updateTimedElementNotification​(@PathVariable(value="id",required=false)
                                                                                                                Long id,
                                                                                                                @Valid @RequestBody
                                                                                                                @Valid TimedElementNotification timedElementNotification)
                                                                                                         throws URISyntaxException
        PUT /timed-element-notifications/:id : Updates an existing timedElementNotification.
        Parameters:
        id - the id of the timedElementNotification to save.
        timedElementNotification - the timedElementNotification to update.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the updated timedElementNotification, or with status 400 (Bad Request) if the timedElementNotification is not valid, or with status 500 (Internal Server Error) if the timedElementNotification couldn't be updated.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • getAllTimedElementNotifications

        @GetMapping("/timed-element-notifications")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<TimedElementNotification> getAllTimedElementNotifications()
        GET /timed-element-notifications : get all the timedElementNotifications.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of timedElementNotifications in body.
      • getTimedElementNotification

        @GetMapping("/timed-element-notifications/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<TimedElementNotification> getTimedElementNotification​(@PathVariable
                                                                                                             Long id)
        GET /timed-element-notifications/:id : get the "id" timedElementNotification.
        Parameters:
        id - the id of the timedElementNotification to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the timedElementNotification, or with status 404 (Not Found).
      • deleteTimedElementNotification

        @DeleteMapping("/timed-element-notifications/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<Void> deleteTimedElementNotification​(@PathVariable
                                                                                            Long id)
        DELETE /timed-element-notifications/:id : delete the "id" timedElementNotification.
        Parameters:
        id - the id of the timedElementNotification to delete.
        Returns:
        the ResponseEntity with status 204 (NO_CONTENT).