Class UserSessionQueries
java.lang.Object
org.keycloak.models.sessions.infinispan.query.UserSessionQueries
Util class with Infinispan Ickle Queries for
RemoteUserSessionEntity
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.infinispan.commons.api.query.Query<RemoteUserSessionEntity>
searchByBrokerSessionId
(org.infinispan.client.hotrod.RemoteCache<String, RemoteUserSessionEntity> cache, String realmId, String brokerSessionId) Returns a projection with the user session, and the version of all user sessions belonging to the broker session ID.static org.infinispan.commons.api.query.Query<RemoteUserSessionEntity>
searchByBrokerUserId
(org.infinispan.client.hotrod.RemoteCache<String, RemoteUserSessionEntity> cache, String realmId, String brokerUserId) Returns a projection with the user session, and the version of all user sessions belonging to the broker user ID.static org.infinispan.commons.api.query.Query<RemoteUserSessionEntity>
searchByUserId
(org.infinispan.client.hotrod.RemoteCache<String, RemoteUserSessionEntity> cache, String realmId, String userId) Returns a projection with the user session, and the version of all user sessions belonging to the user ID.
-
Field Details
-
USER_SESSION
-
-
Method Details
-
searchByBrokerSessionId
public static org.infinispan.commons.api.query.Query<RemoteUserSessionEntity> searchByBrokerSessionId(org.infinispan.client.hotrod.RemoteCache<String, RemoteUserSessionEntity> cache, String realmId, String brokerSessionId) Returns a projection with the user session, and the version of all user sessions belonging to the broker session ID. -
searchByUserId
public static org.infinispan.commons.api.query.Query<RemoteUserSessionEntity> searchByUserId(org.infinispan.client.hotrod.RemoteCache<String, RemoteUserSessionEntity> cache, String realmId, String userId) Returns a projection with the user session, and the version of all user sessions belonging to the user ID. -
searchByBrokerUserId
public static org.infinispan.commons.api.query.Query<RemoteUserSessionEntity> searchByBrokerUserId(org.infinispan.client.hotrod.RemoteCache<String, RemoteUserSessionEntity> cache, String realmId, String brokerUserId) Returns a projection with the user session, and the version of all user sessions belonging to the broker user ID.
-