summaryrefslogtreecommitdiffstats
path: root/common-be/src/main
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2021-04-08 17:19:09 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2021-04-13 12:52:02 +0000
commit49768b4d9b5d2a7a8827919063c8ce919ff39e62 (patch)
treeb8e4c6341abe66e7ce164eba16d2aa9173516e51 /common-be/src/main
parent88a3a7f6952fc5da7008b318be55636d784b3717 (diff)
Fix attribute create and update actions
Issue-ID: SDC-3551 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I7cac2c793254eec824e1d5365383a8deeccaa1d4
Diffstat (limited to 'common-be/src/main')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
index ea693efe40..cffab12f90 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
@@ -53,6 +53,7 @@ public class AttributeDataDefinition extends ToscaDataDefinition {
this.setValue(attributeDataDefinition.getValue());
this.setStatus(attributeDataDefinition.getStatus());
this.setEntry_schema(attributeDataDefinition.getEntry_schema());
+ this.setSchema(attributeDataDefinition.getSchema());
this.setOutputPath(attributeDataDefinition.getOutputPath());
this.setInstanceUniqueId(attributeDataDefinition.getInstanceUniqueId());
this.setAttributeId(attributeDataDefinition.getAttributeId());
@@ -127,7 +128,11 @@ public class AttributeDataDefinition extends ToscaDataDefinition {
}
public SchemaDefinition getSchema() {
- return null;
+ return (SchemaDefinition) getToscaPresentationValue(JsonPresentationFields.SCHEMA);
+ }
+
+ public void setSchema(final SchemaDefinition schema) {
+ setToscaPresentationValue(JsonPresentationFields.SCHEMA, schema);
}
public String getParentUniqueId() {