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

How to use
org.keycloak.models.jpa.GroupAdapter
constructor

Best Java code snippets using org.keycloak.models.jpa.GroupAdapter.<init> (Showing top 5 results out of 315)

origin: stackoverflow.com

 protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  init();
  ArrayList<String> data = new ArrayList<String>();
  data.add("Info");
  data.add("Assessment");
  data.add("Billing");
  data.add("Release");
  ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,data);
  GroupAdapter groupAdapter = new GroupAdapter(this,data);
  setListAdapter(groupAdapter);
  getListView().setDividerHeight(10);

  //setting the margin
  ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) getListView().getLayoutParams();
  params.setMargins(10, 0, 10, 0);
}
origin: org.keycloak/keycloak-model-jpa

@Override
public GroupModel getGroupById(String id, RealmModel realm) {
  GroupEntity groupEntity = em.find(GroupEntity.class, id);
  if (groupEntity == null) return null;
  if (!groupEntity.getRealm().getId().equals(realm.getId())) return null;
  GroupAdapter adapter =  new GroupAdapter(realm, em, groupEntity);
  return adapter;
}
origin: stackoverflow.com

groupAdapter = new GroupAdapter(this, list);
origin: org.keycloak/keycloak-model-jpa

@Override
public GroupModel createGroup(RealmModel realm, String id, String name) {
  if (id == null) id = KeycloakModelUtils.generateId();
  GroupEntity groupEntity = new GroupEntity();
  groupEntity.setId(id);
  groupEntity.setName(name);
  RealmEntity realmEntity = em.getReference(RealmEntity.class, realm.getId());
  groupEntity.setRealm(realmEntity);
  em.persist(groupEntity);
  em.flush();
  realmEntity.getGroups().add(groupEntity);
  GroupAdapter adapter = new GroupAdapter(realm, em, groupEntity);
  return adapter;
}
origin: stackoverflow.com

setGroupModel(new DatabaseModel(getDbHelper(), GroupData.class));
setListView((ListView) findViewById(R.id.lv_group));
setGroupAdapter(new GroupAdapter(GroupsPreferenceActivity.this));
getListView().setAdapter(getGroupAdapter());
setOnDeleteListener(new OnDeleteListener() {
org.keycloak.models.jpaGroupAdapter<init>

Popular methods of GroupAdapter

  • getEntity
  • getGroupRoleMappingEntityTypedQuery
  • getId
  • getRoleMappings
  • hasRole
  • persistAttributeValue
  • removeAttribute
  • toEntity

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • setScale (BigDecimal)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Path (java.nio.file)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collectors (java.util.stream)
  • BoxLayout (javax.swing)
  • JTable (javax.swing)
  • Top plugins for WebStorm
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