Skip to content

Commit

Permalink
EPMRPP-87613 || Add back compatibility with older plugins (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik authored Nov 16, 2023
1 parent 508b9ef commit 83f012f
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ public class PostFormField implements Comparable<PostFormField>, Serializable {
@JsonProperty(value = "definedValues")
private List<AllowedValue> definedValues;

public PostFormField(String id, String name, String type, boolean isReq, List<String> values,
List<AllowedValue> 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;
Expand All @@ -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;
}

}

0 comments on commit 83f012f

Please sign in to comment.