From 83f012f84c458f54bbca20729a9989e0fed384bd Mon Sep 17 00:00:00 2001 From: PeeAyBee Date: Thu, 16 Nov 2023 20:40:57 +0300 Subject: [PATCH] EPMRPP-87613 || Add back compatibility with older plugins (#361) --- .../model/externalsystem/PostFormField.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/com/epam/ta/reportportal/ws/model/externalsystem/PostFormField.java b/src/main/java/com/epam/ta/reportportal/ws/model/externalsystem/PostFormField.java index 0fb97151..8113e391 100644 --- a/src/main/java/com/epam/ta/reportportal/ws/model/externalsystem/PostFormField.java +++ b/src/main/java/com/epam/ta/reportportal/ws/model/externalsystem/PostFormField.java @@ -94,6 +94,16 @@ public class PostFormField implements Comparable, Serializable { @JsonProperty(value = "definedValues") private List definedValues; + public PostFormField(String id, String name, String type, boolean isReq, List values, + List defValues) { + this.id = id; + this.fieldName = name; + this.fieldType = type; + this.isRequired = isReq; + this.value = values; + this.definedValues = defValues; + } + public PostFormField(String id, String fieldName, String fieldType, boolean isRequired, String commandName) { this.id = id; @@ -109,4 +119,13 @@ public int compareTo(PostFormField field) { Boolean byField = field.isRequired; return byField.compareTo(current); } + + public void setIsRequired(boolean value) { + this.isRequired = value; + } + + public boolean getIsRequired() { + return isRequired; + } + } \ No newline at end of file