Tabnine Logo
RealmAdapter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.keycloak.models.cache.infinispan.RealmAdapter
constructor

Best Java code snippets using org.keycloak.models.cache.infinispan.RealmAdapter.<init> (Showing top 3 results out of 315)

origin: org.keycloak/keycloak-invalidation-cache-infinispan

@Override
public RealmModel getRealm(String id) {
  if (!cache.isEnabled()) return getDelegate().getRealm(id);
  CachedRealm cached = cache.getCachedRealm(id);
  if (cached == null) {
    RealmModel model = getDelegate().getRealm(id);
    if (model == null) return null;
    if (realmInvalidations.contains(id)) return model;
    cached = new CachedRealm(cache, this, model);
    cache.addCachedRealm(cached);
  } else if (realmInvalidations.contains(id)) {
    return getDelegate().getRealm(id);
  } else if (managedRealms.containsKey(id)) {
    return managedRealms.get(id);
  }
  RealmAdapter adapter = new RealmAdapter(cached, this);
  managedRealms.put(id, adapter);
  return adapter;
}
origin: org.keycloak/keycloak-invalidation-cache-infinispan

@Override
public RealmModel getRealmByName(String name) {
  if (!cache.isEnabled()) return getDelegate().getRealmByName(name);
  CachedRealm cached = cache.getCachedRealmByName(name);
  if (cached == null) {
    RealmModel model = getDelegate().getRealmByName(name);
    if (model == null) return null;
    if (realmInvalidations.contains(model.getId())) return model;
    cached = new CachedRealm(cache, this, model);
    cache.addCachedRealm(cached);
  } else if (realmInvalidations.contains(cached.getId())) {
    return getDelegate().getRealmByName(name);
  } else if (managedRealms.containsKey(cached.getId())) {
    return managedRealms.get(cached.getId());
  }
  RealmAdapter adapter = new RealmAdapter(cached, this);
  managedRealms.put(cached.getId(), adapter);
  return adapter;
}
origin: org.keycloak/keycloak-model-infinispan

  return managedRealms.get(id);
RealmAdapter adapter = new RealmAdapter(session, cached, this);
if (wasCached) {
  CachedRealmModel.RealmCachedEvent event = new CachedRealmModel.RealmCachedEvent() {
org.keycloak.models.cache.infinispanRealmAdapter<init>

Popular methods of RealmAdapter

  • getAuthenticationFlows
  • getAuthenticatorConfigs
  • getDelegateForUpdate
  • getId
  • getIdentityProviders
  • executeEvictions
  • getCertificatePem
  • getClientById
  • getCodeSecret
  • getComponent
  • getGroups
  • getPrivateKeyPem
  • getGroups,
  • getPrivateKeyPem,
  • getPublicKeyPem,
  • invalidateFlag,
  • isUpdated,
  • setCertificatePem,
  • setPrivateKeyPem,
  • setPublicKeyPem

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • findViewById (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now