protocol mapper ui
This commit is contained in:
1 parent
bccffadc7c
commit
1c6e90c4ef
30 files changed
+763
-118
No files matched your search
Vendored
+3
-3
@@ -888,7 +888,7 @@ public class RealmAdapter implements RealmModel {
|
||||
@Override
|
||||
public Set<ProtocolMapperModel> getProtocolMappers() {
|
||||
if (updated != null) return updated.getProtocolMappers();
|
||||
return cached.getClaimMappings();
|
||||
return cached.getProtocolMappers();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -913,7 +913,7 @@ public class RealmAdapter implements RealmModel {
|
||||
|
||||
@Override
|
||||
public ProtocolMapperModel getProtocolMapperById(String id) {
|
||||
for (ProtocolMapperModel mapping : cached.getClaimMappings()) {
|
||||
for (ProtocolMapperModel mapping : cached.getProtocolMappers()) {
|
||||
if (mapping.getId().equals(id)) return mapping;
|
||||
}
|
||||
return null;
|
||||
@@ -921,7 +921,7 @@ public class RealmAdapter implements RealmModel {
|
||||
|
||||
@Override
|
||||
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name) {
|
||||
for (ProtocolMapperModel mapping : cached.getClaimMappings()) {
|
||||
for (ProtocolMapperModel mapping : cached.getProtocolMappers()) {
|
||||
if (mapping.getProtocol().equals(protocol) && mapping.getName().equals(name)) return mapping;
|
||||
}
|
||||
return null;
|
||||
|
||||
+6
-3
@@ -71,7 +71,7 @@ public class CachedRealm {
|
||||
private List<UserFederationProviderModel> userFederationProviders = new ArrayList<UserFederationProviderModel>();
|
||||
private List<IdentityProviderModel> identityProviders = new ArrayList<IdentityProviderModel>();
|
||||
private Set<ClaimTypeModel> claimTypes = new HashSet<ClaimTypeModel>();
|
||||
private Set<ProtocolMapperModel> claimMappings = new HashSet<ProtocolMapperModel>();
|
||||
private Set<ProtocolMapperModel> protocolMappers = new HashSet<ProtocolMapperModel>();
|
||||
|
||||
private Map<String, String> browserSecurityHeaders = new HashMap<String, String>();
|
||||
private Map<String, String> smtpConfig = new HashMap<String, String>();
|
||||
@@ -138,6 +138,9 @@ public class CachedRealm {
|
||||
for (ClaimTypeModel claimType : model.getClaimTypes()) {
|
||||
this.claimTypes.add(new ClaimTypeModel(claimType));
|
||||
}
|
||||
for (ProtocolMapperModel mapper : model.getProtocolMappers()) {
|
||||
this.protocolMappers.add(mapper);
|
||||
}
|
||||
|
||||
smtpConfig.putAll(model.getSmtpConfig());
|
||||
browserSecurityHeaders.putAll(model.getBrowserSecurityHeaders());
|
||||
@@ -353,7 +356,7 @@ public class CachedRealm {
|
||||
return claimTypes;
|
||||
}
|
||||
|
||||
public Set<ProtocolMapperModel> getClaimMappings() {
|
||||
return claimMappings;
|
||||
public Set<ProtocolMapperModel> getProtocolMappers() {
|
||||
return protocolMappers;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user