Class UserSessionQueries

java.lang.Object
org.keycloak.models.sessions.infinispan.query.UserSessionQueries

public final class UserSessionQueries extends Object
Util class with Infinispan Ickle Queries for RemoteUserSessionEntity.
  • Field Details

    • USER_SESSION

      public static final String 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.