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> RootAuthenticationSessionModel
public class RootAuthenticationSessionUpdater
extends BaseUpdater<String,RootAuthenticationSessionEntity>
implements RootAuthenticationSessionModel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.models.sessions.infinispan.changes.remote.updater.BaseUpdater
BaseUpdater.UpdaterState -
Field Summary
Fields inherited from interface org.keycloak.models.sessions.infinispan.changes.remote.updater.Updater
NO_VERSION -
Method Summary
Modifier and TypeMethodDescriptionapply(String ignored, RootAuthenticationSessionEntity cachedEntity) Computes the expiration data for Infinispan cache.create(String key, RootAuthenticationSessionEntity entity) getAuthenticationSession(ClientModel client, String tabId) getId()getRealm()intvoidinitialize(KeycloakSession session, RealmModel realm, int authSessionsLimit) booleanprotected booleanvoidvoidrestartSession(RealmModel realm) voidsetTimestamp(int timestamp) wrap(String key, RootAuthenticationSessionEntity value, long version) Methods inherited from class org.keycloak.models.sessions.infinispan.changes.remote.updater.BaseUpdater
equals, getKey, getValue, getVersionRead, hashCode, isCreated, isDeleted, isReadOnly, isTransient, markDeleted, resetState, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface org.keycloak.models.sessions.infinispan.changes.remote.updater.Updater
hasVersion
-
Method Details
-
initialize
-
isInitialized
public boolean isInitialized()- Returns:
trueif it is already initialized.
-
isUnchanged
protected boolean isUnchanged()- Specified by:
isUnchangedin classBaseUpdater<String,RootAuthenticationSessionEntity> - Returns:
trueif the entity was changed after being created/read.
-
create
public static RootAuthenticationSessionUpdater create(String key, RootAuthenticationSessionEntity entity) -
wrap
public static RootAuthenticationSessionUpdater wrap(String key, RootAuthenticationSessionEntity value, long version) -
delete
-
computeExpiration
Description copied from interface:UpdaterComputes the expiration data for Infinispan cache.- Specified by:
computeExpirationin interfaceUpdater<String,RootAuthenticationSessionEntity> - Returns:
- The
Expirationdata.
-
apply
public RootAuthenticationSessionEntity apply(String ignored, RootAuthenticationSessionEntity cachedEntity) - Specified by:
applyin interfaceBiFunction<String,RootAuthenticationSessionEntity, RootAuthenticationSessionEntity>
-
getId
- Specified by:
getIdin interfaceRootAuthenticationSessionModel
-
getRealm
- Specified by:
getRealmin interfaceRootAuthenticationSessionModel
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestampin interfaceRootAuthenticationSessionModel
-
setTimestamp
public void setTimestamp(int timestamp) - Specified by:
setTimestampin interfaceRootAuthenticationSessionModel
-
getAuthenticationSessions
- Specified by:
getAuthenticationSessionsin interfaceRootAuthenticationSessionModel
-
getAuthenticationSession
- Specified by:
getAuthenticationSessionin interfaceRootAuthenticationSessionModel
-
createAuthenticationSession
- Specified by:
createAuthenticationSessionin interfaceRootAuthenticationSessionModel
-
removeAuthenticationSessionByTabId
- Specified by:
removeAuthenticationSessionByTabIdin interfaceRootAuthenticationSessionModel
-
restartSession
- Specified by:
restartSessionin interfaceRootAuthenticationSessionModel
-