diff options
author | davsad <david.sadlier@est.tech> | 2021-03-15 08:37:18 +0000 |
---|---|---|
committer | Christophe Closset <christophe.closset@intl.att.com> | 2021-03-17 12:07:40 +0000 |
commit | a820979640eb7fa4346e0340ce4dd4a5f9e5feeb (patch) | |
tree | 91e3e7544a0c2b73bf4f59d1751f5b8cd634b643 /catalog-be | |
parent | fd07dec6fc32c6d20a5f6ca23587ec57fa2346aa (diff) |
Support default value for category specific metadata
Issue-ID: SDC-3513
Signed-off-by: davsad <david.sadlier@est.tech>
Change-Id: I4697b66c6d59c1464cf81f9c68fe76b6ca24472c
Diffstat (limited to 'catalog-be')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java index 84b23fe3c7..754420dd47 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java @@ -255,6 +255,7 @@ public class CategoriesImportManager { metadataKeyDef.setMandatory(mandatory); List<String> validValues = (List<String>) metadataKeyInfo.get(MetadataKeyEnum.VALID_VALUES.getName()); metadataKeyDef.setValidValues(validValues); + metadataKeyDef.setDefaultValue((String) metadataKeyInfo.get(MetadataKeyEnum.DEFAULT.getName())); metadataKeyDefs.add(metadataKeyDef); } return metadataKeyDefs; |