Tabnine Logo
RealmAdapter.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
org.keycloak.models.cache.infinispan.RealmAdapter

Best Java code snippets using org.keycloak.models.cache.infinispan.RealmAdapter.getId (Showing top 6 results out of 315)

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

@Override
public int hashCode() {
  return getId().hashCode();
}
origin: org.keycloak/keycloak-model-infinispan

@Override
public int hashCode() {
  return getId().hashCode();
}
origin: org.keycloak/keycloak-invalidation-cache-infinispan

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || !(o instanceof RealmModel)) return false;
  RealmModel that = (RealmModel) o;
  return that.getId().equals(getId());
}
origin: org.keycloak/keycloak-model-infinispan

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || !(o instanceof RealmModel)) return false;
  RealmModel that = (RealmModel) o;
  return that.getId().equals(getId());
}
origin: org.keycloak/keycloak-invalidation-cache-infinispan

protected void getDelegateForUpdate() {
  if (updated == null) {
    cacheSession.registerRealmInvalidation(getId());
    updated = cacheSession.getDelegate().getRealm(getId());
    if (updated == null) throw new IllegalStateException("Not found in database");
  }
}
origin: org.keycloak/keycloak-model-infinispan

public void executeEvictions(ComponentModel model) {
  if (model == null) return;
  // If not realm component, check to see if it is a user storage provider child component (i.e. LDAP mapper)
  if (model.getParentId() != null && !model.getParentId().equals(getId())) {
    ComponentModel parent = getComponent(model.getParentId());
    if (parent != null && UserStorageProvider.class.getName().equals(parent.getProviderType())) {
      session.userCache().evict(this);
    }
    return;
  }
  // invalidate entire user cache if we're dealing with user storage SPI
  if (UserStorageProvider.class.getName().equals(model.getProviderType())) {
    session.userCache().evict(this);
  }
  // invalidate entire realm if we're dealing with client storage SPI
  // entire realm because of client roles, client lists, and clients
  if (ClientStorageProvider.class.getName().equals(model.getProviderType())) {
    cacheSession.evictRealmOnRemoval(this);
  }
}
org.keycloak.models.cache.infinispanRealmAdaptergetId

Popular methods of RealmAdapter

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

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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