summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2020-03-04 16:28:05 +0000
committerJulien Bertozzi <julien.bertozzi@intl.att.com>2020-07-29 11:39:50 +0000
commit5e8464585f07210ad4b20ddfee2c23b1cf2d8b2a (patch)
treed0e9b828f0b374f504115443814537deb35d49c1 /common-app-api/src/main/java
parent18a43d537bc91d752377159fb0d5b3e9f5bdd6e5 (diff)
Config. allowed instances in component composition
During the creation of Resource and Services components, the allowed types to add in its composition are hard-coded. This change allows those types to be configurable using the configuration.yaml backend file. Change-Id: If48849b57fe5124468db3d55f2f06391348935fb Issue-ID: SDC-3177 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'common-app-api/src/main/java')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java
index b70a16193c..ddc941de68 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java
@@ -159,6 +159,7 @@ public class Configuration extends BasicConfiguration {
private List<GabConfig> gabConfig;
private EcompPortalConfig ecompPortal;
private List<ArtifactConfiguration> artifacts;
+ private Map<String, Map<String, List<String>>> componentAllowedInstanceTypes;
public List<ArtifactConfiguration> getArtifacts() {
return artifacts;
@@ -168,6 +169,15 @@ public class Configuration extends BasicConfiguration {
this.artifacts = artifacts;
}
+ public Map<String, Map<String, List<String>>> getComponentAllowedInstanceTypes() {
+ return componentAllowedInstanceTypes;
+ }
+
+ public void setComponentAllowedInstanceTypes(
+ final Map<String, Map<String, List<String>>> componentAllowedInstanceTypes) {
+ this.componentAllowedInstanceTypes = componentAllowedInstanceTypes;
+ }
+
public String getAutoHealingOwner() {
return autoHealingOwner;
}
@@ -258,19 +268,19 @@ public class Configuration extends BasicConfiguration {
public void setGenericAssetNodeTypes(Map<String, String> genericAssetNodeTypes) {
this.genericAssetNodeTypes = genericAssetNodeTypes;
}
-
+
public Map<String, String> getServiceNodeTypes(){
return serviceNodeTypes ;
}
-
+
public void setServiceNodeTypes(Map<String, String> serviceNodeTypes){
this.serviceNodeTypes = serviceNodeTypes;
}
-
+
public Map<String, Map<String, String>> getResourceNodeTypes(){
return resourceNodeTypes;
}
-
+
public void setResourceNodeTypes(Map<String, Map<String, String>> resourceNodeTypes){
this.resourceNodeTypes = resourceNodeTypes;
}