From 0db74a648b91d5affb32be5b5b3fa54e150710bb Mon Sep 17 00:00:00 2001 From: davsad Date: Thu, 23 Sep 2021 16:59:57 +0100 Subject: Add a display name for the category metadataKeys entries Issue-ID: SDC-3737 Signed-off-by: davsad Change-Id: Ia9547f02267fd380feeef6be6af10beadd30457b --- .../org/openecomp/sdc/be/components/impl/CategoriesImportManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'catalog-be/src/main/java/org') 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 35502aa573..2b8b8df7ec 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 @@ -252,6 +252,7 @@ public class CategoriesImportManager { MetadataKeyDataDefinition metadataKeyDef = new MetadataKeyDataDefinition(); String metadataKeyName = (String) metadataKeyInfo.get(MetadataKeyEnum.NAME.getName()); metadataKeyDef.setName(metadataKeyName); + metadataKeyDef.setDisplayName((String) metadataKeyInfo.get(MetadataKeyEnum.DISPLAY_NAME.getName())); final Object mandatoryProperty = metadataKeyInfo.get(MetadataKeyEnum.MANDATORY.getName()); final boolean mandatory = mandatoryProperty == null ? false : (Boolean) mandatoryProperty; metadataKeyDef.setMandatory(mandatory); -- cgit 1.2.3-korg