View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.docstore.discovery.model;
17  
18  import java.util.List;
19  import java.util.Map;
20  
21  public class SearchParams {
22  	private String searchType;
23  	private String docCategory;
24  	private String docType;
25  	private String docFormat;
26  	private String searchTerm;
27  	private String fieldQuery;
28  	private List<String> facetFieldList;
29  	private String resultFromIndex;
30  	private String resultPageSize;
31  	private String resultPageIndex ;
32  	private List<String> fieldList;
33  	private List<String> highlightFieldList;
34  	private String sortBy;
35  	private String sortField;
36  	private String sortOrder;
37  	private List<SearchCondition> searchFieldsList;
38  	private String facetValue;
39  	private String facetField;
40  	private String solrSearchQueryString;
41  	private Map<String,String> facetTermsMap;
42  	private String facetTerms;
43  	private String operator;
44      private int facetMinCount;
45      private int facetLimit;
46      private int rows;
47      private int start;
48      private String searchTerms;
49      private String sortByTerms;
50      private String linkValue;
51      private String searchQuery;
52      private String facetPageSize;
53      private String facetPrefix;
54      private String facetSort;
55      private String facetOffset;
56  
57      public String getFacetOffset() {
58          return facetOffset;
59      }
60  
61      public void setFacetOffset(String facetOffset) {
62          this.facetOffset = facetOffset;
63      }
64  
65      public String getFacetSort() {
66          return facetSort;
67      }
68  
69      public void setFacetSort(String facetSort) {
70          this.facetSort = facetSort;
71      }
72  
73      public String getFacetPrefix() {
74          return facetPrefix;
75      }
76  
77      public void setFacetPrefix(String facetPrefix) {
78          this.facetPrefix = facetPrefix;
79      }
80  
81      public String getFacetPageSize() {
82  
83          return facetPageSize;
84      }
85  
86      public void setFacetPageSize(String facetPageSize) {
87          this.facetPageSize = facetPageSize;
88      }
89  
90      public String getSearchTerms() {
91          return searchTerms;
92      }
93  
94  
95      public void setSearchTerms(String searchTerms) {
96          this.searchTerms = searchTerms;
97      }
98  
99  
100     public String getSolrSearchQueryString() {
101 		return solrSearchQueryString;
102 	}
103 
104 	public void setSolrSearchQueryString(String solrSearchQueryString) {
105 		this.solrSearchQueryString = solrSearchQueryString;
106 	}
107 
108 	public String getFacetValue() {
109 		return facetValue;
110 	}
111 
112 	public void setFacetValue(String facetValue) {
113 		this.facetValue = facetValue;
114 	}
115 
116 	public List<SearchCondition> getSearchFieldsList() {
117 		return searchFieldsList;
118 	}
119 
120 	public void setSearchFieldsList(List<SearchCondition> searchFieldsList) {
121 		this.searchFieldsList = searchFieldsList;
122 	}
123 
124 	public List<String> getFieldList() {
125 		return fieldList;
126 	}
127 
128 	public void setFieldList(List<String> fieldList) {
129 		this.fieldList = fieldList;
130 	}
131 
132 	public int getRows() {
133 		return rows;
134 	}
135 
136 	public void setRows(int rows) {
137 		this.rows = rows;
138 	}
139 
140 	public int getStart() {
141 		return start;
142 	}
143 
144 	public void setStart(int start) {
145 		this.start = start;
146 	}
147 
148 	public String getSortField() {
149 		return sortField;
150 	}
151 
152 	public void setSortField(String sortField) {
153 		this.sortField = sortField;
154 	}
155 
156 	public int getFacetMinCount() {
157 		return facetMinCount;
158 	}
159 
160 	public void setFacetMinCount(int facetMinCount) {
161 		this.facetMinCount = facetMinCount;
162 	}
163 
164 	public int getFacetLimit() {
165 		return facetLimit;
166 	}
167 
168 	public void setFacetLimit(int facetLimit) {
169 		this.facetLimit = facetLimit;
170 	}
171 
172 	public String getOperator() {
173 		return operator;
174 	}
175 
176 	public void setOperator(String operator) {
177 		this.operator = operator;
178 	}
179 
180 	/**
181 	 * Initialize with suitable starting values.
182 	 */
183 	public void init() {
184 
185 	}
186 
187 	public String getSearchType() {
188 		return searchType;
189 	}
190 
191 	public void setSearchType(String searchType) {
192 		this.searchType = searchType;
193 	}
194 
195 	public String getDocCategory() {
196 		return docCategory;
197 	}
198 
199 	public void setDocCategory(String docCategory) {
200 		this.docCategory = docCategory;
201 	}
202 
203 	public String getDocType() {
204 		return docType;
205 	}
206 
207 	public void setDocType(String docType) {
208 		this.docType = docType;
209 	}
210 
211 	public String getDocFormat() {
212 		return docFormat;
213 	}
214 
215 	public void setDocFormat(String docFormat) {
216 		this.docFormat = docFormat;
217 	}
218 
219 	public String getFieldQuery() {
220 		return fieldQuery;
221 	}
222 
223 	public void setFieldQuery(String fieldQuery) {
224 		this.fieldQuery = fieldQuery;
225 	}
226 
227 	public List<String> getFacetFieldList() {
228 		return facetFieldList;
229 	}
230 
231 	public void setFacetFieldList(List<String> facetFieldList) {
232 		this.facetFieldList = facetFieldList;
233 	}
234 
235 	public String getResultFromIndex() {
236 		return resultFromIndex;
237 	}
238 
239 	public void setResultFromIndex(String resultFromIndex) {
240 		this.resultFromIndex = resultFromIndex;
241 	}
242 
243 	public String getResultPageSize() {
244 		return resultPageSize;
245 	}
246 
247 	public void setResultPageSize(String resultPageSize) {
248 		this.resultPageSize = resultPageSize;
249 	}
250 
251 	public List<String> getHighlightFieldList() {
252 		return highlightFieldList;
253 	}
254 
255 	public void setHighlightFieldList(List<String> highlightFieldList) {
256 		this.highlightFieldList = highlightFieldList;
257 	}
258 
259 	public String getSortBy() {
260 		return sortBy;
261 	}
262 
263 	public void setSortBy(String sortBy) {
264 		this.sortBy = sortBy;
265 	}
266 
267 	public String getSortOrder() {
268 		return sortOrder;
269 	}
270 
271 	public void setSortOrder(String sortOrder) {
272 		this.sortOrder = sortOrder;
273 	}
274 
275 	public String getSearchTerm() {
276 		return searchTerm;
277 	}
278 
279 	public void setSearchTerm(String searchTerm) {
280 		this.searchTerm = searchTerm;
281 	}
282 
283 	public String getFacetTerms() {
284 		return facetTerms;
285 	}
286 
287 	public void setFacetTerms(String facetTerms) {
288 		this.facetTerms = facetTerms;
289 	}
290 
291 	public Map<String, String> getFacetTermsMap() {
292 		return facetTermsMap;
293 	}
294 
295 	public void setFacetTermsMap(Map<String, String> facetTermsMap) {
296 		this.facetTermsMap = facetTermsMap;
297 	}
298 
299 	public String getFacetField() {
300 		return facetField;
301 	}
302 
303 	public void setFacetField(String facetField) {
304 		this.facetField = facetField;
305 	}
306 
307 	public String getResultPageIndex() {
308 		return resultPageIndex;
309 	}
310 
311 	public void setResultPageIndex(String resultPageIndex) {
312 		this.resultPageIndex = resultPageIndex;
313 	}
314 
315 
316     public String getSortByTerms() {
317         return sortByTerms;
318     }
319 
320 
321     public void setSortByTerms(String sortByTerms) {
322         this.sortByTerms = sortByTerms;
323     }
324 
325 
326     public String getLinkValue() {
327         return linkValue;
328     }
329 
330 
331     public void setLinkValue(String linkValue) {
332         this.linkValue = linkValue;
333     }
334 
335 
336     public String getSearchQuery() {
337         return searchQuery;
338     }
339 
340 
341     public void setSearchQuery(String query) {
342         this.searchQuery = query;
343     }
344 
345 }