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 CacheRealmProvider
public void setEnabled(boolean enabled)
setEnabled
in interface CacheRealmProvider
public RealmProvider getDelegate()
getDelegate
in interface CacheRealmProvider
public void registerRealmInvalidation(String id)
registerRealmInvalidation
in interface CacheRealmProvider
public void registerApplicationInvalidation(String id)
registerApplicationInvalidation
in interface CacheRealmProvider
public void registerRoleInvalidation(String id)
registerRoleInvalidation
in interface CacheRealmProvider
public void registerOAuthClientInvalidation(String id)
registerOAuthClientInvalidation
in interface CacheRealmProvider
public void registerUserInvalidation(String id)
registerUserInvalidation
in interface CacheRealmProvider
protected void runInvalidations()
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 RealmModel getRealmByName(String name)
getRealmByName
in interface RealmProvider
public List<RealmModel> getRealms()
getRealms
in interface RealmProvider
public boolean removeRealm(String id)
removeRealm
in interface RealmProvider
public void close()
close
in interface RealmProvider
close
in interface Provider
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.