Merge pull request #2044 from stianst/master

KEYCLOAK-2313 Add getName, getDisplayName, getDisplayNameHtml to acco…
This commit is contained in:
Stian Thorgersen 2016-01-18 19:17:02 +01:00
commit 81fc03b3fe

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();
}