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 Summary
FieldsModifier and TypeFieldDescriptionprotected final AssetStorageServiceprotected final ManagerIdentityServiceprotected final org.openremote.container.message.MessageBrokerServiceprotected final NotificationServiceFields inherited from class org.openremote.container.web.WebResource
application, httpHeaders, request, response, securityContext, uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionNotificationResourceImpl(NotificationService notificationService, org.openremote.container.message.MessageBrokerService messageBrokerService, AssetStorageService assetStorageService, ManagerIdentityService managerIdentityService) -
Method Summary
Modifier and TypeMethodDescriptionorg.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) voidnotificationAcknowledged(org.openremote.model.http.RequestParams requestParams, String targetId, Long notificationId, com.fasterxml.jackson.databind.JsonNode acknowledgement) voidnotificationDelivered(org.openremote.model.http.RequestParams requestParams, String targetId, Long notificationId) voidremoveNotification(org.openremote.model.http.RequestParams requestParams, Long notificationId) voidremoveNotifications(org.openremote.model.http.RequestParams requestParams, Long id, String type, Long fromTimestamp, Long toTimestamp, String realmId, String userId, String assetId) voidsendNotification(org.openremote.model.http.RequestParams requestParams, org.openremote.model.notification.Notification notification) protected voidverifyAccess(org.openremote.model.notification.SentNotification sentNotification, String targetId) Methods inherited from class org.openremote.container.web.WebResource
getApplication, getAuthContext, getAuthenticatedRealmName, getClientId, getClientRemoteAddress, getContainer, getRequestRealmName, getUserId, getUsername, hasRealmRole, hasResourceRole, isAuthenticatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openremote.container.security.AuthContext
hasResourceRoleOrIsSuperUser, isRealmAccessibleByUser, isSuperUser
-
Field Details
-
notificationService
-
messageBrokerService
protected final org.openremote.container.message.MessageBrokerService messageBrokerService -
assetStorageService
-
managerIdentityService
-
-
Constructor Details
-
NotificationResourceImpl
public NotificationResourceImpl(NotificationService notificationService, org.openremote.container.message.MessageBrokerService messageBrokerService, AssetStorageService assetStorageService, ManagerIdentityService managerIdentityService)
-
-
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:
getNotificationsin interfaceorg.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:
removeNotificationsin interfaceorg.openremote.model.notification.NotificationResource
-
removeNotification
public void removeNotification(org.openremote.model.http.RequestParams requestParams, Long notificationId) - Specified by:
removeNotificationin interfaceorg.openremote.model.notification.NotificationResource
-
sendNotification
public void sendNotification(org.openremote.model.http.RequestParams requestParams, org.openremote.model.notification.Notification notification) - Specified by:
sendNotificationin interfaceorg.openremote.model.notification.NotificationResource
-
notificationDelivered
public void notificationDelivered(org.openremote.model.http.RequestParams requestParams, String targetId, Long notificationId) - Specified by:
notificationDeliveredin interfaceorg.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:
notificationAcknowledgedin interfaceorg.openremote.model.notification.NotificationResource
-
verifyAccess
protected void verifyAccess(org.openremote.model.notification.SentNotification sentNotification, String targetId)
-