public final class NotificationManagerImpl extends Object implements NotificationManager
| Constructor and Description |
|---|
NotificationManagerImpl(AccountManager accountManager,
NotificationPlugin notificationsPlugin) |
| Modifier and Type | Method and Description |
|---|---|
List<Notification> |
getCurrentNotifications(io.vertigo.dynamo.domain.model.URI<Account> userProfileURI)
Retrieve all notification for one account
|
void |
remove(io.vertigo.dynamo.domain.model.URI<Account> accountURI,
UUID notificationUUID)
Remove one notification.
|
void |
removeAll(String type,
String targetUrl)
Remove all notifications by type and targetUrl.
|
void |
send(Notification notification,
io.vertigo.dynamo.domain.model.URI<AccountGroup> groupURI)
Send a notification to a group
|
@Inject public NotificationManagerImpl(AccountManager accountManager, NotificationPlugin notificationsPlugin)
accountManager - Account managernotificationsPlugin - Notifications pluginpublic void send(Notification notification, io.vertigo.dynamo.domain.model.URI<AccountGroup> groupURI)
send in interface NotificationManagernotification - NotificationgroupURI - Destination grouppublic List<Notification> getCurrentNotifications(io.vertigo.dynamo.domain.model.URI<Account> userProfileURI)
getCurrentNotifications in interface NotificationManageruserProfileURI - Accountpublic void remove(io.vertigo.dynamo.domain.model.URI<Account> accountURI, UUID notificationUUID)
remove in interface NotificationManageraccountURI - User accountnotificationUUID - Notification uidpublic void removeAll(String type, String targetUrl)
removeAll in interface NotificationManagertype - Notification typetargetUrl - Notification's target UrlCopyright © 2016. All Rights Reserved.