federation display name
This commit is contained in:
1 parent
d0dc75c06f
commit
b72a7db6fe
16 files changed
+222
-20
No files matched your search
@@ -167,7 +167,7 @@ public interface RealmModel extends RoleContainerModel {
|
||||
|
||||
List<UserFederationProviderModel> getUserFederationProviders();
|
||||
|
||||
UserFederationProviderModel addUserFederationProvider(String providerName, Map<String, String> config, int priority);
|
||||
UserFederationProviderModel addUserFederationProvider(String providerName, Map<String, String> config, int priority, String displayName);
|
||||
void updateUserFederationProvider(UserFederationProviderModel provider);
|
||||
void removeUserFederationProvider(UserFederationProviderModel provider);
|
||||
void setUserFederationProviders(List<UserFederationProviderModel> providers);
|
||||
|
||||
@@ -13,15 +13,18 @@ public class UserFederationProviderModel {
|
||||
private String providerName;
|
||||
private Map<String, String> config = new HashMap<String, String>();
|
||||
private int priority;
|
||||
private String displayName;
|
||||
|
||||
public UserFederationProviderModel() {};
|
||||
|
||||
public UserFederationProviderModel(String id, String providerName, Map<String, String> config, int priority) {
|
||||
public UserFederationProviderModel(String id, String providerName, Map<String, String> config, int priority, String displayName) {
|
||||
this.id = id;
|
||||
this.providerName = providerName;
|
||||
if (config != null) {
|
||||
this.config.putAll(config);
|
||||
}
|
||||
this.priority = priority;
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
@@ -51,4 +54,12 @@ public class UserFederationProviderModel {
|
||||
public void setPriority(int priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public void setDisplayName(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ public class UserFederationProviderEntity {
|
||||
protected String providerName;
|
||||
protected Map<String, String> config;
|
||||
protected int priority;
|
||||
protected String displayName;
|
||||
|
||||
|
||||
public String getId() {
|
||||
@@ -44,4 +45,12 @@ public class UserFederationProviderEntity {
|
||||
public void setPriority(int priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public void setDisplayName(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
}
|
||||
@@ -276,6 +276,7 @@ public class ModelToRepresentation {
|
||||
rep.setConfig(model.getConfig());
|
||||
rep.setProviderName(model.getProviderName());
|
||||
rep.setPriority(model.getPriority());
|
||||
rep.setDisplayName(model.getDisplayName());
|
||||
return rep;
|
||||
}
|
||||
}
|
||||
@@ -320,7 +320,7 @@ public class RepresentationToModel {
|
||||
|
||||
for (UserFederationProviderRepresentation representation : providers) {
|
||||
UserFederationProviderModel model = new UserFederationProviderModel(representation.getId(), representation.getProviderName(),
|
||||
representation.getConfig(), representation.getPriority());
|
||||
representation.getConfig(), representation.getPriority(), representation.getDisplayName());
|
||||
result.add(model);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user