KEYCLOAK-2313 Add getName, getDisplayName, getDisplayNameHtml to account RealmBean

This commit is contained in:
Stian Thorgersen 2016-01-18 14:42:08 +01:00
parent 79eb42522a
commit 3f6b848849

View file

@ -36,6 +36,28 @@ public class RealmBean {
realm = realmModel;
}
public String getName() {
return realm.getName();
}
public String getDisplayName() {
String displayName = realm.getDisplayName();
if (displayName != null && displayName.length() > 0) {
return displayName;
} else {
return getName();
}
}
public String getDisplayNameHtml() {
String displayNameHtml = realm.getDisplayNameHtml();
if (displayNameHtml != null && displayNameHtml.length() > 0) {
return displayNameHtml;
} else {
return getDisplayName();
}
}
public boolean isInternationalizationEnabled() {
return realm.isInternationalizationEnabled();
}