Package org.keycloak.models.utils
Class SessionLookup
java.lang.Object
org.keycloak.models.utils.SessionLookup
Provides convenient entity lookups within a
KeycloakSession,
resolving entities by their IDs against the session's realm context.
Primarily used inside KeycloakModelUtils.enlistAfterRollback(org.keycloak.models.KeycloakSession, java.util.function.Consumer<org.keycloak.models.utils.SessionLookup>)
to re-lookup entities from the outer session in a new independent transaction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindClientSession(AuthenticatedClientSessionModel outerSession) findRootAuthSession(AuthenticationSessionModel outerSession) findUserSession(UserSessionModel outerSession) realm()session()
-
Constructor Details
-
SessionLookup
-
-
Method Details
-
session
-
realm
-
findUserSession
-
findClientSession
public AuthenticatedClientSessionModel findClientSession(AuthenticatedClientSessionModel outerSession) -
findRootAuthSession
-