Tabnine Logo
ComponentUtil.notifyUpdated
Code IndexAdd Tabnine to your IDE (free)

How to use
notifyUpdated
method
in
org.keycloak.models.utils.ComponentUtil

Best Java code snippets using org.keycloak.models.utils.ComponentUtil.notifyUpdated (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-model-mongo

@Override
public void updateComponent(ComponentModel model) {
  ComponentUtil.getComponentFactory(session, model).validateConfiguration(session, this, model);
  ComponentModel old = null;
  for (ComponentEntity entity : realm.getComponentEntities()) {
    if (entity.getId().equals(model.getId())) {
      old = entityToModel(entity);
      updateComponentEntity(entity, model);
      break;
    }
  }
  if (old == null) return;
  updateRealm();
  ComponentUtil.notifyUpdated(session, this, old, model);
}
origin: org.keycloak/keycloak-model-jpa

@Override
public void updateComponent(ComponentModel component) {
  ComponentUtil.getComponentFactory(session, component).validateConfiguration(session, this, component);
  ComponentEntity c = em.find(ComponentEntity.class, component.getId());
  if (c == null) return;
  ComponentModel old = entityToModel(c);
  c.setName(component.getName());
  c.setProviderId(component.getProviderId());
  c.setProviderType(component.getProviderType());
  c.setParentId(component.getParentId());
  c.setSubType(component.getSubType());
  setConfig(component, c);
  ComponentUtil.notifyUpdated(session, this, old, component);
}
org.keycloak.models.utilsComponentUtilnotifyUpdated

Popular methods of ComponentUtil

  • getComponentFactory
  • notifyCreated
  • notifyPreRemove

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Reference (javax.naming)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
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