public class JpaRealmProvider extends Object implements RealmProvider
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
| Constructor and Description |
|---|
JpaRealmProvider(KeycloakSession session,
javax.persistence.EntityManager em) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RealmModel |
createRealm(String name) |
RealmModel |
createRealm(String id,
String name) |
ApplicationModel |
getApplicationById(String id,
RealmModel realm) |
OAuthClientModel |
getOAuthClientById(String id,
RealmModel realm) |
RealmModel |
getRealm(String id) |
RealmModel |
getRealmByName(String name) |
List<RealmModel> |
getRealms() |
RoleModel |
getRoleById(String id,
RealmModel realm) |
boolean |
removeRealm(String id) |
public JpaRealmProvider(KeycloakSession session, javax.persistence.EntityManager em)
public RealmModel createRealm(String name)
createRealm in interface RealmProviderpublic RealmModel createRealm(String id, String name)
createRealm in interface RealmProviderpublic RealmModel getRealm(String id)
getRealm in interface RealmProviderpublic List<RealmModel> getRealms()
getRealms in interface RealmProviderpublic RealmModel getRealmByName(String name)
getRealmByName in interface RealmProviderpublic boolean removeRealm(String id)
removeRealm in interface RealmProviderpublic void close()
close in interface RealmProviderclose in interface Providerpublic RoleModel getRoleById(String id, RealmModel realm)
getRoleById in interface RealmProviderpublic ApplicationModel getApplicationById(String id, RealmModel realm)
getApplicationById in interface RealmProviderpublic OAuthClientModel getOAuthClientById(String id, RealmModel realm)
getOAuthClientById in interface RealmProviderCopyright © 2014. All Rights Reserved.