From b8d71b90706577bd748371f90160c1862a8ce96a Mon Sep 17 00:00:00 2001 From: xuegao Date: Tue, 10 Nov 2020 15:05:47 +0100 Subject: Add type field Add type field for AttributeDataDefinition so that the type column is not empty in Catalog Attribute UI. Issue-ID: SDC-3358 Signed-off-by: xuegao Change-Id: I34150fbdeabc84a83989374ec3f59ebb7ae9194a --- .../org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java index c1e6dbaa43..4ca44423af 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java @@ -78,6 +78,10 @@ public abstract class ToscaDataDefinition { return (String) getToscaPresentationValue(JsonPresentationFields.VERSION); } + public void setType(String type) { + setToscaPresentationValue(JsonPresentationFields.TYPE, type); + } + public void setOwnerId(String ownerId) { setToscaPresentationValue(JsonPresentationFields.OWNER_ID, ownerId); } -- cgit 1.2.3-korg