Class NotificationManagerImpl
java.lang.Object
io.vertigo.social.impl.notification.NotificationManagerImpl
- All Implemented Interfaces:
io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Manager,NotificationManager
- Author:
- pchretien, npiedeloup, btounkara
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentNotifications(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> userProfileURI) Retrieves all notifications for one accountvoidremove(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID) Removes one notification.voidRemoves all notifications by type and targetUrl.voidsend(Notification notification, Set<io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account>> accountURIs) Sends a notification to a set of usersvoidupdateUserContent(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID, String userContent) Updates the flag of the notification
-
Constructor Details
-
NotificationManagerImpl
- Parameters:
notificationsPlugin- Notifications plugin
-
-
Method Details
-
send
public void send(Notification notification, Set<io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account>> accountURIs) Sends a notification to a set of users- Specified by:
sendin interfaceNotificationManager- Parameters:
notification- NotificationaccountURIs- Destination users
-
getCurrentNotifications
public List<Notification> getCurrentNotifications(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> userProfileURI) Retrieves all notifications for one account- Specified by:
getCurrentNotificationsin interfaceNotificationManager- Parameters:
userProfileURI- Account- Returns:
- List notifications
-
remove
public void remove(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID) Removes one notification.- Specified by:
removein interfaceNotificationManager- Parameters:
accountURI- User accountnotificationUUID- Notification uid
-
removeAll
Removes all notifications by type and targetUrl. Could be use when a business module need to revoke its notifications- Specified by:
removeAllin interfaceNotificationManager- Parameters:
type- Notification typetargetUrl- Notification's target Url
-
updateUserContent
public void updateUserContent(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID, String userContent) Description copied from interface:NotificationManagerUpdates the flag of the notification- Specified by:
updateUserContentin interfaceNotificationManager- Parameters:
accountURI- User accountnotificationUUID- Notification uiduserContent- userContent
-