public interface NotificationServices
extends io.vertigo.core.component.Component
| Modifier and Type | Method and Description |
|---|---|
List<Notification> |
getCurrentNotifications(io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.Account> accountURI)
Retrieves all notifications for one account
|
void |
remove(io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.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.UID<io.vertigo.account.account.Account>> accountURIs)
Sends a notification to a set of users
|
void |
updateUserContent(io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.Account> accountURI,
UUID notificationUUID,
String userContent)
Updates the flag of the notification
|
void send(Notification notification, Set<io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.Account>> accountURIs)
notification - NotificationaccountURIs - Destination usersList<Notification> getCurrentNotifications(io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.Account> accountURI)
accountURI - Accountvoid remove(io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.Account> accountURI,
UUID notificationUUID)
accountURI - User accountnotificationUUID - Notification uidvoid removeAll(String type, String targetUrl)
type - Notification typetargetUrl - Notification's target Urlvoid updateUserContent(io.vertigo.dynamo.domain.model.UID<io.vertigo.account.account.Account> accountURI,
UUID notificationUUID,
String userContent)
accountURI - User accountnotificationUUID - Notification uiduserContent - userContentCopyright © 2019. All Rights Reserved.