diff options
author | vasraz <vasyl.razinkov@est.tech> | 2022-05-31 16:26:46 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-06-02 21:18:06 +0000 |
commit | a2313b70009cae09db66ccc7b542ec4679e6a23a (patch) | |
tree | 9b5fe3345bdb70979bc8acb214b15d49ac2e71ff /common-be/src | |
parent | 3274debd73e079c795eff3b6536018efc078794c (diff) |
Maintain VFC UI added properties after an upgrade
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I3d4c06f3f27057a08a47683d289e87bc6cb90bfa
Issue-ID: SDC-4012
Diffstat (limited to 'common-be/src')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java | 6 |
1 files changed, 4 insertions, 2 deletions
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<GetPolicyValueDataDefinition> getPolicyValues; private List<String> propertyConstraints; private Map<String, String> 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 |