public class NoCacheRealmProvider extends Object implements CacheRealmProvider
| Modifier and Type | Field and Description |
|---|---|
protected RealmProvider |
delegate |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
NoCacheRealmProvider(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RealmModel |
createRealm(String name) |
RealmModel |
createRealm(String id,
String name) |
ApplicationModel |
getApplicationById(String id,
RealmModel realm) |
RealmProvider |
getDelegate() |
OAuthClientModel |
getOAuthClientById(String id,
RealmModel realm) |
RealmModel |
getRealm(String id) |
RealmModel |
getRealmByName(String name) |
List<RealmModel> |
getRealms() |
RoleModel |
getRoleById(String id,
RealmModel realm) |
boolean |
isEnabled() |
void |
registerApplicationInvalidation(String id) |
void |
registerOAuthClientInvalidation(String id) |
void |
registerRealmInvalidation(String id) |
void |
registerRoleInvalidation(String id) |
void |
registerUserInvalidation(String id) |
boolean |
removeRealm(String id) |
void |
setEnabled(boolean enabled) |
protected KeycloakSession session
protected RealmProvider delegate
public NoCacheRealmProvider(KeycloakSession session)
public boolean isEnabled()
isEnabled in interface CacheRealmProviderpublic void setEnabled(boolean enabled)
setEnabled in interface CacheRealmProviderpublic RealmProvider getDelegate()
getDelegate in interface CacheRealmProviderpublic void registerRealmInvalidation(String id)
registerRealmInvalidation in interface CacheRealmProviderpublic void registerApplicationInvalidation(String id)
registerApplicationInvalidation in interface CacheRealmProviderpublic void registerRoleInvalidation(String id)
registerRoleInvalidation in interface CacheRealmProviderpublic void registerOAuthClientInvalidation(String id)
registerOAuthClientInvalidation in interface CacheRealmProviderpublic 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 RealmModel getRealmByName(String name)
getRealmByName in interface RealmProviderpublic List<RealmModel> getRealms()
getRealms 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 RealmProviderpublic void registerUserInvalidation(String id)
registerUserInvalidation in interface CacheRealmProviderCopyright © 2014. All Rights Reserved.