Package io.vertigo.social.notification
Interface NotificationManager
-
- All Superinterfaces:
io.vertigo.core.node.component.Component
,io.vertigo.core.node.component.CoreComponent
- All Known Implementing Classes:
NotificationManagerImpl
public interface NotificationManager extends io.vertigo.core.node.component.Component
- Author:
- pchretien, npiedeloup, btounkara
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Notification>
getCurrentNotifications(UID<Account> accountURI)
Retrieves all notifications for one accountvoid
remove(UID<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<UID<Account>> accountURIs)
Sends a notification to a set of usersvoid
updateUserContent(UID<Account> accountURI, UUID notificationUUID, String userContent)
Updates the flag of the notification
-
-
-
Method Detail
-
send
void send(Notification notification, Set<UID<Account>> accountURIs)
Sends a notification to a set of users- Parameters:
notification
- NotificationaccountURIs
- Destination users
-
getCurrentNotifications
List<Notification> getCurrentNotifications(UID<Account> accountURI)
Retrieves all notifications for one account- Parameters:
accountURI
- Account- Returns:
- List notifications
-
remove
void remove(UID<Account> accountURI, UUID notificationUUID)
Removes one notification.- Parameters:
accountURI
- User accountnotificationUUID
- Notification uid
-
removeAll
void removeAll(String type, String targetUrl)
Removes all notifications by type and targetUrl. Could be use when a business module need to revoke its notifications- Parameters:
type
- Notification typetargetUrl
- Notification's target Url
-
-