summaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh
diff options
context:
space:
mode:
authorolegb <olegb@amdocs.com>2018-07-09 16:25:48 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-07-11 05:51:37 +0000
commita6ccc12ee2111e29e1243855ffe7c295d7f44b3d (patch)
tree137ec0d5b715ec82995d46f9fb472103d74be0a7 /openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh
parent35767f3c6ea98e643e2d0bc638fa87ac1ef65808 (diff)
Utility for healing flag reset per item/version
Change-Id: I1da96fcddbbc926a4e184934d7daaad2704feb44 Issue-ID: SDC-1467 Signed-off-by: Oleg Beltz <olegb@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh')
-rw-r--r--openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh b/openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh
index 54be5e74ef..f02062be56 100644
--- a/openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh
+++ b/openecomp-be/tools/zusammen-tools/src/main/resources/zusammenMainTool.sh
@@ -1,14 +1,17 @@
#!/bin/bash
-
###########################################################################################################
# script name - zusammenMainTool.sh
# run script - ./zusammenMainTool.sh
-# 1. Export all - ./zusammenMainTool.sh -c EXPORT
-# 2. Export one item ./zusammenMainTool.sh -c EXPORT -i ${elementId}
-# 3. Import one item - ./zusammenMainTool.sh -c IMPORT -f ${fileName} -i ${elementId}
-# 4. Import all - ./zusammenMainTool.sh -c IMPORT -f ${fileName}
-# 5. Reset old version - ./zusammenMainTool.sh -c RESET_OLD_VERSION
-# 6. Heal all - ./zusammenMainTool.sh -c HEAL_ALL -t ${thread number}
+# 1. Export all - ./zusammenMainTool.sh -c EXPORT
+# 2. Export one item - ./zusammenMainTool.sh -c EXPORT -i ${elementId}
+# 3. Import one item - ./zusammenMainTool.sh -c IMPORT -f ${fileName} -i ${elementId}
+# 4. Import all - ./zusammenMainTool.sh -c IMPORT -f ${fileName}
+# 5. Reset old version - ./zusammenMainTool.sh -c RESET_OLD_VERSION -v ${old_version}
+# 6. Set healing flag - ./zusammenMainTool.sh -c SET_HEAL_BY_ITEM_VERSION -i {item id} -v {version_id} -o ${old_project_version}
+# 7. Heal all - ./zusammenMainTool.sh -c HEAL_ALL -t ${thread number}
+# 8. Clean user data: - ./zusammenMainTool.sh -c CLEAN_USER_DATA -i {item id} -u {user}
+# 9. Delete public version: - ./zusammenMainTool.sh -c DELETE_PUBLIC_VERSION -i {item id} -v {version_id}
+# 10. Add user as contributor: - ./zusammenMainTool.sh -c ADD_CONTRIBUTOR [-p {item id list file path}] -u {user list file path}
# 7. Populate User Permissions - ./zusammenMainTool.sh -c POPULATE_USER_PERMISSIONS
#
##########################################################################################################
@@ -25,5 +28,5 @@ fi
echo "Configuration file location: ${CONF_FILE_LOCATION}"
mv lib/openecomp-zusammen-tools*.jar openecomp-zusammen-tools.jar &>/dev/null
-java -Dconfig.home=/opt/app/jetty/base/be/config -Dlog.home=/apps/jetty/base/be/logs -Dconfiguration.yaml=${CONF_FILE_LOCATION} -classpath openecomp-zusammen-tools.jar:lib/* org.openecomp.core.tools.main.ZusammenMainTool $1 $2 $3 $4 $5 $6
+java -Dconfig.home=/opt/app/jetty/base/be/config -Dlog.home=/apps/jetty/base/be/logs -Dconfiguration.yaml=${CONF_FILE_LOCATION} -classpath openecomp-zusammen-tools.jar:lib/* org.openecomp.core.tools.main.ZusammenMainTool ${*}
STATUS="${?}" echo "${STATUS}"