public class InMemoryUserNotificationRepository extends UserNotificationRepository
| Constructor and Description |
|---|
InMemoryUserNotificationRepository(SimpleOrmSession simpleOrmSession,
WebQueueRepository webQueueRepository) |
| Modifier and Type | Method and Description |
|---|---|
UserNotification |
createNotification(String userId,
String title,
String message,
String actionEvent,
org.json.JSONObject actionPayload,
Date sentTime,
ExpirationAge expirationAge,
User authUser) |
Stream<UserNotification> |
findAll(User authUser) |
UserNotification |
getNotification(String id,
User user) |
void |
markNotified(Iterable<String> notificationIds,
User user) |
void |
markRead(String[] notificationIds,
User user)
This method only allows marking items read for the passed in user
|
void |
saveNotification(UserNotification notification,
User authUser) |
createNotification, createNotification, getActiveNotifications, getActiveNotificationsOlderThan, getUserRepositorygetSimpleOrmSession, hash@Inject public InMemoryUserNotificationRepository(SimpleOrmSession simpleOrmSession, WebQueueRepository webQueueRepository)
public Stream<UserNotification> findAll(User authUser)
findAll in class UserNotificationRepositorypublic void saveNotification(UserNotification notification, User authUser)
saveNotification in class UserNotificationRepositorypublic UserNotification getNotification(String id, User user)
getNotification in class UserNotificationRepositorypublic void markRead(String[] notificationIds, User user)
UserNotificationRepositorymarkRead in class UserNotificationRepositorypublic void markNotified(Iterable<String> notificationIds, User user)
markNotified in class UserNotificationRepositorypublic UserNotification createNotification(String userId, String title, String message, String actionEvent, org.json.JSONObject actionPayload, Date sentTime, ExpirationAge expirationAge, User authUser)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.