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 /common-be/src/main/java | |
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 'common-be/src/main/java')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/category/MetadataKeyDataDefinition.java | 2 | ||||
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/MetadataKeyEnum.java | 3 |
2 files changed, 4 insertions, 1 deletions
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 4d8a197473..3278ec65ea 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 @@ -35,10 +35,12 @@ public class MetadataKeyDataDefinition extends ToscaDataDefinition { private String name; private List<String> validValues; private boolean mandatory; + private String defaultValue; public MetadataKeyDataDefinition(MetadataKeyDataDefinition metadataKeyDataDefinition) { this.name = metadataKeyDataDefinition.name; 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 138c60b4e0..aab37d1ff0 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 @@ -27,7 +27,8 @@ public enum MetadataKeyEnum { METADATA_KEYS("metadataKeys"), NAME("name"), MANDATORY("mandatory"), - VALID_VALUES("validValues"); + VALID_VALUES("validValues"), + DEFAULT("default"); private final String name; |