From 2d1528b34c45a650e2407bbc90737cc4ca6ec042 Mon Sep 17 00:00:00 2001
From: Andrew Gauld <agauld@att.com>
Date: Wed, 26 Feb 2020 15:48:32 +0000
Subject: Link DCAE MOD design tool to Acumos Adapter

Add import item to global menu with choices of import models, component specs,
and data formats.

Add prefix to acumos adapter API for consistency with rest of DCAE MOD and to
allow adding acumos adapter to k8s/rancher ingress or other reverse proxy
mechanism so it can be accessed by browser javascript in the design tool.

Remove dcae mod hostname mechanism for callbacks from browser javascript since
browser security only allows javascript to call back to the originating host
port.

Clean up indentation only differences between original NiFi code and ONAP
versions.

Remove 3 ONAP java files that are now identical to original NiFi versions.

Change-Id: I23bbd98d5b171d624ef35088cd821aff2918fc1b
Issue-ID: DCAEGEN2-1860
Signed-off-by: Andrew Gauld <agauld@att.com>
---
 mod/designtool/designtool-web/sh/applypatches.sh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

(limited to 'mod/designtool/designtool-web/sh')

diff --git a/mod/designtool/designtool-web/sh/applypatches.sh b/mod/designtool/designtool-web/sh/applypatches.sh
index 47de89c..0b20969 100755
--- a/mod/designtool/designtool-web/sh/applypatches.sh
+++ b/mod/designtool/designtool-web/sh/applypatches.sh
@@ -36,14 +36,10 @@ jar xf $NIFI_BASE_DIR/nifi-current/lib/nifi-framework-nar-$NIFI_VERSION.nar \
 # patch jar files
 cd $PATCHES/WEB-INF/classes
 set +f
-jar uf $NIFI_BASE_DIR/nifi-toolkit-current/lib/nifi-client-dto-$NIFI_VERSION.jar \
-    org/apache/nifi/web/api/dto/FlowConfigurationDTO*.class
 jar uf $TARGETS/META-INF/bundled-dependencies/nifi-jetty-$NIFI_VERSION.jar \
     org/apache/nifi/web/server/JettyServer*.class
 jar uf $NIFI_BASE_DIR/nifi-current/lib/nifi-properties-$NIFI_VERSION.jar \
     org/apache/nifi/util/NiFiProperties*.class
-jar uf $NIFI_BASE_DIR/nifi-current/lib/nifi-runtime-$NIFI_VERSION.jar \
-    org/apache/nifi/NiFi*.class
 jar uf $NIFI_BASE_DIR/nifi-toolkit-current/lib/nifi-framework-core-api-$NIFI_VERSION.jar \
     org/apache/nifi/controller/AbstractPort*.class
 jar uf $TARGETS/META-INF/bundled-dependencies/nifi-framework-nar-loading-utils-$NIFI_VERSION.jar \
@@ -52,7 +48,6 @@ jar uf $TARGETS/META-INF/bundled-dependencies/nifi-framework-nar-loading-utils-$
 # patch war files
 cd $PATCHES
 jar uf $TARGETS/META-INF/bundled-dependencies/nifi-web-api-$NIFI_VERSION.war \
-    WEB-INF/classes/org/apache/nifi/web/StandardNiFiServiceFacade*.class \
     WEB-INF/classes/org/apache/nifi/web/api/dto/DtoFactory*.class \
     WEB-INF/classes/org/apache/nifi/web/dao/impl/StandardConnectionDAO*.class
 set -f
@@ -73,6 +68,7 @@ sed -i \
     -e '/nf.FlowVerison/{r nf-flow-version-min.js' -e 'd}' \
     -e '/controllerConfig/{r nf-settings-min.js' -e 'd}' \
     -e '/this.breadcrumbs/{r nf-ng-breadcrumbs-controller-min.js' -e 'd}' \
+    -e '/Canvas.GlobalMenuCtrl=/{r nf-ng-canvas-global-menu-controller-min.js' -e 'd}' \
     -e '/processor-types-table/{r nf-ng-processor-component-min.js' -e 'd}' \
     js/nf/canvas/nf-canvas-all.js
 sed -i \
@@ -83,19 +79,14 @@ gzip -k \
     js/nf/canvas/nf-canvas-all.js \
     js/nf/summary/nf-summary-all.js
 jar uf $TARGETS/META-INF/bundled-dependencies/nifi-web-ui-$NIFI_VERSION.war \
-    $(find WEB-INF/classes/org/apache/jsp/WEB_002dINF WEB-INF/pages WEB-INF/partials css js images -type f -print)
+    $(find WEB-INF/classes/org/apache/jsp/WEB_002dINF WEB-INF/pages WEB-INF/partials css js images fonts -type f -print)
 # patch scripts
 cp common.sh start.sh $NIFI_BASE_DIR/scripts/
 # patch nar files
 cd $TARGETS
-cp $NIFI_BASE_DIR/nifi-toolkit-current/lib/nifi-client-dto-$NIFI_VERSION.jar \
-    META-INF/bundled-dependencies/nifi-client-dto-$NIFI_VERSION.jar
-jar uf $NIFI_BASE_DIR/nifi-current/lib/nifi-site-to-site-reporting-nar-$NIFI_VERSION.nar \
-    META-INF/bundled-dependencies/nifi-client-dto-$NIFI_VERSION.jar
 cp $NIFI_BASE_DIR/nifi-toolkit-current/lib/nifi-framework-core-api-$NIFI_VERSION.jar \
     META-INF/bundled-dependencies/nifi-framework-core-api-$NIFI_VERSION.jar
 jar uf $NIFI_BASE_DIR/nifi-current/lib/nifi-framework-nar-$NIFI_VERSION.nar \
-    META-INF/bundled-dependencies/nifi-client-dto-$NIFI_VERSION.jar \
     META-INF/bundled-dependencies/nifi-framework-core-api-$NIFI_VERSION.jar \
     META-INF/bundled-dependencies/nifi-framework-nar-loading-utils-$NIFI_VERSION.jar \
     META-INF/bundled-dependencies/nifi-jetty-$NIFI_VERSION.jar \
-- 
cgit 1.2.3-korg