From 5e8464585f07210ad4b20ddfee2c23b1cf2d8b2a Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Wed, 4 Mar 2020 16:28:05 +0000 Subject: 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 --- .../org/openecomp/sdc/be/config/Configuration.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'common-app-api/src/main/java/org') 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; private EcompPortalConfig ecompPortal; private List artifacts; + private Map>> componentAllowedInstanceTypes; public List getArtifacts() { return artifacts; @@ -168,6 +169,15 @@ public class Configuration extends BasicConfiguration { this.artifacts = artifacts; } + public Map>> getComponentAllowedInstanceTypes() { + return componentAllowedInstanceTypes; + } + + public void setComponentAllowedInstanceTypes( + final Map>> componentAllowedInstanceTypes) { + this.componentAllowedInstanceTypes = componentAllowedInstanceTypes; + } + public String getAutoHealingOwner() { return autoHealingOwner; } @@ -258,19 +268,19 @@ public class Configuration extends BasicConfiguration { public void setGenericAssetNodeTypes(Map genericAssetNodeTypes) { this.genericAssetNodeTypes = genericAssetNodeTypes; } - + public Map getServiceNodeTypes(){ return serviceNodeTypes ; } - + public void setServiceNodeTypes(Map serviceNodeTypes){ this.serviceNodeTypes = serviceNodeTypes; } - + public Map> getResourceNodeTypes(){ return resourceNodeTypes; } - + public void setResourceNodeTypes(Map> resourceNodeTypes){ this.resourceNodeTypes = resourceNodeTypes; } -- cgit 1.2.3-korg