Code changes for platform hardening appc-oam
Issue-ID: APPC-371
Change-Id: I124ad01cd945beb7a9b63a90760b33ca25246bc7
Signed-off-by: Anand <ac204h@att.com>
diff --git a/appc-oam/appc-oam-bundle/pom.xml b/appc-oam/appc-oam-bundle/pom.xml
index 51deba7..c24aa43 100644
--- a/appc-oam/appc-oam-bundle/pom.xml
+++ b/appc-oam/appc-oam-bundle/pom.xml
@@ -1,4 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ ONAP : APPC
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ ================================================================================
+ Copyright (C) 2017 Amdocs
+ =============================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ ============LICENSE_END=========================================================
+ -->
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -10,6 +33,7 @@
<version>1.3.0-SNAPSHOT</version>
</parent>
<artifactId>appc-oam-bundle</artifactId>
+ <name>APPC OAM - Bundle</name>
<packaging>bundle</packaging>
<build>
<plugins>
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 6dd98f1..c4dcb4f 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 @@
* the bundleToStopSet
*
*/
-class BundleFilter {
+public class BundleFilter {
private final Map<String, Bundle> bundleToStopSet;
private final Map<String, Bundle> bundleToNotStopSet;
@@ -57,7 +57,7 @@
* @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 @@
/**@return Map of bundles that are to be stopped */
- Map<String, Bundle> getBundlesToStop(){
+ public Map<String, Bundle> getBundlesToStop(){
return bundleToStopSet;
}
@@ -122,7 +122,7 @@
*
* @return Map of bundles that are not to be stopped
*/
- Map<String, Bundle> getBundlesToNotStop() {
+ public Map<String, Bundle> getBundlesToNotStop() {
return bundleToNotStopSet;
}
}