Skip to content

Commit

Permalink
add isBIE param for /speciesList/
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Collins committed Feb 20, 2024
1 parent a0f8a27 commit aa7aeec
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class RESTSpeciesListQuery {
String isPrivate;
String isInvasive;
String isThreatened;
String isBIE;

public boolean isEmpty() {
if ((id != null && !id.isEmpty())
Expand All @@ -42,7 +43,8 @@ public boolean isEmpty() {
|| (isAuthoritative != null && !isAuthoritative.isEmpty())
|| (isPrivate != null && !isPrivate.isEmpty())
|| (isInvasive != null && !isInvasive.isEmpty())
|| (isThreatened != null && !isThreatened.isEmpty())) {
|| (isThreatened != null && !isThreatened.isEmpty())
|| (isBIE != null && !isBIE.isEmpty())) {
return false;
}
return true;
Expand All @@ -54,6 +56,7 @@ public SpeciesList convertTo() {
s.setIsAuthoritative(parseBoolean(removeQueryExpr(this.isAuthoritative)));
s.setIsInvasive(parseBoolean(removeQueryExpr(this.isInvasive)));
s.setIsThreatened(parseBoolean(removeQueryExpr(this.isThreatened)));
s.setIsBIE(parseBoolean(removeQueryExpr(this.isBIE)));
s.setCategory(this.category);
s.setRegion(this.region);
s.setLicence(this.licence);
Expand Down

0 comments on commit aa7aeec

Please sign in to comment.