Add type field 64/114764/5
authorxuegao <xue.gao@intl.att.com>
Tue, 10 Nov 2020 14:05:47 +0000 (15:05 +0100)
committerxuegao <xue.gao@intl.att.com>
Fri, 13 Nov 2020 10:09:20 +0000 (11:09 +0100)
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

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);
     }