From dc9d6e325ed5df637adfadb921cd9197d62f5b97 Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Wed, 9 Nov 2022 17:19:03 +0200 Subject: [PATCH] feat(jans-auth-server): corrected GluuOrganization - refactor getOrganizationName() #2947 (#2948) --- .../jans/as/persistence/model/GluuOrganization.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java b/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java index faa254386bc..0b6aaf79e05 100644 --- a/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java +++ b/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java @@ -16,6 +16,8 @@ import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; +import org.apache.tika.utils.StringUtils; + import java.io.Serializable; /** @@ -89,13 +91,6 @@ public void setJsFaviconPath(String jsFaviconPath) { this.jsFaviconPath = jsFaviconPath; } - public String getOrganizationTitle() { - if (title == null || title.trim().equals("")) { - return "Gluu"; - } - return title; - } - public String getCountryName() { return countryName; } @@ -177,6 +172,9 @@ public void setThemeColor(String themeColor) { } public String getTitle() { + if (StringUtils.isBlank(title)) { + title = "Gluu"; + } return title; }