public class JpaKeycloakSession extends Object implements KeycloakSession
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
Constructor and Description |
---|
JpaKeycloakSession(javax.persistence.EntityManager em) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
RealmModel |
createRealm(String name) |
RealmModel |
createRealm(String id,
String name) |
RealmModel |
getRealm(String id) |
RealmModel |
getRealmByName(String name) |
List<RealmModel> |
getRealms() |
KeycloakTransaction |
getTransaction() |
void |
removeAllData() |
boolean |
removeRealm(String id) |
public KeycloakTransaction getTransaction()
getTransaction
in interface KeycloakSession
public RealmModel createRealm(String name)
createRealm
in interface KeycloakSession
public RealmModel createRealm(String id, String name)
createRealm
in interface KeycloakSession
public RealmModel getRealm(String id)
getRealm
in interface KeycloakSession
public List<RealmModel> getRealms()
getRealms
in interface KeycloakSession
public RealmModel getRealmByName(String name)
getRealmByName
in interface KeycloakSession
public boolean removeRealm(String id)
removeRealm
in interface KeycloakSession
public void close()
close
in interface KeycloakSession
close
in interface Provider
public void removeAllData()
removeAllData
in interface KeycloakSession
Copyright © 2014. All Rights Reserved.