Class CRLExpirationNotificationResource


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

      • createCRLExpirationNotification

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

        @PostMapping("/crl-expiration-notifications/certificate")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<List<CRLExpirationNotification>> createCRLExpirationNotification​(@Valid @RequestBody
                                                                                                                        @Valid Long certificateId)
        POST /crl-expiration-notifications/certificate : Create a new cRLExpirationNotification.
        Parameters:
        certificateId - a certificate id to derive the details.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new cRLExpirationNotification, or with status 400 (Bad Request) if the cRLExpirationNotification has already an ID.
      • updateCRLExpirationNotification

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

        @GetMapping("/crl-expiration-notifications")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<CRLExpirationNotification> getAllCRLExpirationNotifications()
        GET /crl-expiration-notifications : get all the cRLExpirationNotifications.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of cRLExpirationNotifications in body.
      • getCRLExpirationNotification

        @GetMapping("/crl-expiration-notifications/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<CRLExpirationNotification> getCRLExpirationNotification​(@PathVariable
                                                                                                               Long id)
        GET /crl-expiration-notifications/:id : get the "id" cRLExpirationNotification.
        Parameters:
        id - the id of the cRLExpirationNotification to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the cRLExpirationNotification, or with status 404 (Not Found).
      • deleteCRLExpirationNotification

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