congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GroupAdapter.persistAttributeValue
Code IndexAdd Tabnine to your IDE (free)

How to use
persistAttributeValue
method
in
org.keycloak.models.jpa.GroupAdapter

Best Java code snippets using org.keycloak.models.jpa.GroupAdapter.persistAttributeValue (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-model-jpa

@Override
public void setAttribute(String name, List<String> values) {
  // Remove all existing
  removeAttribute(name);
  // Put all new
  for (String value : values) {
    persistAttributeValue(name, value);
  }
}
origin: org.keycloak/keycloak-model-jpa

@Override
public void setSingleAttribute(String name, String value) {
  boolean found = false;
  List<GroupAttributeEntity> toRemove = new ArrayList<>();
  for (GroupAttributeEntity attr : group.getAttributes()) {
    if (attr.getName().equals(name)) {
      if (!found) {
        attr.setValue(value);
        found = true;
      } else {
        toRemove.add(attr);
      }
    }
  }
  for (GroupAttributeEntity attr : toRemove) {
    em.remove(attr);
    group.getAttributes().remove(attr);
  }
  if (found) {
    return;
  }
  persistAttributeValue(name, value);
}
org.keycloak.models.jpaGroupAdapterpersistAttributeValue

Popular methods of GroupAdapter

  • <init>
  • getEntity
  • getGroupRoleMappingEntityTypedQuery
  • getId
  • getRoleMappings
  • hasRole
  • removeAttribute
  • toEntity

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JLabel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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