remove RealmModel.getClientNameMap()
This commit is contained in:
parent
20348e5d0b
commit
acf2d662c2
5 changed files with 7 additions and 7 deletions
|
@ -141,7 +141,7 @@ public class InfinispanCacheRealmProviderFactory implements CacheRealmProviderFa
|
|||
realmCache.evictRoleById(r);
|
||||
}
|
||||
|
||||
for (String c : realm.getClients().values()) {
|
||||
for (String c : realm.getClients()) {
|
||||
realmCache.evictClientById(c);
|
||||
}
|
||||
|
||||
|
|
|
@ -591,7 +591,7 @@ public class RealmAdapter implements RealmModel {
|
|||
public List<ClientModel> getClients() {
|
||||
if (updated != null) return updated.getClients();
|
||||
List<ClientModel> apps = new LinkedList<>();
|
||||
for (String id : cached.getClients().values()) {
|
||||
for (String id : cached.getClients()) {
|
||||
ClientModel model = cacheSession.getClientById(id, this);
|
||||
if (model == null) {
|
||||
throw new IllegalStateException("Cached application not found: " + id);
|
||||
|
|
|
@ -138,7 +138,7 @@ public class LockingCacheRealmProviderFactory implements CacheRealmProviderFacto
|
|||
realmCache.evictRoleById(r);
|
||||
}
|
||||
|
||||
for (String c : realm.getClients().values()) {
|
||||
for (String c : realm.getClients()) {
|
||||
realmCache.evictClientById(c);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class RevisionedCachedRealm extends CachedRealm implements Revisioned {
|
|||
@Override
|
||||
protected void cacheClients(RealmCache cache, RealmProvider delegate, RealmModel model) {
|
||||
for (ClientModel client : model.getClients()) {
|
||||
clients.put(client.getClientId(), client.getId());
|
||||
clients.add(client.getId());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ public class CachedRealm implements Serializable {
|
|||
protected List<String> defaultGroups = new LinkedList<String>();
|
||||
protected Set<String> groups = new HashSet<String>();
|
||||
protected Map<String, String> realmRoles = new HashMap<String, String>();
|
||||
protected Map<String, String> clients = new HashMap<String, String>();
|
||||
protected List<String> clients = new LinkedList<>();
|
||||
protected List<String> clientTemplates= new LinkedList<>();
|
||||
protected boolean internationalizationEnabled;
|
||||
protected Set<String> supportedLocales;
|
||||
|
@ -296,7 +296,7 @@ public class CachedRealm implements Serializable {
|
|||
|
||||
protected void cacheClients(RealmCache cache, RealmProvider delegate, RealmModel model) {
|
||||
for (ClientModel client : model.getClients()) {
|
||||
clients.put(client.getClientId(), client.getId());
|
||||
clients.add(client.getId());
|
||||
CachedClient cachedClient = new CachedClient(cache, delegate, model, client);
|
||||
cache.addClient(cachedClient);
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ public class CachedRealm implements Serializable {
|
|||
return realmRoles;
|
||||
}
|
||||
|
||||
public Map<String, String> getClients() {
|
||||
public List<String> getClients() {
|
||||
return clients;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue