Interface NotificationPlugin
-
- All Superinterfaces:
io.vertigo.core.node.component.CoreComponent
,io.vertigo.core.node.component.Plugin
- All Known Implementing Classes:
MemoryNotificationPlugin
,RedisNotificationPlugin
public interface NotificationPlugin extends io.vertigo.core.node.component.Plugin
- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Notification>
getCurrentNotifications(UID<Account> account)
void
remove(UID<Account> accountURI, UUID notificationUUID)
void
removeAll(String type, String targetUrl)
void
send(NotificationEvent notificationEvent)
void
updateUserContent(UID<Account> accountURI, UUID notificationUUID, String userContent)
-
-
-
Method Detail
-
send
void send(NotificationEvent notificationEvent)
- Parameters:
notificationEvent
- Notification to send
-
getCurrentNotifications
List<Notification> getCurrentNotifications(UID<Account> account)
- Parameters:
account
- Accout uri- Returns:
- All notifications for this account
-
remove
void remove(UID<Account> accountURI, UUID notificationUUID)
- Parameters:
accountURI
- Account urinotificationUUID
- Notification uuid
-
removeAll
void removeAll(String type, String targetUrl)
- Parameters:
type
- Notification's typetargetUrl
- Target URL, use to filter all notifications to remove
-
-