public class MongoRealmProvider extends Object implements RealmProvider
Constructor and Description |
---|
MongoRealmProvider(KeycloakSession session,
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, MongoStoreInvocationContext invocationContext)
public void close()
close
in interface RealmProvider
close
in interface Provider
public RealmModel createRealm(String name)
createRealm
in interface RealmProvider
public RealmModel createRealm(String id, String name)
createRealm
in interface RealmProvider
public RealmModel getRealm(String id)
getRealm
in interface RealmProvider
public List<RealmModel> getRealms()
getRealms
in interface RealmProvider
public RealmModel getRealmByName(String name)
getRealmByName
in interface RealmProvider
public boolean removeRealm(String id)
removeRealm
in interface RealmProvider
protected MongoStore getMongoStore()
public RoleModel getRoleById(String id, RealmModel realm)
getRoleById
in interface RealmProvider
public ApplicationModel getApplicationById(String id, RealmModel realm)
getApplicationById
in interface RealmProvider
public OAuthClientModel getOAuthClientById(String id, RealmModel realm)
getOAuthClientById
in interface RealmProvider
Copyright © 2015. All rights reserved.