From 6e12c8ad59f11426e49f81c4a7032480b126bfbc Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 23 Jan 2023 20:10:43 +0000 Subject: Implement hiding mechanism Signed-off-by: Vasyl Razinkov Change-Id: I799af15e31b724ca394eebe435223c03186fb6d3 Issue-ID: SDC-4344 --- .../sdc/be/datatypes/category/CategoryDataDefinition.java | 2 ++ .../sdc/be/datatypes/category/MetadataKeyDataDefinition.java | 7 ------- .../org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnum.java | 1 + 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'common-be/src') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/CategoryDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/CategoryDataDefinition.java index 76768811f0..a0867c1df8 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/CategoryDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/CategoryDataDefinition.java @@ -42,6 +42,7 @@ public class CategoryDataDefinition extends ToscaDataDefinition { private List icons; private boolean useServiceSubstitutionForNestedServices = false; private List metadataKeys; + private List notApplicableMetadataKeys; public CategoryDataDefinition(CategoryDataDefinition c) { this.name = c.name; @@ -52,5 +53,6 @@ public class CategoryDataDefinition extends ToscaDataDefinition { this.icons = c.icons; this.useServiceSubstitutionForNestedServices = c.useServiceSubstitutionForNestedServices; this.metadataKeys = c.metadataKeys; + this.notApplicableMetadataKeys = c.notApplicableMetadataKeys; } } 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 ebddb6d5b6..bc29ef0a4c 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 @@ -39,11 +39,4 @@ public class MetadataKeyDataDefinition extends ToscaDataDefinition { 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/GraphPropertyEnum.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnum.java index 311fac4e74..5376c92549 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnum.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnum.java @@ -56,6 +56,7 @@ public enum GraphPropertyEnum { ICONS( "icons", String.class, false, false), METADATA_KEYS( "metadataKeys", String.class, false, false), USE_SUBSTITUTION_FOR_NESTED_SERVICES("useServiceSubstitutionForNestedServices",Boolean.class,false,false), + NOT_APPLICABLE_METADATA_KEYS("notApplicableMetadataKeys",String.class,false,false), DATA_TYPES( "data_types", Map.class, false, false), //Archive/Restore IS_ARCHIVED( "isArchived", Boolean.class, false, true), -- cgit 1.2.3-korg