Add type field 40/114840/1
authorxuegao <xue.gao@intl.att.com>
Tue, 10 Nov 2020 14:05:47 +0000 (15:05 +0100)
committerS�bastien Determe <sebastien.determe@intl.att.com>
Fri, 13 Nov 2020 15:21:28 +0000 (15:21 +0000)
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 <xue.gao@intl.att.com>
Change-Id: I34150fbdeabc84a83989374ec3f59ebb7ae9194a
(cherry picked from commit b8d71b90706577bd748371f90160c1862a8ce96a)

common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java

index c1e6dba..4ca4442 100644 (file)
@@ -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);
     }