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 --- .../openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java | 2 ++ .../main/java/org/openecomp/sdc/be/datatypes/enums/MetadataKeyEnum.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'common-be/src/main') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java index 4ee4c59d19..ebddb6d5b6 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java @@ -34,12 +34,14 @@ import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; public class MetadataKeyDataDefinition extends ToscaDataDefinition { private String name; + private String displayName; private List validValues; private boolean mandatory; private String defaultValue; public MetadataKeyDataDefinition(MetadataKeyDataDefinition metadataKeyDataDefinition) { this.name = metadataKeyDataDefinition.name; + this.displayName = metadataKeyDataDefinition.displayName; this.validValues = metadataKeyDataDefinition.validValues; this.mandatory = metadataKeyDataDefinition.mandatory; this.defaultValue = metadataKeyDataDefinition.defaultValue; diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/MetadataKeyEnum.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/MetadataKeyEnum.java index 45da51164e..45f3ab152a 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/MetadataKeyEnum.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/MetadataKeyEnum.java @@ -24,6 +24,6 @@ import lombok.Getter; @Getter @AllArgsConstructor public enum MetadataKeyEnum { - METADATA_KEYS("metadataKeys"), NAME("name"), MANDATORY("mandatory"), VALID_VALUES("validValues"), DEFAULT("default"); + METADATA_KEYS("metadataKeys"), NAME("name"), DISPLAY_NAME("displayName"), MANDATORY("mandatory"), VALID_VALUES("validValues"), DEFAULT("default"); private final String name; } -- cgit 1.2.3-korg