public class InMemorySystemNotificationRepository extends SystemNotificationRepository
| Constructor and Description |
|---|
InMemorySystemNotificationRepository(SimpleOrmSession simpleOrmSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearNotifications() |
SystemNotification |
createNotification(SystemNotificationSeverity severity,
String title,
String message,
String actionEvent,
org.json.JSONObject actionPayload,
Date startDate,
Date endDate,
User user) |
List<SystemNotification> |
getActiveNotifications(User user) |
List<SystemNotification> |
getFutureNotifications(Date maxDate,
User user) |
SystemNotification |
getNotification(String id,
User user) |
SystemNotification |
updateNotification(SystemNotification notification,
User user) |
createNotification, endNotification, getUserRepositorygetSimpleOrmSession, hash@Inject public InMemorySystemNotificationRepository(SimpleOrmSession simpleOrmSession)
public List<SystemNotification> getActiveNotifications(User user)
getActiveNotifications in class SystemNotificationRepositorypublic SystemNotification createNotification(SystemNotificationSeverity severity, String title, String message, String actionEvent, org.json.JSONObject actionPayload, Date startDate, Date endDate, User user)
createNotification in class SystemNotificationRepositorypublic SystemNotification getNotification(String id, User user)
getNotification in class SystemNotificationRepositorypublic SystemNotification updateNotification(SystemNotification notification, User user)
updateNotification in class SystemNotificationRepositorypublic void clearNotifications()
clearNotifications in class SystemNotificationRepositorypublic List<SystemNotification> getFutureNotifications(Date maxDate, User user)
getFutureNotifications in class SystemNotificationRepositoryCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.