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.ArrayList;
19  import java.util.List;
20  import java.util.Map;
21  
22  public class SearchParams {
23      private String searchType;
24      private String docCategory;
25      private String docType;
26      private String docFormat;
27      private String searchTerm;
28      private String fieldQuery;
29      private List<String> facetFieldList;
30      private String resultFromIndex;
31      private String resultPageSize;
32      private String resultPageIndex;
33      private List<String> fieldList;
34      private List<String> highlightFieldList;
35      private String sortBy;
36      private String sortField;
37      private String sortOrder;
38      private List<SearchCondition> searchFieldsList;
39      private String facetValue;
40      private String facetField;
41      private String solrSearchQueryString;
42      private Map<String, String> facetTermsMap;
43      private String facetTerms;
44      private String operator;
45      private int facetMinCount;
46      private int facetLimit;
47      private int rows;
48      private int start;
49      private int totalRecCount;
50      private String searchTerms;
51      private String sortByTerms;
52      private String linkValue;
53      private String searchQuery;
54      private String facetPageSize;
55      private String facetPrefix;
56      private String facetSort;
57      private String facetOffset;
58  
59      public int getTotalRecCount() {
60          return totalRecCount;
61      }
62  
63      public void setTotalRecCount(int totalRecCount) {
64          this.totalRecCount = totalRecCount;
65      }
66  
67      public String getFacetOffset() {
68          return facetOffset;
69      }
70  
71      public void setFacetOffset(String facetOffset) {
72          this.facetOffset = facetOffset;
73      }
74  
75      public String getFacetSort() {
76          return facetSort;
77      }
78  
79      public void setFacetSort(String facetSort) {
80          this.facetSort = facetSort;
81      }
82  
83      public String getFacetPrefix() {
84          return facetPrefix;
85      }
86  
87      public void setFacetPrefix(String facetPrefix) {
88          this.facetPrefix = facetPrefix;
89      }
90  
91      public String getFacetPageSize() {
92  
93          return facetPageSize;
94      }
95  
96      public void setFacetPageSize(String facetPageSize) {
97          this.facetPageSize = facetPageSize;
98      }
99  
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 }