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 KeycloakSessionpublic RealmModel createRealm(String name)
createRealm in interface KeycloakSessionpublic RealmModel createRealm(String id, String name)
createRealm in interface KeycloakSessionpublic RealmModel getRealm(String id)
getRealm in interface KeycloakSessionpublic List<RealmModel> getRealms()
getRealms in interface KeycloakSessionpublic RealmModel getRealmByName(String name)
getRealmByName in interface KeycloakSessionpublic boolean removeRealm(String id)
removeRealm in interface KeycloakSessionpublic void close()
close in interface KeycloakSessionclose in interface Providerpublic void removeAllData()
removeAllData in interface KeycloakSessionCopyright © 2014. All Rights Reserved.