Package io.jmix.audit.impl
Class UserSessionsImpl
java.lang.Object
io.jmix.audit.impl.UserSessionsImpl
- All Implemented Interfaces:
UserSessions
@Component("audit_UserSessions")
public class UserSessionsImpl
extends Object
implements UserSessions
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.security.core.session.SessionRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>
distinctByKey
(Function<? super T, ?> keyExtractor) Return current user sessionsvoid
invalidate
(UserSession session) Invalidate user sessionsessions()
Returns all active user sessionsReturns all principal sessions
-
Field Details
-
sessionRegistry
@Autowired(required=false) protected org.springframework.security.core.session.SessionRegistry sessionRegistry
-
-
Constructor Details
-
UserSessionsImpl
public UserSessionsImpl()
-
-
Method Details
-
sessions
Description copied from interface:UserSessions
Returns all active user sessions- Specified by:
sessions
in interfaceUserSessions
- Returns:
- active user sessions stream
-
sessions
Description copied from interface:UserSessions
Returns all principal sessions- Specified by:
sessions
in interfaceUserSessions
- Parameters:
principal
- principal- Returns:
- principal sessions stream
-
get
Description copied from interface:UserSessions
Return current user sessions- Specified by:
get
in interfaceUserSessions
- Parameters:
id
- user session id- Returns:
- user session
-
distinctByKey
-
invalidate
Description copied from interface:UserSessions
Invalidate user session- Specified by:
invalidate
in interfaceUserSessions
- Parameters:
session
- user session to invalidate
-