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
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • JFrame (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
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