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 SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.security.core.session.SessionRegistry
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> Predicate<T>distinctByKey(Function<? super T, ?> keyExtractor) Return current user sessionsvoidinvalidate(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- 
UserSessionsImplpublic UserSessionsImpl()
 
- 
- 
Method Details- 
sessionsDescription copied from interface:UserSessionsReturns all active user sessions- Specified by:
- sessionsin interface- UserSessions
- Returns:
- active user sessions stream
 
- 
sessionsDescription copied from interface:UserSessionsReturns all principal sessions- Specified by:
- sessionsin interface- UserSessions
- Parameters:
- principal- principal
- Returns:
- principal sessions stream
 
- 
getDescription copied from interface:UserSessionsReturn current user sessions- Specified by:
- getin interface- UserSessions
- Parameters:
- id- user session id
- Returns:
- user session
 
- 
distinctByKey
- 
invalidateDescription copied from interface:UserSessionsInvalidate user session- Specified by:
- invalidatein interface- UserSessions
- Parameters:
- session- user session to invalidate
 
 
-