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      
53  	public String getSearchTerms() {
54          return searchTerms;
55      }
56  
57  
58      public void setSearchTerms(String searchTerms) {
59          this.searchTerms = searchTerms;
60      }
61  
62  
63      public String getSolrSearchQueryString() {
64  		return solrSearchQueryString;
65  	}
66  
67  	public void setSolrSearchQueryString(String solrSearchQueryString) {
68  		this.solrSearchQueryString = solrSearchQueryString;
69  	}
70  
71  	public String getFacetValue() {
72  		return facetValue;
73  	}
74  
75  	public void setFacetValue(String facetValue) {
76  		this.facetValue = facetValue;
77  	}
78  
79  	public List<SearchCondition> getSearchFieldsList() {
80  		return searchFieldsList;
81  	}
82  
83  	public void setSearchFieldsList(List<SearchCondition> searchFieldsList) {
84  		this.searchFieldsList = searchFieldsList;
85  	}
86  
87  	public List<String> getFieldList() {
88  		return fieldList;
89  	}
90  
91  	public void setFieldList(List<String> fieldList) {
92  		this.fieldList = fieldList;
93  	}
94  
95  	public int getRows() {
96  		return rows;
97  	}
98  
99  	public void setRows(int rows) {
100 		this.rows = rows;
101 	}
102 
103 	public int getStart() {
104 		return start;
105 	}
106 
107 	public void setStart(int start) {
108 		this.start = start;
109 	}
110 
111 	public String getSortField() {
112 		return sortField;
113 	}
114 
115 	public void setSortField(String sortField) {
116 		this.sortField = sortField;
117 	}
118 
119 	public int getFacetMinCount() {
120 		return facetMinCount;
121 	}
122 
123 	public void setFacetMinCount(int facetMinCount) {
124 		this.facetMinCount = facetMinCount;
125 	}
126 
127 	public int getFacetLimit() {
128 		return facetLimit;
129 	}
130 
131 	public void setFacetLimit(int facetLimit) {
132 		this.facetLimit = facetLimit;
133 	}
134 
135 	public String getOperator() {
136 		return operator;
137 	}
138 
139 	public void setOperator(String operator) {
140 		this.operator = operator;
141 	}
142 
143 	/**
144 	 * Initialize with suitable starting values.
145 	 */
146 	public void init() {
147 
148 	}
149 
150 	public String getSearchType() {
151 		return searchType;
152 	}
153 
154 	public void setSearchType(String searchType) {
155 		this.searchType = searchType;
156 	}
157 
158 	public String getDocCategory() {
159 		return docCategory;
160 	}
161 
162 	public void setDocCategory(String docCategory) {
163 		this.docCategory = docCategory;
164 	}
165 
166 	public String getDocType() {
167 		return docType;
168 	}
169 
170 	public void setDocType(String docType) {
171 		this.docType = docType;
172 	}
173 
174 	public String getDocFormat() {
175 		return docFormat;
176 	}
177 
178 	public void setDocFormat(String docFormat) {
179 		this.docFormat = docFormat;
180 	}
181 
182 	public String getFieldQuery() {
183 		return fieldQuery;
184 	}
185 
186 	public void setFieldQuery(String fieldQuery) {
187 		this.fieldQuery = fieldQuery;
188 	}
189 
190 	public List<String> getFacetFieldList() {
191 		return facetFieldList;
192 	}
193 
194 	public void setFacetFieldList(List<String> facetFieldList) {
195 		this.facetFieldList = facetFieldList;
196 	}
197 
198 	public String getResultFromIndex() {
199 		return resultFromIndex;
200 	}
201 
202 	public void setResultFromIndex(String resultFromIndex) {
203 		this.resultFromIndex = resultFromIndex;
204 	}
205 
206 	public String getResultPageSize() {
207 		return resultPageSize;
208 	}
209 
210 	public void setResultPageSize(String resultPageSize) {
211 		this.resultPageSize = resultPageSize;
212 	}
213 
214 	public List<String> getHighlightFieldList() {
215 		return highlightFieldList;
216 	}
217 
218 	public void setHighlightFieldList(List<String> highlightFieldList) {
219 		this.highlightFieldList = highlightFieldList;
220 	}
221 
222 	public String getSortBy() {
223 		return sortBy;
224 	}
225 
226 	public void setSortBy(String sortBy) {
227 		this.sortBy = sortBy;
228 	}
229 
230 	public String getSortOrder() {
231 		return sortOrder;
232 	}
233 
234 	public void setSortOrder(String sortOrder) {
235 		this.sortOrder = sortOrder;
236 	}
237 
238 	public String getSearchTerm() {
239 		return searchTerm;
240 	}
241 
242 	public void setSearchTerm(String searchTerm) {
243 		this.searchTerm = searchTerm;
244 	}
245 
246 	public String getFacetTerms() {
247 		return facetTerms;
248 	}
249 
250 	public void setFacetTerms(String facetTerms) {
251 		this.facetTerms = facetTerms;
252 	}
253 
254 	public Map<String, String> getFacetTermsMap() {
255 		return facetTermsMap;
256 	}
257 
258 	public void setFacetTermsMap(Map<String, String> facetTermsMap) {
259 		this.facetTermsMap = facetTermsMap;
260 	}
261 
262 	public String getFacetField() {
263 		return facetField;
264 	}
265 
266 	public void setFacetField(String facetField) {
267 		this.facetField = facetField;
268 	}
269 
270 	public String getResultPageIndex() {
271 		return resultPageIndex;
272 	}
273 
274 	public void setResultPageIndex(String resultPageIndex) {
275 		this.resultPageIndex = resultPageIndex;
276 	}
277 
278 
279     public String getSortByTerms() {
280         return sortByTerms;
281     }
282 
283 
284     public void setSortByTerms(String sortByTerms) {
285         this.sortByTerms = sortByTerms;
286     }
287 
288 
289     public String getLinkValue() {
290         return linkValue;
291     }
292 
293 
294     public void setLinkValue(String linkValue) {
295         this.linkValue = linkValue;
296     }
297 
298 
299     public String getSearchQuery() {
300         return searchQuery;
301     }
302 
303 
304     public void setSearchQuery(String query) {
305         this.searchQuery = query;
306     }
307 
308 }