Remove unneeded param type definition
[so.git] / asdc-controller / src / main / java / org / openecomp / mso / asdc / client / ASDCConfiguration.java
index 1d87ccb..e069989 100644 (file)
@@ -1,15 +1,15 @@
 /*-
  * ============LICENSE_START=======================================================
- * OPENECOMP - MSO
+ * ONAP - SO
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * 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.
@@ -30,13 +30,13 @@ import java.util.List;
 import java.util.Map.Entry;
 import java.util.Properties;
 
-import org.codehaus.jackson.JsonNode;
-
-import org.openecomp.sdc.api.consumer.IConfiguration;
 import org.openecomp.mso.asdc.client.exceptions.ASDCParametersException;
 import org.openecomp.mso.properties.MsoJsonProperties;
 import org.openecomp.mso.properties.MsoPropertiesException;
 import org.openecomp.mso.properties.MsoPropertiesFactory;
+import org.openecomp.sdc.api.consumer.IConfiguration;
+
+import com.fasterxml.jackson.databind.JsonNode;
 
 public class ASDCConfiguration implements IConfiguration {
 
@@ -74,9 +74,10 @@ public class ASDCConfiguration implements IConfiguration {
     public static final String HEAT_NET="HEAT_NET";
     public static final String HEAT_VOL="HEAT_VOL";
     public static final String OTHER="OTHER";
+    public static final String TOSCA_CSAR="TOSCA_CSAR";
     public static final String VF_MODULES_METADATA="VF_MODULES_METADATA";
-    
-    
+
+
     private static final String[] SUPPORTED_ARTIFACT_TYPES = {HEAT,
                HEAT_ARTIFACT,
                HEAT_ENV,
@@ -84,10 +85,11 @@ public class ASDCConfiguration implements IConfiguration {
                HEAT_NET,
                HEAT_VOL,
                OTHER,
-               VF_MODULES_METADATA};   
-    
-    public static final List<String>  SUPPORTED_ARTIFACT_TYPES_LIST =  Collections.unmodifiableList(Arrays.asList(SUPPORTED_ARTIFACT_TYPES));   
-    
+               TOSCA_CSAR,
+               VF_MODULES_METADATA};
+
+    public static final List<String>  SUPPORTED_ARTIFACT_TYPES_LIST =  Collections.unmodifiableList(Arrays.asList(SUPPORTED_ARTIFACT_TYPES));
+
     /**
      * Default constructor, the mso.properties is searched in the classpath (for testing)
      * Or in /etc/ecomp/mso/config/mso.properties
@@ -97,7 +99,7 @@ public class ASDCConfiguration implements IConfiguration {
      * @throws IOException If the key file has not been loaded properly
      */
     public ASDCConfiguration (String controllerName) throws ASDCParametersException, IOException {
-       
+
         Properties keyProp = new Properties ();
         this.asdcControllerName = controllerName;
 
@@ -110,6 +112,10 @@ public class ASDCConfiguration implements IConfiguration {
         refreshASDCConfig ();
 
     }
+    
+    public java.lang.Boolean isUseHttpsWithDmaap() {
+       return false;
+    }
 
     public String getAsdcControllerName () {
         return asdcControllerName;
@@ -287,7 +293,7 @@ public class ASDCConfiguration implements IConfiguration {
             return 0;
         }
     }
-    
+
        @Override
        public boolean activateServerTLSAuth() {
                JsonNode masterConfigNode = getASDCControllerConfigJsonNode();
@@ -393,13 +399,13 @@ public class ASDCConfiguration implements IConfiguration {
 
         MsoJsonProperties msoProp;
         try {
-            List <String> result = new ArrayList <String> ();
+            List <String> result = new ArrayList<>();
             msoProp = new MsoPropertiesFactory ().getMsoJsonProperties (MSO_PROP_ASDC);
 
             if (msoProp.getJsonRootNode ().get (PARAMETER_PATTERN) != null) {
                 Iterator <Entry <String, JsonNode>> it = msoProp.getJsonRootNode ()
                                                                 .get (PARAMETER_PATTERN)
-                                                                .getFields ();
+                                                                .fields();
 
                 Entry <String, JsonNode> entry;
                 while (it.hasNext ()) {
@@ -415,4 +421,12 @@ public class ASDCConfiguration implements IConfiguration {
 
     }
 
+    /**
+     * The flag allows the client to receive metadata for all resources of the service regardless of the artifacts associated to them.
+     * Setting the flag to false will preserve legacy behavior.
+     */
+    public boolean isFilterInEmptyResources() {
+          return true;
+    }
+
 }