Class MemoryNotificationPlugin
java.lang.Object
io.vertigo.social.plugins.notification.memory.MemoryNotificationPlugin
- All Implemented Interfaces:
io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin,NotificationPlugin
- Author:
- pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClean notifications every minutes.getCurrentNotifications(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> userProfileURI) voidremove(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID) voidvoidsend(NotificationEvent notificationEvent) voidupdateUserContent(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID, String userContent)
-
Constructor Details
-
MemoryNotificationPlugin
public MemoryNotificationPlugin()
-
-
Method Details
-
send
- Specified by:
sendin interfaceNotificationPlugin- Parameters:
notificationEvent- Notification to send
-
updateUserContent
public void updateUserContent(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID, String userContent) - Specified by:
updateUserContentin interfaceNotificationPlugin- Parameters:
accountURI- Account urinotificationUUID- Notification uuiduserContent- User Content
-
getCurrentNotifications
public List<Notification> getCurrentNotifications(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> userProfileURI) - Specified by:
getCurrentNotificationsin interfaceNotificationPlugin- Parameters:
userProfileURI- Accout uri- Returns:
- All notifications for this account
-
remove
public void remove(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID) - Specified by:
removein interfaceNotificationPlugin- Parameters:
accountURI- Account urinotificationUUID- Notification uuid
-
removeAll
- Specified by:
removeAllin interfaceNotificationPlugin- Parameters:
type- Notification's typetargetUrl- Target URL, use to filter all notifications to remove
-
cleanTooOldNotifications
public void cleanTooOldNotifications()Clean notifications every minutes.
-