Package io.meeds.pwa.rest
Class PwaNotificationRest
java.lang.Object
io.meeds.pwa.rest.PwaNotificationRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNotification(jakarta.servlet.http.HttpServletRequest request, long notificationId) getNotificationFromPush(jakarta.servlet.http.HttpServletRequest request, long notificationId, String authorizationHeader) getPushDeliveryDelayStatus(jakarta.servlet.http.HttpServletRequest request, String subscriptionId) voidreportPushDeliveryDelay(jakarta.servlet.http.HttpServletRequest request, long notificationId, long sentAt, long receivedAt, String authorizationHeader) voidresetPushDeliveryDelayStatus(jakarta.servlet.http.HttpServletRequest request, String subscriptionId) voidupdateNotificationProperty(jakarta.servlet.http.HttpServletRequest request, long notificationId, String action) voidupdateNotificationPropertyFromPush(jakarta.servlet.http.HttpServletRequest request, long notificationId, String action, String authorizationHeader)
-
Constructor Details
-
PwaNotificationRest
public PwaNotificationRest()
-
-
Method Details
-
getNotification
@GetMapping("{id}") @Secured("users") public PwaNotificationMessage getNotification(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long notificationId) -
getNotificationFromPush
@GetMapping("{id}/push") public PwaNotificationMessage getNotificationFromPush(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long notificationId, @RequestHeader(value="Authorization",required=false) String authorizationHeader) -
updateNotificationPropertyFromPush
@PatchMapping(path="{id}/push", consumes="application/x-www-form-urlencoded") public void updateNotificationPropertyFromPush(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long notificationId, @RequestParam("action") String action, @RequestHeader(value="Authorization",required=false) String authorizationHeader) -
reportPushDeliveryDelay
@PostMapping(path="{id}/push/delivery-delay", consumes="application/x-www-form-urlencoded") public void reportPushDeliveryDelay(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long notificationId, @RequestParam("sentAt") long sentAt, @RequestParam("receivedAt") long receivedAt, @RequestHeader(value="Authorization",required=false) String authorizationHeader) -
getPushDeliveryDelayStatus
-
resetPushDeliveryDelayStatus
@DeleteMapping("push/delivery-delay/{subscriptionId}") @Secured("users") public void resetPushDeliveryDelayStatus(jakarta.servlet.http.HttpServletRequest request, @PathVariable("subscriptionId") String subscriptionId) -
updateNotificationProperty
@PatchMapping(path="{id}", consumes="application/x-www-form-urlencoded") @Secured("users") public void updateNotificationProperty(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long notificationId, @RequestParam("action") String action)
-