public final class NotificationServicesImpl extends Object implements NotificationServices
| Constructor and Description |
|---|
NotificationServicesImpl(NotificationPlugin notificationsPlugin) |
| Modifier and Type | Method and Description |
|---|---|
List<Notification> |
getCurrentNotifications(io.vertigo.dynamo.domain.model.URI<io.vertigo.account.identity.Account> userProfileURI)
Retrieves all notifications for one account
|
void |
remove(io.vertigo.dynamo.domain.model.URI<io.vertigo.account.identity.Account> accountURI,
UUID notificationUUID)
Removes one notification.
|
void |
removeAll(String type,
String targetUrl)
Removes all notifications by type and targetUrl.
|
void |
send(Notification notification,
Set<io.vertigo.dynamo.domain.model.URI<io.vertigo.account.identity.Account>> accountURIs)
Sends a notification to a set of users
|
@Inject public NotificationServicesImpl(NotificationPlugin notificationsPlugin)
notificationsPlugin - Notifications pluginpublic void send(Notification notification, Set<io.vertigo.dynamo.domain.model.URI<io.vertigo.account.identity.Account>> accountURIs)
send in interface NotificationServicesnotification - NotificationaccountURIs - Destination userspublic List<Notification> getCurrentNotifications(io.vertigo.dynamo.domain.model.URI<io.vertigo.account.identity.Account> userProfileURI)
getCurrentNotifications in interface NotificationServicesuserProfileURI - Accountpublic void remove(io.vertigo.dynamo.domain.model.URI<io.vertigo.account.identity.Account> accountURI,
UUID notificationUUID)
remove in interface NotificationServicesaccountURI - User accountnotificationUUID - Notification uidpublic void removeAll(String type, String targetUrl)
removeAll in interface NotificationServicestype - Notification typetargetUrl - Notification's target UrlCopyright © 2017. All Rights Reserved.