public class DefaultCacheRealmProvider extends Object implements CacheRealmProvider
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
appInvalidations |
protected RealmCache |
cache |
protected boolean |
clearAll |
protected Set<String> |
clientInvalidations |
protected RealmProvider |
delegate |
protected Map<String,ApplicationModel> |
managedApplications |
protected Map<String,OAuthClientModel> |
managedClients |
protected Map<String,RealmModel> |
managedRealms |
protected Map<String,RoleModel> |
managedRoles |
protected Set<String> |
realmInvalidations |
protected Set<String> |
roleInvalidations |
protected KeycloakSession |
session |
protected boolean |
setRollbackOnly |
protected boolean |
transactionActive |
protected Set<String> |
userInvalidations |
| Constructor and Description |
|---|
DefaultCacheRealmProvider(RealmCache cache,
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) |
protected void |
runInvalidations() |
void |
setEnabled(boolean enabled) |
protected RealmCache cache
protected KeycloakSession session
protected RealmProvider delegate
protected boolean transactionActive
protected boolean setRollbackOnly
protected Map<String,RealmModel> managedRealms
protected Map<String,ApplicationModel> managedApplications
protected Map<String,OAuthClientModel> managedClients
protected boolean clearAll
public DefaultCacheRealmProvider(RealmCache cache, 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 void registerUserInvalidation(String id)
registerUserInvalidation in interface CacheRealmProviderprotected void runInvalidations()
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 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 RealmProviderCopyright © 2014. All Rights Reserved.