Class RootAuthenticationSessionUpdater

java.lang.Object
org.keycloak.models.sessions.infinispan.changes.remote.updater.BaseUpdater<String,RootAuthenticationSessionEntity>
org.keycloak.models.sessions.infinispan.changes.remote.updater.authsession.RootAuthenticationSessionUpdater
All Implemented Interfaces:
BiFunction<String,RootAuthenticationSessionEntity,RootAuthenticationSessionEntity>, Updater<String,RootAuthenticationSessionEntity>, org.keycloak.sessions.RootAuthenticationSessionModel

public class RootAuthenticationSessionUpdater extends BaseUpdater<String,RootAuthenticationSessionEntity> implements org.keycloak.sessions.RootAuthenticationSessionModel
  • Method Details

    • initialize

      public void initialize(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, int authSessionsLimit)
    • isInitialized

      public boolean isInitialized()
      Returns:
      true if it is already initialized.
    • isUnchanged

      protected boolean isUnchanged()
      Specified by:
      isUnchanged in class BaseUpdater<String,RootAuthenticationSessionEntity>
      Returns:
      true if the entity was changed after being created/read.
    • create

    • wrap

      public static RootAuthenticationSessionUpdater wrap(String key, RootAuthenticationSessionEntity value, long version)
    • delete

      public static RootAuthenticationSessionUpdater delete(String key)
    • computeExpiration

      public Expiration computeExpiration()
      Description copied from interface: Updater
      Computes the expiration data for Infinispan cache.
      Specified by:
      computeExpiration in interface Updater<String,RootAuthenticationSessionEntity>
      Returns:
      The Expiration data.
    • apply

      Specified by:
      apply in interface BiFunction<String,RootAuthenticationSessionEntity,RootAuthenticationSessionEntity>
    • getId

      public String getId()
      Specified by:
      getId in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • getRealm

      public org.keycloak.models.RealmModel getRealm()
      Specified by:
      getRealm in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • getTimestamp

      public int getTimestamp()
      Specified by:
      getTimestamp in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • setTimestamp

      public void setTimestamp(int timestamp)
      Specified by:
      setTimestamp in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • getAuthenticationSessions

      public Map<String,org.keycloak.sessions.AuthenticationSessionModel> getAuthenticationSessions()
      Specified by:
      getAuthenticationSessions in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • getAuthenticationSession

      public org.keycloak.sessions.AuthenticationSessionModel getAuthenticationSession(org.keycloak.models.ClientModel client, String tabId)
      Specified by:
      getAuthenticationSession in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • createAuthenticationSession

      public org.keycloak.sessions.AuthenticationSessionModel createAuthenticationSession(org.keycloak.models.ClientModel client)
      Specified by:
      createAuthenticationSession in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • removeAuthenticationSessionByTabId

      public void removeAuthenticationSessionByTabId(String tabId)
      Specified by:
      removeAuthenticationSessionByTabId in interface org.keycloak.sessions.RootAuthenticationSessionModel
    • restartSession

      public void restartSession(org.keycloak.models.RealmModel realm)
      Specified by:
      restartSession in interface org.keycloak.sessions.RootAuthenticationSessionModel