Package io.jmix.audit
Interface UserSessions
- All Known Implementing Classes:
UserSessionsImpl
public interface UserSessions
Provides information about current active user sessions
-
Method Summary
Modifier and TypeMethodDescriptionReturn current user sessionsvoid
invalidate
(UserSession session) Invalidate user sessionsessions()
Returns all active user sessionsReturns all principal sessions
-
Method Details
-
sessions
Stream<UserSession> sessions()Returns all active user sessions- Returns:
- active user sessions stream
-
sessions
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
Invalidate user session- Parameters:
session
- user session to invalidate
-