1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.search.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.List; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
|
25 | |
@XmlAccessorType(XmlAccessType.FIELD) |
26 | 0 | public class SearchRequest implements Serializable { |
27 | |
private static final long serialVersionUID = 1L; |
28 | |
private String searchKey; |
29 | |
private List<SearchParam> params; |
30 | |
private String sortColumn; |
31 | |
private SortDirection sortDirection; |
32 | |
private Integer startAt; |
33 | |
private Integer maxResults; |
34 | |
private Boolean neededTotalResults; |
35 | |
|
36 | |
public String getSearchKey() { |
37 | 0 | return searchKey; |
38 | |
} |
39 | |
public void setSearchKey(String searchKey) { |
40 | 0 | this.searchKey = searchKey; |
41 | 0 | } |
42 | |
public List<SearchParam> getParams() { |
43 | 0 | if(params == null){ |
44 | 0 | params = new ArrayList<SearchParam>(); |
45 | |
} |
46 | 0 | return params; |
47 | |
} |
48 | |
public void setParams(List<SearchParam> params) { |
49 | 0 | this.params = params; |
50 | 0 | } |
51 | |
public String getSortColumn() { |
52 | 0 | return sortColumn; |
53 | |
} |
54 | |
public void setSortColumn(String sortColumn) { |
55 | 0 | this.sortColumn = sortColumn; |
56 | 0 | } |
57 | |
public SortDirection getSortDirection() { |
58 | 0 | return sortDirection; |
59 | |
} |
60 | |
public void setSortDirection(SortDirection sortDirection) { |
61 | 0 | this.sortDirection = sortDirection; |
62 | 0 | } |
63 | |
public Integer getStartAt() { |
64 | 0 | return startAt; |
65 | |
} |
66 | |
public void setStartAt(Integer startAt) { |
67 | 0 | this.startAt = startAt; |
68 | 0 | } |
69 | |
public Integer getMaxResults() { |
70 | 0 | return maxResults; |
71 | |
} |
72 | |
public void setMaxResults(Integer maxResults) { |
73 | 0 | this.maxResults = maxResults; |
74 | 0 | } |
75 | |
public Boolean getNeededTotalResults() { |
76 | 0 | return neededTotalResults; |
77 | |
} |
78 | |
public void setNeededTotalResults(Boolean neededTotalResults) { |
79 | 0 | this.neededTotalResults = neededTotalResults; |
80 | 0 | } |
81 | |
@Override |
82 | |
public String toString() { |
83 | 0 | return "SearchRequest [searchKey=" + searchKey + ", params=" + params |
84 | |
+ ", sortColumn=" + sortColumn + ", sortDirection=" |
85 | |
+ sortDirection + ", startAt=" + startAt + ", maxResults=" |
86 | |
+ maxResults + ", neededTotalResults=" + neededTotalResults |
87 | |
+ "]"; |
88 | |
} |
89 | |
|
90 | |
} |