001/* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.docstore.discovery.model; 017 018import java.util.ArrayList; 019import java.util.List; 020import java.util.Map; 021 022public class SearchParams { 023 private String searchType; 024 private String docCategory; 025 private String docType; 026 private String docFormat; 027 private String searchTerm; 028 private String fieldQuery; 029 private List<String> facetFieldList; 030 private String resultFromIndex; 031 private String resultPageSize; 032 private String resultPageIndex; 033 private List<String> fieldList; 034 private List<String> highlightFieldList; 035 private String sortBy; 036 private String sortField; 037 private String sortOrder; 038 private List<SearchCondition> searchFieldsList; 039 private String facetValue; 040 private String facetField; 041 private String solrSearchQueryString; 042 private Map<String, String> facetTermsMap; 043 private String facetTerms; 044 private String operator; 045 private int facetMinCount; 046 private int facetLimit; 047 private int rows; 048 private int start; 049 private int totalRecCount; 050 private String searchTerms; 051 private String sortByTerms; 052 private String linkValue; 053 private String searchQuery; 054 private String facetPageSize; 055 private String facetPrefix; 056 private String facetSort; 057 private String facetOffset; 058 059 public int getTotalRecCount() { 060 return totalRecCount; 061 } 062 063 public void setTotalRecCount(int totalRecCount) { 064 this.totalRecCount = totalRecCount; 065 } 066 067 public String getFacetOffset() { 068 return facetOffset; 069 } 070 071 public void setFacetOffset(String facetOffset) { 072 this.facetOffset = facetOffset; 073 } 074 075 public String getFacetSort() { 076 return facetSort; 077 } 078 079 public void setFacetSort(String facetSort) { 080 this.facetSort = facetSort; 081 } 082 083 public String getFacetPrefix() { 084 return facetPrefix; 085 } 086 087 public void setFacetPrefix(String facetPrefix) { 088 this.facetPrefix = facetPrefix; 089 } 090 091 public String getFacetPageSize() { 092 093 return facetPageSize; 094 } 095 096 public void setFacetPageSize(String facetPageSize) { 097 this.facetPageSize = facetPageSize; 098 } 099 100 public String getSearchTerms() { 101 return searchTerms; 102 } 103 104 105 public void setSearchTerms(String searchTerms) { 106 this.searchTerms = searchTerms; 107 } 108 109 110 public String getSolrSearchQueryString() { 111 return solrSearchQueryString; 112 } 113 114 public void setSolrSearchQueryString(String solrSearchQueryString) { 115 this.solrSearchQueryString = solrSearchQueryString; 116 } 117 118 public String getFacetValue() { 119 return facetValue; 120 } 121 122 public void setFacetValue(String facetValue) { 123 this.facetValue = facetValue; 124 } 125 126 public List<SearchCondition> getSearchFieldsList() { 127 if (null == searchFieldsList) { 128 searchFieldsList = new ArrayList<SearchCondition>(); 129 } 130 return searchFieldsList; 131 } 132 133 public void setSearchFieldsList(List<SearchCondition> searchFieldsList) { 134 this.searchFieldsList = searchFieldsList; 135 } 136 137 public List<String> getFieldList() { 138 return fieldList; 139 } 140 141 public void setFieldList(List<String> fieldList) { 142 this.fieldList = fieldList; 143 } 144 145 public int getRows() { 146 return rows; 147 } 148 149 public void setRows(int rows) { 150 this.rows = rows; 151 } 152 153 public int getStart() { 154 return start; 155 } 156 157 public void setStart(int start) { 158 this.start = start; 159 } 160 161 public String getSortField() { 162 return sortField; 163 } 164 165 public void setSortField(String sortField) { 166 this.sortField = sortField; 167 } 168 169 public int getFacetMinCount() { 170 return facetMinCount; 171 } 172 173 public void setFacetMinCount(int facetMinCount) { 174 this.facetMinCount = facetMinCount; 175 } 176 177 public int getFacetLimit() { 178 return facetLimit; 179 } 180 181 public void setFacetLimit(int facetLimit) { 182 this.facetLimit = facetLimit; 183 } 184 185 public String getOperator() { 186 return operator; 187 } 188 189 public void setOperator(String operator) { 190 this.operator = operator; 191 } 192 193 /** 194 * Initialize with suitable starting values. 195 */ 196 public void init() { 197 198 } 199 200 public String getSearchType() { 201 return searchType; 202 } 203 204 public void setSearchType(String searchType) { 205 this.searchType = searchType; 206 } 207 208 public String getDocCategory() { 209 return docCategory; 210 } 211 212 public void setDocCategory(String docCategory) { 213 this.docCategory = docCategory; 214 } 215 216 public String getDocType() { 217 return docType; 218 } 219 220 public void setDocType(String docType) { 221 this.docType = docType; 222 } 223 224 public String getDocFormat() { 225 return docFormat; 226 } 227 228 public void setDocFormat(String docFormat) { 229 this.docFormat = docFormat; 230 } 231 232 public String getFieldQuery() { 233 return fieldQuery; 234 } 235 236 public void setFieldQuery(String fieldQuery) { 237 this.fieldQuery = fieldQuery; 238 } 239 240 public List<String> getFacetFieldList() { 241 return facetFieldList; 242 } 243 244 public void setFacetFieldList(List<String> facetFieldList) { 245 this.facetFieldList = facetFieldList; 246 } 247 248 public String getResultFromIndex() { 249 return resultFromIndex; 250 } 251 252 public void setResultFromIndex(String resultFromIndex) { 253 this.resultFromIndex = resultFromIndex; 254 } 255 256 public String getResultPageSize() { 257 return resultPageSize; 258 } 259 260 public void setResultPageSize(String resultPageSize) { 261 this.resultPageSize = resultPageSize; 262 } 263 264 public List<String> getHighlightFieldList() { 265 return highlightFieldList; 266 } 267 268 public void setHighlightFieldList(List<String> highlightFieldList) { 269 this.highlightFieldList = highlightFieldList; 270 } 271 272 public String getSortBy() { 273 return sortBy; 274 } 275 276 public void setSortBy(String sortBy) { 277 this.sortBy = sortBy; 278 } 279 280 public String getSortOrder() { 281 return sortOrder; 282 } 283 284 public void setSortOrder(String sortOrder) { 285 this.sortOrder = sortOrder; 286 } 287 288 public String getSearchTerm() { 289 return searchTerm; 290 } 291 292 public void setSearchTerm(String searchTerm) { 293 this.searchTerm = searchTerm; 294 } 295 296 public String getFacetTerms() { 297 return facetTerms; 298 } 299 300 public void setFacetTerms(String facetTerms) { 301 this.facetTerms = facetTerms; 302 } 303 304 public Map<String, String> getFacetTermsMap() { 305 return facetTermsMap; 306 } 307 308 public void setFacetTermsMap(Map<String, String> facetTermsMap) { 309 this.facetTermsMap = facetTermsMap; 310 } 311 312 public String getFacetField() { 313 return facetField; 314 } 315 316 public void setFacetField(String facetField) { 317 this.facetField = facetField; 318 } 319 320 public String getResultPageIndex() { 321 return resultPageIndex; 322 } 323 324 public void setResultPageIndex(String resultPageIndex) { 325 this.resultPageIndex = resultPageIndex; 326 } 327 328 329 public String getSortByTerms() { 330 return sortByTerms; 331 } 332 333 334 public void setSortByTerms(String sortByTerms) { 335 this.sortByTerms = sortByTerms; 336 } 337 338 339 public String getLinkValue() { 340 return linkValue; 341 } 342 343 344 public void setLinkValue(String linkValue) { 345 this.linkValue = linkValue; 346 } 347 348 349 public String getSearchQuery() { 350 return searchQuery; 351 } 352 353 354 public void setSearchQuery(String query) { 355 this.searchQuery = query; 356 } 357 358}