diff options
Diffstat (limited to 'vid-app-common/src/main')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java | 4 | ||||
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java | 8 | ||||
-rw-r--r-- | vid-app-common/src/main/resources/adiod.zip | bin | 81489 -> 79510 bytes | |||
-rw-r--r-- | vid-app-common/src/main/resources/csar317927061915233480.zip | bin | 63368 -> 61779 bytes | |||
-rw-r--r-- | vid-app-common/src/main/resources/csar3933948645405128424.zip | bin | 104292 -> 102261 bytes | |||
-rw-r--r-- | vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip | bin | 68824 -> 67244 bytes | |||
-rw-r--r-- | vid-app-common/src/main/resources/service-VdbeSrv-csar.zip | bin | 72231 -> 70825 bytes | |||
-rw-r--r-- | vid-app-common/src/main/resources/service-vf-csar.zip | bin | 58693 -> 57116 bytes | |||
-rw-r--r-- | vid-app-common/src/main/resources/service-vf-with-annotations.zip | bin | 119155 -> 117760 bytes | |||
-rwxr-xr-x | vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js | 1 |
10 files changed, 11 insertions, 2 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java index 6b17c932a..f5625ce21 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java @@ -309,7 +309,7 @@ public class AAIRestInterface { */ public Response RestPost(String fromAppId, String path, String payload, boolean xml) { String methodName = "RestPost"; - String url=systemPropertyHelper.getFullServicePath(path); + String url=systemPropertyHelper.getServiceBasePath(path); String transId = UUID.randomUUID().toString(); logger.debug(EELFLoggerDelegate.debugLogger, methodName + START_STRING); @@ -317,7 +317,7 @@ public class AAIRestInterface { try { initRestClient(); Logging.logRequest(outgoingRequestsLogger, HttpMethod.POST, url, payload); - response = authenticateRequest(client.target(systemPropertyHelper.getFullServicePath(path)) + response = authenticateRequest(client.target(systemPropertyHelper.getServiceBasePath(path)) .request() .accept(xml ? MediaType.APPLICATION_XML : MediaType.APPLICATION_JSON) .header(TRANSACTION_ID_HEADER, transId) diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java index ebf39c409..4d43d3ba2 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java @@ -38,6 +38,10 @@ public class SystemPropertyHelper { return getSystemProperty(AAIProperties.AAI_SERVER_URL); } + public Optional<String> getAAIServerBaseUrl(){ + return getSystemProperty(AAIProperties.AAI_SERVER_URL_BASE); + } + public Optional<String> getAAIVIDUsername(){ return getSystemProperty(AAIProperties.AAI_VID_USERNAME); } @@ -70,6 +74,10 @@ public class SystemPropertyHelper { return getAAIServerUrl().orElse("") + path; } + public String getServiceBasePath(String path) { + return getAAIServerBaseUrl().orElse("") + path; + } + public String getEncodedCredentials() throws InvalidPropertyException, UnsupportedEncodingException { String vidUsername = getAAIVIDUsername().orElseThrow(InvalidPropertyException::new); String vidPassword = Password.deobfuscate(getAAIVIDPasswd().orElseThrow(InvalidPropertyException::new)); diff --git a/vid-app-common/src/main/resources/adiod.zip b/vid-app-common/src/main/resources/adiod.zip Binary files differindex 415fa4833..6c928a354 100644 --- a/vid-app-common/src/main/resources/adiod.zip +++ b/vid-app-common/src/main/resources/adiod.zip diff --git a/vid-app-common/src/main/resources/csar317927061915233480.zip b/vid-app-common/src/main/resources/csar317927061915233480.zip Binary files differindex 36ac9f9bc..ce58b17dc 100644 --- a/vid-app-common/src/main/resources/csar317927061915233480.zip +++ b/vid-app-common/src/main/resources/csar317927061915233480.zip diff --git a/vid-app-common/src/main/resources/csar3933948645405128424.zip b/vid-app-common/src/main/resources/csar3933948645405128424.zip Binary files differindex b92d5339f..ee9b4fb0c 100644 --- a/vid-app-common/src/main/resources/csar3933948645405128424.zip +++ b/vid-app-common/src/main/resources/csar3933948645405128424.zip diff --git a/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip b/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip Binary files differindex 6d5002c6c..1591a48ff 100644 --- a/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip +++ b/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip diff --git a/vid-app-common/src/main/resources/service-VdbeSrv-csar.zip b/vid-app-common/src/main/resources/service-VdbeSrv-csar.zip Binary files differindex 3defd1e90..0b8db2789 100644 --- a/vid-app-common/src/main/resources/service-VdbeSrv-csar.zip +++ b/vid-app-common/src/main/resources/service-VdbeSrv-csar.zip diff --git a/vid-app-common/src/main/resources/service-vf-csar.zip b/vid-app-common/src/main/resources/service-vf-csar.zip Binary files differindex f66d08464..c3a9fbbe9 100644 --- a/vid-app-common/src/main/resources/service-vf-csar.zip +++ b/vid-app-common/src/main/resources/service-vf-csar.zip diff --git a/vid-app-common/src/main/resources/service-vf-with-annotations.zip b/vid-app-common/src/main/resources/service-vf-with-annotations.zip Binary files differindex a742d60cb..a6fcce7ae 100644 --- a/vid-app-common/src/main/resources/service-vf-with-annotations.zip +++ b/vid-app-common/src/main/resources/service-vf-with-annotations.zip diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js index c85e86529..89660fb18 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js @@ -187,6 +187,7 @@ "category":serviceModel.service.category
});
DataService.setALaCarte (true);
+ DataService.setPnf(!angular.equals(serviceModel.pnfs, {}));
$scope.createType = COMPONENT.A_LA_CARTE;
var broadcastType = COMPONENT.CREATE_COMPONENT;
if (AsdcService.isMacro(serviceModel)) {
|