Class NotificationSupport


  • @RestController
    @RequestMapping("/api")
    public class NotificationSupport
    extends Object
    REST controller for test sending of notification.
    • Method Detail

      • notifyRAOfficerHolderOnExpiry

        @PostMapping("notification/sendExpiryPendingSummary")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public int notifyRAOfficerHolderOnExpiry()
                                          throws javax.mail.MessagingException
        POST api/notification/sendExpiryPendingSummary : send out certificate expiry and request pending summary.
        Returns:
        the number of expiring certificates .
        Throws:
        javax.mail.MessagingException
      • notifyRequestorOnExpiry

        @PostMapping("notification/sendRequestorExpirySummary")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public int notifyRequestorOnExpiry()
                                    throws javax.mail.MessagingException
        POST api/notification/sendExpiryPendingSummary : send out certificate expiry and request pending summary.
        Returns:
        the number of expiring certificates .
        Throws:
        javax.mail.MessagingException
      • notifyRAOfficerOnRequest

        @PostMapping("notification/sendRAOfficerOnRequest/{csrId}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public void notifyRAOfficerOnRequest​(@PathVariable
                                             String csrId)
        POST api/notification/sendRAOfficerOnRequest : send out notification on new request to assigned RA.
      • notifyUserCertificateIssued

        @PostMapping("notification/sendUserCertificateIssued/{certId}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public void notifyUserCertificateIssued​(@PathVariable
                                                String certId)
                                         throws javax.mail.MessagingException
        POST api/notification/sendUserCertificateIssued : send out certificate issuance info.
        Throws:
        javax.mail.MessagingException
      • notifyUserCertificateRejected

        @PostMapping("notification/sendUserCertificateRejected/{csrId}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public void notifyUserCertificateRejected​(@PathVariable
                                                  String csrId)
                                           throws javax.mail.MessagingException
        POST api/notification/sendUserCertificateRejected : send out certificate request rejection info.
        Throws:
        javax.mail.MessagingException
      • notifyCerificateRevoked

        @PostMapping("notification/sendCertificateRevoked/{certId}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public void notifyCerificateRevoked​(@PathVariable
                                            String certId)
                                     throws javax.mail.MessagingException
        POST api/notification/sendCertificateRevoked : send out certificate revocation info.
        Throws:
        javax.mail.MessagingException
      • notifyUserCerificateRevoked

        @PostMapping("notification/sendUserCertificateRevoked/{certId}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public void notifyUserCerificateRevoked​(@PathVariable
                                                String certId)
                                         throws javax.mail.MessagingException
        POST api/notification/sendUserCertificateRevoked : send out certificate revocation info.
        Throws:
        javax.mail.MessagingException