Class VaadinSessionNotificationEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.notificationsflowui.event.VaadinSessionNotificationEvent
- All Implemented Interfaces:
Serializable
public class VaadinSessionNotificationEvent
extends org.springframework.context.ApplicationEvent
This event is published when new In-app notification is sent
or read status of existing In-app notification is changed.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
VaadinSessionNotificationEvent
(String username) -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
VaadinSessionNotificationEvent
protected VaadinSessionNotificationEvent() -
VaadinSessionNotificationEvent
-
-
Method Details
-
createUserEvent
- Parameters:
username
- username of recipient- Returns:
- event that will be sent to provided username
-
createBroadcastEvent
- Returns:
- event that will be sent to all active Vaadin sessions
-
getUsername
- Returns:
- username of recipient or
null
if event should be sent to all active Vaadin sessions
-
isBroadcast
public boolean isBroadcast()- Returns:
true
if event should be sent to all active Vaadin sessions
-