summaryrefslogtreecommitdiffstats
path: root/common-be/src/main/java
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-01-23 20:10:43 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-01-25 19:34:46 +0000
commit6e12c8ad59f11426e49f81c4a7032480b126bfbc (patch)
tree95ed2d948183f08afae133d16a6b0275f41f1058 /common-be/src/main/java
parentbd98d1022cac4cd0aaa6827b8eb4b7772b2fc033 (diff)
Implement hiding mechanism
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I799af15e31b724ca394eebe435223c03186fb6d3 Issue-ID: SDC-4344
Diffstat (limited to 'common-be/src/main/java')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/CategoryDataDefinition.java2
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java7
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnum.java1
3 files changed, 3 insertions, 7 deletions
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<String> icons;
private boolean useServiceSubstitutionForNestedServices = false;
private List<MetadataKeyDataDefinition> metadataKeys;
+ private List<String> 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),