From 9ebb5ddcb60345dea668049c73f5f2d9c3cdf731 Mon Sep 17 00:00:00 2001 From: Anand Date: Thu, 4 Jan 2018 12:44:05 -0500 Subject: [PATCH] Code changes for platform hardening appc-oam Issue-ID: APPC-371 Change-Id: I124ad01cd945beb7a9b63a90760b33ca25246bc7 Signed-off-by: Anand --- appc-oam/appc-oam-bundle/pom.xml | 24 ++++++++++++++++++ .../java/org/onap/appc/oam/util/BundleFilter.java | 8 +++--- appc-oam/appc-oam-features/pom.xml | 29 +++++++++++++++++++--- .../src/main/resources/features.xml | 3 ++- appc-oam/appc-oam-installer/pom.xml | 23 +++++++++++++++++ appc-oam/appc-oam-model/pom.xml | 24 ++++++++++++++++++ appc-oam/pom.xml | 24 ++++++++++++++++++ 7 files changed, 127 insertions(+), 8 deletions(-) diff --git a/appc-oam/appc-oam-bundle/pom.xml b/appc-oam/appc-oam-bundle/pom.xml index 51deba758..c24aa4341 100644 --- a/appc-oam/appc-oam-bundle/pom.xml +++ b/appc-oam/appc-oam-bundle/pom.xml @@ -1,4 +1,27 @@ + 1.3.0-SNAPSHOT appc-oam-bundle + APPC OAM - Bundle bundle diff --git a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java index 6dd98f165..c4dcb4fa7 100644 --- a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java +++ b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java @@ -45,7 +45,7 @@ import java.util.regex.Pattern; * the bundleToStopSet * */ -class BundleFilter { +public class BundleFilter { private final Map bundleToStopSet; private final Map bundleToNotStopSet; @@ -57,7 +57,7 @@ class BundleFilter { * @param exceptRegexes - An array of regular expression used to override which bundles are candidates for stopping * @param bundles - An array of the bundle to be split into {@link #getBundlesToStop()} {@link #getBundlesToNotStop()} */ - BundleFilter(String[] stopRegexes, String[] exceptRegexes, Bundle[] bundles) { + public BundleFilter(String[] stopRegexes, String[] exceptRegexes, Bundle[] bundles) { Pattern[] stopPatterns = toPattern(stopRegexes); Pattern[] exceptPatterns = toPattern(exceptRegexes); @@ -114,7 +114,7 @@ class BundleFilter { /**@return Map of bundles that are to be stopped */ - Map getBundlesToStop(){ + public Map getBundlesToStop(){ return bundleToStopSet; } @@ -122,7 +122,7 @@ class BundleFilter { * * @return Map of bundles that are not to be stopped */ - Map getBundlesToNotStop() { + public Map getBundlesToNotStop() { return bundleToNotStopSet; } } diff --git a/appc-oam/appc-oam-features/pom.xml b/appc-oam/appc-oam-features/pom.xml index 6598cd68e..f5b7a938f 100644 --- a/appc-oam/appc-oam-features/pom.xml +++ b/appc-oam/appc-oam-features/pom.xml @@ -1,4 +1,27 @@ + 4.0.0 @@ -6,10 +29,10 @@ org.onap.appc 1.3.0-SNAPSHOT - appc-oam-features - appc-oam-features - jar + APPC OAM - Features + appc-oam-features + jar diff --git a/appc-oam/appc-oam-features/src/main/resources/features.xml b/appc-oam/appc-oam-features/src/main/resources/features.xml index 69bb62a50..4a3a00cfe 100644 --- a/appc-oam/appc-oam-features/src/main/resources/features.xml +++ b/appc-oam/appc-oam-features/src/main/resources/features.xml @@ -31,7 +31,8 @@ mvn:org.opendaylight.mdsal/features-mdsal/${odl.mdsal.features.version}/xml/features - odl-mdsal-broker + odl-mdsal-broker + appc-lifecycle-management mvn:org.onap.appc/appc-oam-model/${project.version} mvn:org.onap.appc/appc-oam-bundle/${project.version} mvn:org.onap.appc/appc-oam-bundle/${project.version}/xml/config diff --git a/appc-oam/appc-oam-installer/pom.xml b/appc-oam/appc-oam-installer/pom.xml index f65879e80..98cbca996 100644 --- a/appc-oam/appc-oam-installer/pom.xml +++ b/appc-oam/appc-oam-installer/pom.xml @@ -1,4 +1,27 @@ + 4.0.0 diff --git a/appc-oam/appc-oam-model/pom.xml b/appc-oam/appc-oam-model/pom.xml index 330be0a82..02b4e3730 100644 --- a/appc-oam/appc-oam-model/pom.xml +++ b/appc-oam/appc-oam-model/pom.xml @@ -1,4 +1,27 @@ + 4.0.0 @@ -8,6 +31,7 @@ 1.3.0-SNAPSHOT appc-oam-model + APPC OAM - Model bundle diff --git a/appc-oam/pom.xml b/appc-oam/pom.xml index 7b3119d35..a62836c4d 100644 --- a/appc-oam/pom.xml +++ b/appc-oam/pom.xml @@ -1,3 +1,27 @@ + + 4.0.0 -- 2.16.6