From a2313b70009cae09db66ccc7b542ec4679e6a23a Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 31 May 2022 16:26:46 +0100 Subject: Maintain VFC UI added properties after an upgrade Signed-off-by: Vasyl Razinkov Change-Id: I3d4c06f3f27057a08a47683d289e87bc6cb90bfa Issue-ID: SDC-4012 --- .../openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common-be/src') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java index ff72f1f361..6b17c419e4 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java @@ -40,8 +40,8 @@ import org.openecomp.sdc.be.datatypes.tosca.ToscaGetFunctionType; @Data public class PropertyDataDefinition extends ToscaDataDefinition { - protected boolean definition = false; - protected Boolean hidden = Boolean.FALSE; + private boolean definition = false; + private Boolean hidden = Boolean.FALSE; private String uniqueId; // "boolean", "string", "float", "integer", "version" }) private String type; @@ -80,6 +80,7 @@ public class PropertyDataDefinition extends ToscaDataDefinition { private List getPolicyValues; private List propertyConstraints; private Map metadata; + private boolean userCreated; public PropertyDataDefinition() { super(); @@ -132,6 +133,7 @@ public class PropertyDataDefinition extends ToscaDataDefinition { setPropertyConstraints(new ArrayList<>(propertyDataDefinition.getPropertyConstraints())); } this.setIsDeclaredListInput(propertyDataDefinition.getIsDeclaredListInput()); + this.setUserCreated(propertyDataDefinition.isUserCreated()); } // @Override -- cgit 1.2.3-korg