Class NotificationResourceImpl

java.lang.Object
org.openremote.container.web.WebResource
org.openremote.manager.notification.NotificationResourceImpl
All Implemented Interfaces:
org.openremote.container.security.AuthContext, org.openremote.model.notification.NotificationResource

public class NotificationResourceImpl extends org.openremote.container.web.WebResource implements org.openremote.model.notification.NotificationResource
  • Field Details

    • notificationService

      protected final NotificationService notificationService
    • messageBrokerService

      protected final org.openremote.container.message.MessageBrokerService messageBrokerService
    • assetStorageService

      protected final AssetStorageService assetStorageService
    • managerIdentityService

      protected final ManagerIdentityService managerIdentityService
  • Constructor Details

  • Method Details

    • getNotifications

      public org.openremote.model.notification.SentNotification[] getNotifications(org.openremote.model.http.RequestParams requestParams, Long id, String type, Long fromTimestamp, Long toTimestamp, String realmId, String userId, String assetId)
      Specified by:
      getNotifications in interface org.openremote.model.notification.NotificationResource
    • removeNotifications

      public void removeNotifications(org.openremote.model.http.RequestParams requestParams, Long id, String type, Long fromTimestamp, Long toTimestamp, String realmId, String userId, String assetId)
      Specified by:
      removeNotifications in interface org.openremote.model.notification.NotificationResource
    • removeNotification

      public void removeNotification(org.openremote.model.http.RequestParams requestParams, Long notificationId)
      Specified by:
      removeNotification in interface org.openremote.model.notification.NotificationResource
    • sendNotification

      public void sendNotification(org.openremote.model.http.RequestParams requestParams, org.openremote.model.notification.Notification notification)
      Specified by:
      sendNotification in interface org.openremote.model.notification.NotificationResource
    • notificationDelivered

      public void notificationDelivered(org.openremote.model.http.RequestParams requestParams, String targetId, Long notificationId)
      Specified by:
      notificationDelivered in interface org.openremote.model.notification.NotificationResource
    • notificationAcknowledged

      public void notificationAcknowledged(org.openremote.model.http.RequestParams requestParams, String targetId, Long notificationId, com.fasterxml.jackson.databind.JsonNode acknowledgement)
      Specified by:
      notificationAcknowledged in interface org.openremote.model.notification.NotificationResource
    • verifyAccess

      protected void verifyAccess(org.openremote.model.notification.SentNotification sentNotification, String targetId)