diff --git a/hoot-services/src/main/java/hoot/services/controllers/grail/GrailParams.java b/hoot-services/src/main/java/hoot/services/controllers/grail/GrailParams.java
index 92d11be..e9db6f6 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/grail/GrailParams.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/grail/GrailParams.java
@@ -73,6 +73,9 @@ public class GrailParams {
@JsonProperty("maxBBoxSize")
private Double maxSize;
+ @JsonProperty("customQuery")
+ private String customQuery;
+
private String consumerKey;
private String consumerSecret;
@@ -81,6 +84,26 @@ public class GrailParams {
private String conflationType;
+ public GrailParams() {}
+
+ public GrailParams(GrailParams params) {
+ this.bounds = params.getBounds();
+ this.applyTags = params.getApplyTags();
+ this.user = params.getUser();
+ this.input1 = params.getInput1();
+ this.input2 = params.getInput2();
+ this.output = params.getOutput();
+ this.parentId = params.getParentId();
+ this.pullUrl = params.getPullUrl();
+ this.pushUrl = params.getPushUrl();
+ this.maxSize = params.getMaxBBoxSize();
+ this.customQuery = params.getCustomQuery();
+ this.consumerKey = params.getConsumerKey();
+ this.consumerSecret = params.getConsumerSecret();
+ this.workDir = params.getWorkDir();
+ this.conflationType = params.getConflationType();
+ }
+
public String getConflationType() {
return conflationType;
}
@@ -193,6 +216,14 @@ public class GrailParams {
return consumerSecret;
}
+ public void setCustomQuery(String customQuery) {
+ this.customQuery = customQuery;
+ }
+
+ public String getCustomQuery() {
+ return customQuery;
+ }
+
@Override
public String toString() {
return "GrailParams{" +