private boolean allowEmptySequence;
+ private boolean allowUnpublishedEntries;
+
private int responseSize;
private boolean isSortAscending;
public String getQuery()
{
return fieldToSearchBy + searchTerm
- + (isAllowEmptySeq() ? "" : " AND molecule_sequence:['' TO *]");
+ + (isAllowEmptySeq() ? "" : " AND molecule_sequence:['' TO *]")
+ + (isAllowUnpublishedEntries() ? "" : " AND status:REL");
}
public String toString()
+ " isAsc: " + isAscending() + " Associated Seq : "
+ associatedSequence;
}
+
+ public boolean isAllowUnpublishedEntries()
+ {
+ return allowUnpublishedEntries;
+ }
+
+ public void setAllowUnpublishedEntries(boolean allowUnpublishedEntries)
+ {
+ this.allowUnpublishedEntries = allowUnpublishedEntries;
+ }
}