public class SystemNotificationRepository extends NotificationRepository
| Constructor and Description |
|---|
SystemNotificationRepository(SimpleOrmSession simpleOrmSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearNotifications() |
SystemNotification |
createNotification(SystemNotificationSeverity severity,
String title,
String message,
String externalUrl,
Date startDate,
Date endDate,
User user) |
SystemNotification |
createNotification(SystemNotificationSeverity severity,
String title,
String message,
String actionEvent,
org.json.JSONObject actionPayload,
Date startDate,
Date endDate,
User user) |
void |
endNotification(SystemNotification notification,
User user) |
List<SystemNotification> |
getActiveNotifications(User user) |
List<SystemNotification> |
getFutureNotifications(Date maxDate,
User user) |
SystemNotification |
getNotification(String rowKey,
User user) |
UserRepository |
getUserRepository()
Avoid circular reference with UserRepository
|
SystemNotification |
updateNotification(SystemNotification notification,
User user) |
getSimpleOrmSession, hash@Inject public SystemNotificationRepository(SimpleOrmSession simpleOrmSession)
public void clearNotifications()
public List<SystemNotification> getActiveNotifications(User user)
public SystemNotification createNotification(SystemNotificationSeverity severity, String title, String message, String actionEvent, org.json.JSONObject actionPayload, Date startDate, Date endDate, User user)
public SystemNotification createNotification(SystemNotificationSeverity severity, String title, String message, String externalUrl, Date startDate, Date endDate, User user)
public SystemNotification getNotification(String rowKey, User user)
public SystemNotification updateNotification(SystemNotification notification, User user)
public void endNotification(SystemNotification notification, User user)
public List<SystemNotification> getFutureNotifications(Date maxDate, User user)
public UserRepository getUserRepository()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.