1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.ui.server.gwt; |
17 | |
|
18 | |
import org.apache.log4j.Logger; |
19 | |
import org.kuali.student.common.ui.client.service.SearchRpcService; |
20 | |
import org.kuali.student.core.exceptions.MissingParameterException; |
21 | |
import org.kuali.student.core.search.dto.SearchRequest; |
22 | |
import org.kuali.student.core.search.dto.SearchResult; |
23 | |
import org.kuali.student.core.search.service.SearchDispatcher; |
24 | |
|
25 | |
import com.google.gwt.user.server.rpc.RemoteServiceServlet; |
26 | |
|
27 | |
public class SearchDispatchRpcGwtServlet extends RemoteServiceServlet implements SearchRpcService{ |
28 | |
|
29 | |
private static final long serialVersionUID = 1L; |
30 | |
|
31 | 0 | final Logger LOG = Logger.getLogger(SearchDispatchRpcGwtServlet.class); |
32 | |
private SearchDispatcher searchDispatcher; |
33 | |
public SearchDispatchRpcGwtServlet() { |
34 | 0 | super(); |
35 | 0 | } |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
@Override |
44 | |
public SearchResult search(SearchRequest searchRequest) { |
45 | 0 | return searchDispatcher.dispatchSearch(searchRequest); |
46 | |
} |
47 | |
|
48 | |
public void setSearchDispatcher(SearchDispatcher searchDispatcher) { |
49 | 0 | this.searchDispatcher = searchDispatcher; |
50 | 0 | } |
51 | |
} |