Tabnine Logo
ClientScopeAdapter.entityToModel
Code IndexAdd Tabnine to your IDE (free)

How to use
entityToModel
method
in
org.keycloak.models.jpa.ClientScopeAdapter

Best Java code snippets using org.keycloak.models.jpa.ClientScopeAdapter.entityToModel (Showing top 3 results out of 315)

origin: org.keycloak/keycloak-model-jpa

@Override
public ProtocolMapperModel getProtocolMapperById(String id) {
  ProtocolMapperEntity entity = getProtocolMapperEntity(id);
  if (entity == null) return null;
  return entityToModel(entity);
}
origin: org.keycloak/keycloak-model-jpa

@Override
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name) {
  ProtocolMapperEntity entity = getProtocolMapperEntityByName(protocol, name);
  if (entity == null) return null;
  return entityToModel(entity);
}
origin: org.keycloak/keycloak-model-jpa

@Override
public ProtocolMapperModel addProtocolMapper(ProtocolMapperModel model) {
  if (getProtocolMapperByName(model.getProtocol(), model.getName()) != null) {
    throw new ModelDuplicateException("Protocol mapper name must be unique per protocol");
  }
  String id = model.getId() != null ? model.getId() : KeycloakModelUtils.generateId();
  ProtocolMapperEntity entity = new ProtocolMapperEntity();
  entity.setId(id);
  entity.setName(model.getName());
  entity.setProtocol(model.getProtocol());
  entity.setProtocolMapper(model.getProtocolMapper());
  entity.setClientScope(this.entity);
  entity.setConfig(model.getConfig());
  em.persist(entity);
  this.entity.getProtocolMappers().add(entity);
  return entityToModel(entity);
}
org.keycloak.models.jpaClientScopeAdapterentityToModel

Popular methods of ClientScopeAdapter

  • <init>
  • getAttributes
  • getEntity
  • getId
  • getProtocolMapperByName
  • getProtocolMapperEntity
  • getProtocolMapperEntityByName
  • getRealmScopeMappingQuery
  • getScopeMappings
  • hasScope
  • toClientScopeEntity
  • toClientScopeEntity

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • setContentView (Activity)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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