Class VaadinSessionNotificationEventPublisher

java.lang.Object
io.jmix.notificationsui.event.VaadinSessionNotificationEventPublisher
All Implemented Interfaces:
UserSessionNotifier

@Component("ntf_VaadinSessionNotificationEventPublisher") public class VaadinSessionNotificationEventPublisher extends Object implements UserSessionNotifier
Allows to notify active Vaadin sessions.
  • Constructor Details

    • VaadinSessionNotificationEventPublisher

      public VaadinSessionNotificationEventPublisher()
  • Method Details

    • onAppStart

      @EventListener public void onAppStart(AppInitializedEvent event)
    • notifyUserSession

      public void notifyUserSession(String username)
      Description copied from interface: UserSessionNotifier
      Notifies session (if active) of specific user
      Specified by:
      notifyUserSession in interface UserSessionNotifier
      Parameters:
      username - username
    • notifyAllUserSessions

      public void notifyAllUserSessions()
      Description copied from interface: UserSessionNotifier
      Notifies all active sessions
      Specified by:
      notifyAllUserSessions in interface UserSessionNotifier
    • publishEvent

      protected void publishEvent(VaadinSessionNotificationEvent event)
    • getVaadinSessionState

      protected com.vaadin.server.VaadinSession.State getVaadinSessionState(com.vaadin.server.VaadinSession session)
    • onSessionAccess

      protected void onSessionAccess(com.vaadin.server.VaadinSession session, org.springframework.context.ApplicationEvent event)