Package | Description |
---|---|
org.keycloak.models |
Modifier and Type | Field and Description |
---|---|
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.BROKER_SESSION_ID |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.BROKER_USER_ID |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.CLIENT_ID |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.CORRESPONDING_SESSION_ID
Represents the corresponding offline user session for the online user session.
|
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.ID |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.IS_OFFLINE |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.LAST_SESSION_REFRESH |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.REALM_ID |
static SearchableModelField<UserSessionModel> |
UserSessionModel.SearchableFields.USER_ID |
Modifier and Type | Method and Description |
---|---|
UserSessionModel |
UserSessionProvider.createOfflineUserSession(UserSessionModel userSession)
Newly created userSession won't contain attached AuthenticatedClientSessions
|
UserSessionModel |
UserSessionProvider.createUserSession(RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
UserSessionModel |
UserSessionProvider.createUserSession(String id,
RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId,
UserSessionModel.SessionPersistenceState persistenceState) |
UserSessionModel |
UserSessionProvider.getOfflineUserSession(RealmModel realm,
String userSessionId) |
UserSessionModel |
UserSessionProvider.getOfflineUserSessionByBrokerSessionId(RealmModel realm,
String brokerSessionId) |
UserSessionModel |
AuthenticatedClientSessionModel.getUserSession() |
UserSessionModel |
UserSessionProvider.getUserSession(RealmModel realm,
String id) |
UserSessionModel |
UserSessionProvider.getUserSessionByBrokerSessionId(RealmModel realm,
String brokerSessionId) |
UserSessionModel |
UserSessionProvider.getUserSessionWithPredicate(RealmModel realm,
String id,
boolean offline,
Predicate<UserSessionModel> predicate)
Return userSession of specified ID as long as the predicate passes.
|
Modifier and Type | Method and Description |
---|---|
default List<UserSessionModel> |
UserSessionProvider.getOfflineUserSessionByBrokerUserId(RealmModel realm,
String brokerUserId)
Deprecated.
Use
getOfflineUserSessionByBrokerUserIdStream
instead. |
Stream<UserSessionModel> |
UserSessionProvider.getOfflineUserSessionByBrokerUserIdStream(RealmModel realm,
String brokerUserId)
Obtains the offline user sessions associated with the user that matches the specified
brokerUserId . |
default List<UserSessionModel> |
UserSessionProvider.getOfflineUserSessions(RealmModel realm,
ClientModel client,
int first,
int max)
Deprecated.
use
getOfflineUserSessionsStream
instead. |
default List<UserSessionModel> |
UserSessionProvider.getOfflineUserSessions(RealmModel realm,
UserModel user)
Deprecated.
Use
getOfflineUserSessionsStream instead. |
Stream<UserSessionModel> |
UserSessionProvider.getOfflineUserSessionsStream(RealmModel realm,
ClientModel client,
Integer firstResult,
Integer maxResults)
Obtains the offline user sessions associated with the specified client, starting from the
firstResult and
containing at most maxResults . |
Stream<UserSessionModel> |
UserSessionProvider.getOfflineUserSessionsStream(RealmModel realm,
UserModel user)
Obtains the offline user sessions associated with the specified user.
|
default List<UserSessionModel> |
UserSessionProvider.getUserSessionByBrokerUserId(RealmModel realm,
String brokerUserId)
Deprecated.
Use
getUserSessionByBrokerUserIdStream
instead. |
Stream<UserSessionModel> |
UserSessionProvider.getUserSessionByBrokerUserIdStream(RealmModel realm,
String brokerUserId)
Obtains the online user sessions associated with the user that matches the specified
brokerUserId . |
default List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
ClientModel client)
Deprecated.
Use
getUserSessionsStream instead. |
default List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
ClientModel client,
int firstResult,
int maxResults)
Deprecated.
Use
getUserSessionsStream instead. |
default List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
UserModel user)
Deprecated.
Use
getUserSessionsStream instead. |
Stream<UserSessionModel> |
UserSessionProvider.getUserSessionsStream(RealmModel realm,
ClientModel client)
Obtains the online user sessions associated with the specified client.
|
Stream<UserSessionModel> |
UserSessionProvider.getUserSessionsStream(RealmModel realm,
ClientModel client,
Integer firstResult,
Integer maxResults)
Obtains the online user sessions associated with the specified client, starting from the
firstResult and containing
at most maxResults . |
Stream<UserSessionModel> |
UserSessionProvider.getUserSessionsStream(RealmModel realm,
UserModel user)
Obtains the online user sessions associated with the specified user.
|
Modifier and Type | Method and Description |
---|---|
AuthenticatedClientSessionModel |
UserSessionProvider.createClientSession(RealmModel realm,
ClientModel client,
UserSessionModel userSession) |
AuthenticatedClientSessionModel |
UserSessionProvider.createOfflineClientSession(AuthenticatedClientSessionModel clientSession,
UserSessionModel offlineUserSession)
Will automatically attach newly created offline client session to the offlineUserSession
|
UserSessionModel |
UserSessionProvider.createOfflineUserSession(UserSessionModel userSession)
Newly created userSession won't contain attached AuthenticatedClientSessions
|
AuthenticatedClientSessionModel |
UserSessionProvider.getClientSession(UserSessionModel userSession,
ClientModel client,
String clientSessionId,
boolean offline) |
default AuthenticatedClientSessionModel |
UserSessionProvider.getClientSession(UserSessionModel userSession,
ClientModel client,
UUID clientSessionId,
boolean offline)
Deprecated.
|
void |
UserSessionProvider.removeOfflineUserSession(RealmModel realm,
UserSessionModel userSession)
Removes the attached clientSessions as well
|
void |
UserSessionProvider.removeUserSession(RealmModel realm,
UserSessionModel session)
This will remove attached ClientLoginSessionModels too
|
Modifier and Type | Method and Description |
---|---|
UserSessionModel |
UserSessionProvider.getUserSessionWithPredicate(RealmModel realm,
String id,
boolean offline,
Predicate<UserSessionModel> predicate)
Return userSession of specified ID as long as the predicate passes.
|
void |
UserSessionProvider.importUserSessions(Collection<UserSessionModel> persistentUserSessions,
boolean offline)
Triggered by persister during pre-load.
|
Copyright © 2021 JBoss by Red Hat. All rights reserved.