public class UserNotificationRepository extends NotificationRepository
| Constructor and Description |
|---|
UserNotificationRepository(com.v5analytics.simpleorm.SimpleOrmSession simpleOrmSession,
WorkQueueRepository workQueueRepository) |
UserNotificationRepository(com.v5analytics.simpleorm.SimpleOrmSession simpleOrmSession,
WorkQueueRepository workQueueRepository,
UserRepository userRepository) |
| Modifier and Type | Method and Description |
|---|---|
UserNotification |
createNotification(String userId,
String title,
String message,
String externalUrl,
ExpirationAge expirationAge,
User authUser) |
UserNotification |
createNotification(String userId,
String title,
String message,
String actionEvent,
org.json.JSONObject actionPayload,
ExpirationAge expirationAge,
User authUser) |
java.util.stream.Stream<UserNotification> |
getActiveNotifications(User user) |
java.util.stream.Stream<UserNotification> |
getActiveNotificationsOlderThan(int duration,
TimeUnit timeUnit,
User user) |
UserNotification |
getNotification(String notificationId,
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
|
getSimpleOrmSession, hash@Inject
public UserNotificationRepository(com.v5analytics.simpleorm.SimpleOrmSession simpleOrmSession,
WorkQueueRepository workQueueRepository)
public UserNotificationRepository(com.v5analytics.simpleorm.SimpleOrmSession simpleOrmSession,
WorkQueueRepository workQueueRepository,
UserRepository userRepository)
public java.util.stream.Stream<UserNotification> getActiveNotifications(User user)
public java.util.stream.Stream<UserNotification> getActiveNotificationsOlderThan(int duration, TimeUnit timeUnit, User user)
public UserNotification createNotification(String userId, String title, String message, String actionEvent, org.json.JSONObject actionPayload, ExpirationAge expirationAge, User authUser)
public UserNotification createNotification(String userId, String title, String message, String externalUrl, ExpirationAge expirationAge, User authUser)
public UserNotification getNotification(String notificationId, User user)
public void markRead(String[] notificationIds, User user)
Copyright © 2013–2016 V5 Analytics. All rights reserved.