public class MongoRealmProvider extends Object implements RealmProvider
| Constructor and Description |
|---|
MongoRealmProvider(KeycloakSession session,
MongoStore mongoStore,
MongoStoreInvocationContext invocationContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RealmModel |
createRealm(String name) |
RealmModel |
createRealm(String id,
String name) |
ApplicationModel |
getApplicationById(String id,
RealmModel realm) |
protected MongoStore |
getMongoStore() |
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 MongoRealmProvider(KeycloakSession session, MongoStore mongoStore, MongoStoreInvocationContext invocationContext)
public void close()
close in interface RealmProviderclose in interface Providerpublic 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 RealmProviderprotected MongoStore getMongoStore()
public 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.