void addInvalidation(String cacheKey) { if (!transactionEnlisted) { session.getTransactionManager().enlistAfterCompletion(getAfterTransaction()); transactionEnlisted = true; } this.invalidations.add(cacheKey); }
public InfinispanActionTokenStoreProvider(KeycloakSession session, Cache<ActionTokenReducedKey, ActionTokenValueEntity> actionKeyCache) { this.session = session; this.actionKeyCache = actionKeyCache; this.tx = new InfinispanKeycloakTransaction(); session.getTransactionManager().enlistAfterCompletion(tx); }
public DefaultCacheUserProvider(UserCache cache, KeycloakSession session) { this.cache = cache; this.session = session; session.getTransaction().enlistAfterCompletion(getTransaction()); }
public InfinispanAuthenticationSessionProvider(KeycloakSession session, InfinispanKeyGenerator keyGenerator, Cache<String, RootAuthenticationSessionEntity> cache) { this.session = session; this.cache = cache; this.keyGenerator = keyGenerator; this.tx = new InfinispanKeycloakTransaction(); this.clusterEventsSenderTx = new SessionEventsSenderTransaction(session); session.getTransactionManager().enlistAfterCompletion(tx); session.getTransactionManager().enlistAfterCompletion(clusterEventsSenderTx); }
public InfinispanUserSessionProvider(KeycloakSession session, Cache<String, SessionEntity> sessionCache, Cache<String, SessionEntity> offlineSessionCache, Cache<LoginFailureKey, LoginFailureEntity> loginFailureCache) { this.session = session; this.sessionCache = sessionCache; this.offlineSessionCache = offlineSessionCache; this.loginFailureCache = loginFailureCache; this.tx = new InfinispanKeycloakTransaction(); session.getTransaction().enlistAfterCompletion(tx); }
public DefaultCacheRealmProvider(RealmCache cache, KeycloakSession session) { this.cache = cache; this.session = session; session.getTransaction().enlistAfterCompletion(getTransaction()); }
public UserCacheSession(UserCacheManager cache, KeycloakSession session) { this.cache = cache; this.session = session; this.startupRevision = cache.getCurrentCounter(); session.getTransactionManager().enlistAfterCompletion(getTransaction()); }
this.keyGenerator = keyGenerator; session.getTransactionManager().enlistAfterCompletion(clusterEventsSenderTx); session.getTransactionManager().enlistAfterCompletion(sessionTx); session.getTransactionManager().enlistAfterCompletion(offlineSessionTx); session.getTransactionManager().enlistAfterCompletion(clientSessionTx); session.getTransactionManager().enlistAfterCompletion(offlineClientSessionTx); session.getTransactionManager().enlistAfterCompletion(loginFailuresTx);
public RealmCacheSession(RealmCacheManager cache, KeycloakSession session) { this.cache = cache; this.session = session; this.startupRevision = cache.getCurrentCounter(); session.getTransactionManager().enlistPrepare(getPrepareTransaction()); session.getTransactionManager().enlistAfterCompletion(getAfterTransaction()); }
public StoreFactoryCacheSession(StoreFactoryCacheManager cache, KeycloakSession session) { this.cache = cache; this.startupRevision = cache.getCurrentCounter(); this.session = session; this.resourceServerCache = new ResourceServerCache(); this.scopeCache = new ScopeCache(); this.resourceCache = new ResourceCache(); this.policyCache = new PolicyCache(); this.permissionTicketCache = new PermissionTicketCache(); session.getTransactionManager().enlistPrepare(getPrepareTransaction()); session.getTransactionManager().enlistAfterCompletion(getAfterTransaction()); }