Externalize Portal SDK Title 71/109971/2
authorSudarshan Kumar <sudarshan.kumar@att.com>
Wed, 8 Jul 2020 13:53:28 +0000 (19:23 +0530)
committerSudarshan Kumar <sudarshan.kumar@att.com>
Wed, 8 Jul 2020 14:16:22 +0000 (19:46 +0530)
Externalize Portal SDK Title or Brand Name to the properties file.

Issue-ID: PORTAL-943
Change-Id: If8f10bd0316bbf2ba4cb5a08b58ae40e435b2a87
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java
ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts
ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.ts

index 0a928cf..b58b614 100644 (file)
@@ -65,6 +65,7 @@ import org.onap.portalsdk.core.web.support.UserUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.servlet.ModelAndView;
 
index df7495c..a1739f6 100644 (file)
@@ -30,5 +30,6 @@ export const environment = {
   removeRoleFunction:'role/removeRoleFunction.htm?role_id=',
   saveRole:'role/saveRole.htm?role_id=',
   toggleProfileActive: 'profile/toggleProfileActive?profile_id=',
-  isLogDisabled:'true'
+  isLogDisabled:'true',
+  brandName: "Portal SDK"
 };
index f51d577..1954760 100644 (file)
@@ -34,7 +34,8 @@ export const environment = {
   removeRoleFunction:'http://www.sdk.onap.org:8080/epsdk-app-os/role/removeRoleFunction.htm?role_id=',
   saveRole:'http://www.sdk.onap.org:8080/epsdk-app-os/role/saveRole.htm?role_id=',
   toggleProfileActive: 'http://www.sdk.onap.org:8080/epsdk-app-os/profile/toggleProfileActive?profile_id=',
-  isLogDisabled:'false'
+  isLogDisabled:'false',
+  brandName: "Portal SDK"
 };
 
 /*
index 8cfcdbe..c42e154 100644 (file)
@@ -87,6 +87,9 @@ export class HeaderComponent implements OnInit {
 
         this.pushRightClass = 'push-right';
         this.appName= 'Portal SDK' ;
+        if(environment.brandName && environment.brandName !=''){
+            this.appName = environment.brandName;
+        }
         let result = this.headerService.getTopMenuItems();
           result.subscribe(res => {
               this.response = res;