Package io.jmix.audit

Interface UserSessions

All Known Implementing Classes:
UserSessionsImpl

public interface UserSessions
Provides information about current active user sessions
  • Method Details

    • sessions

      Stream<UserSession> sessions()
      Returns all active user sessions
      Returns:
      active user sessions stream
    • sessions

      Stream<UserSession> sessions(Object principal)
      Returns all principal sessions
      Parameters:
      principal - principal
      Returns:
      principal sessions stream
    • get

      Return current user sessions
      Parameters:
      id - user session id
      Returns:
      user session
    • invalidate

      void invalidate(UserSession session)
      Invalidate user session
      Parameters:
      session - user session to invalidate