/*-
* ============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.
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 {
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,
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
* @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;
refreshASDCConfig ();
}
+
+ public java.lang.Boolean isUseHttpsWithDmaap() {
+ return false;
+ }
public String getAsdcControllerName () {
return asdcControllerName;
return 0;
}
}
-
+
@Override
public boolean activateServerTLSAuth() {
JsonNode masterConfigNode = getASDCControllerConfigJsonNode();
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 ()) {
}
+ /**
+ * 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;
+ }
+
}