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:
  • Constructor Details

    • VaadinSessionNotificationEvent

      protected VaadinSessionNotificationEvent()
    • VaadinSessionNotificationEvent

      protected VaadinSessionNotificationEvent(@Nullable String username)
  • Method Details

    • createUserEvent

      public static VaadinSessionNotificationEvent createUserEvent(String username)
      Parameters:
      username - username of recipient
      Returns:
      event that will be sent to provided username
    • createBroadcastEvent

      public static VaadinSessionNotificationEvent createBroadcastEvent()
      Returns:
      event that will be sent to all active Vaadin sessions
    • getUsername

      @Nullable public String 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