public class SystemNotificationRepository extends NotificationRepository
| Constructor and Description |
|---|
SystemNotificationRepository(com.v5analytics.simpleorm.SimpleOrmSession simpleOrmSession,
UserRepository userRepository) |
| Modifier and Type | Method and Description |
|---|---|
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) |
SystemNotification |
updateNotification(SystemNotification notification,
User user) |
getSimpleOrmSession, hash@Inject
public SystemNotificationRepository(com.v5analytics.simpleorm.SimpleOrmSession simpleOrmSession,
UserRepository userRepository)
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)
Copyright © 2013–2017 V5 Analytics. All rights reserved.