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)voidremove(UID<Account> accountURI, UUID notificationUUID)voidremoveAll(String type, String targetUrl)voidsend(NotificationEvent notificationEvent)voidupdateUserContent(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
-
-