summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxuegao <xue.gao@intl.att.com>2020-11-10 15:05:47 +0100
committerS�bastien Determe <sebastien.determe@intl.att.com>2020-11-13 15:21:28 +0000
commitd5f6ad87a80e5cab91227f65c894e66fa2856b18 (patch)
tree55a7eb8bee340230cfb9a29ef6d4f8392d2d9a59
parent0cad42dcc7ee4c2c987381d4aeee83571c70e97c (diff)
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 <xue.gao@intl.att.com> Change-Id: I34150fbdeabc84a83989374ec3f59ebb7ae9194a (cherry picked from commit b8d71b90706577bd748371f90160c1862a8ce96a)
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java4
1 files changed, 4 insertions, 0 deletions
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);
}