1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.assembly.data; |
17 |
|
|
18 |
|
import java.io.Serializable; |
19 |
|
import java.util.ArrayList; |
20 |
|
import java.util.List; |
21 |
|
import java.util.Map; |
22 |
|
|
23 |
|
import org.kuali.student.common.search.dto.SortDirection; |
24 |
|
|
|
|
| 50% |
Uncovered Elements: 46 (92) |
Complexity: 39 |
Complexity Density: 0.78 |
|
25 |
|
public class LookupMetadata implements Serializable { |
26 |
|
|
27 |
|
private static final long serialVersionUID = 1L; |
28 |
|
|
29 |
|
private String id; |
30 |
|
private String searchTypeId; |
31 |
|
private String name; |
32 |
|
private String desc; |
33 |
|
private String title; |
34 |
|
|
35 |
|
private List<LookupParamMetadata> params; |
36 |
|
|
37 |
|
private List<LookupResultMetadata> results; |
38 |
|
|
39 |
|
private LookupQosMetadata qosMetadata; |
40 |
|
|
41 |
|
private String searchParamIdKey; |
42 |
|
|
43 |
|
private String resultReturnKey; |
44 |
|
|
45 |
|
private String resultDisplayKey; |
46 |
|
|
47 |
|
private String resultSortKey; |
48 |
|
|
49 |
|
private Integer minQuerySize; |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
private SortDirection sortDirection; |
56 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
57 |
|
public enum Usage { |
58 |
|
DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM |
59 |
|
} |
60 |
|
|
61 |
|
private Usage usage; |
62 |
|
|
63 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
64 |
|
public enum Widget { |
65 |
|
NO_WIDGET, SUGGEST_BOX, ADVANCED_LIGHTBOX, DROP_DOWN, BUTTON, CHECKBOX_LIST, RADIO |
66 |
|
} |
67 |
|
private Widget widget; |
68 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
69 |
|
public enum WidgetOption { |
70 |
|
ADVANCED_LIGHTBOX_PREVIEW_MODE, ADVANCED_LIGHTBOX_ACTION_LABEL |
71 |
|
} |
72 |
|
|
73 |
|
private Map<WidgetOption, String> widgetOptions; |
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
2
|
public Map<WidgetOption, String> getWidgetOptions() {... |
76 |
2
|
return widgetOptions; |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0
|
public void setWidgetOptions(Map<WidgetOption, String> widgetOptions) {... |
80 |
0
|
this.widgetOptions = widgetOptions; |
81 |
|
} |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
83 |
0
|
public String getWidgetOptionValue(WidgetOption widgetOption) {... |
84 |
0
|
if (widgetOptions == null) return null; |
85 |
0
|
return widgetOptions.get(widgetOption); |
86 |
|
} |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
2
|
public String getName() {... |
89 |
2
|
return name; |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
21
|
public void setName(String name) {... |
93 |
21
|
this.name = name; |
94 |
|
} |
95 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
0
|
public String getDesc() {... |
97 |
0
|
return desc; |
98 |
|
} |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
21
|
public void setDesc(String desc) {... |
101 |
21
|
this.desc = desc; |
102 |
|
} |
103 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0
|
public String getTitle() {... |
105 |
0
|
return title; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
10
|
public void setTitle(String title) {... |
109 |
10
|
this.title = title; |
110 |
|
} |
111 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
112 |
4
|
public List<LookupParamMetadata> getParams() {... |
113 |
4
|
if (params == null) { |
114 |
0
|
params = new ArrayList<LookupParamMetadata>(); |
115 |
|
} |
116 |
4
|
return params; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
18
|
public void setParams(List<LookupParamMetadata> params) {... |
120 |
18
|
this.params = params; |
121 |
|
} |
122 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
123 |
0
|
public List<LookupResultMetadata> getResults() {... |
124 |
0
|
if (results == null) { |
125 |
0
|
results = new ArrayList<LookupResultMetadata>(); |
126 |
|
} |
127 |
0
|
return results; |
128 |
|
} |
129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
21
|
public void setResults(List<LookupResultMetadata> results) {... |
131 |
21
|
this.results = results; |
132 |
|
} |
133 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
6
|
public String getSearchTypeId() {... |
135 |
6
|
return searchTypeId; |
136 |
|
} |
137 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
138 |
21
|
public void setSearchTypeId(String searchTypeId) {... |
139 |
21
|
this.searchTypeId = searchTypeId; |
140 |
|
} |
141 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
142 |
0
|
public String getResultReturnKey() {... |
143 |
0
|
return resultReturnKey; |
144 |
|
} |
145 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
21
|
public void setResultReturnKey(String resultReturnKey) {... |
147 |
21
|
this.resultReturnKey = resultReturnKey; |
148 |
|
} |
149 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
150 |
0
|
public String getResultDisplayKey() {... |
151 |
0
|
return resultDisplayKey; |
152 |
|
} |
153 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
21
|
public void setResultDisplayKey(String resultDisplayKey) {... |
155 |
21
|
this.resultDisplayKey = resultDisplayKey; |
156 |
|
} |
157 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
0
|
public String getResultSortKey() {... |
159 |
0
|
return resultSortKey; |
160 |
|
} |
161 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
162 |
21
|
public void setResultSortKey(String resultSortKey) {... |
163 |
21
|
this.resultSortKey = resultSortKey; |
164 |
|
} |
165 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
0
|
public LookupQosMetadata getQosMetadata() {... |
167 |
0
|
return qosMetadata; |
168 |
|
} |
169 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
170 |
10
|
public void setQosMetadata(LookupQosMetadata qosMetadata) {... |
171 |
10
|
this.qosMetadata = qosMetadata; |
172 |
|
} |
173 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
174 |
0
|
public String getSearchParamIdKey() {... |
175 |
0
|
return searchParamIdKey; |
176 |
|
} |
177 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
178 |
10
|
public void setSearchParamIdKey(String searchParamIdKey) {... |
179 |
10
|
this.searchParamIdKey = searchParamIdKey; |
180 |
|
} |
181 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
182 |
2
|
public String getId() {... |
183 |
2
|
return id; |
184 |
|
} |
185 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
186 |
21
|
public void setId(String id) {... |
187 |
21
|
this.id = id; |
188 |
|
} |
189 |
|
|
190 |
|
|
191 |
|
@deprecated |
192 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
193 |
0
|
public Usage getUsage() {... |
194 |
0
|
return usage; |
195 |
|
} |
196 |
|
|
197 |
|
|
198 |
|
@deprecated |
199 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
200 |
21
|
public void setUsage(Usage usage) {... |
201 |
21
|
this.usage = usage; |
202 |
|
} |
203 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
204 |
4
|
public Widget getWidget() {... |
205 |
4
|
return widget; |
206 |
|
} |
207 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
208 |
10
|
public void setWidget(Widget widget) {... |
209 |
10
|
this.widget = widget; |
210 |
|
} |
211 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
212 |
0
|
public Integer getMinQuerySize() {... |
213 |
0
|
return minQuerySize; |
214 |
|
} |
215 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
216 |
10
|
public void setMinQuerySize(Integer minQuerySize) {... |
217 |
10
|
this.minQuerySize = minQuerySize; |
218 |
|
} |
219 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
220 |
0
|
public String toString(){... |
221 |
0
|
StringBuffer sb = new StringBuffer(); |
222 |
0
|
sb.append(id); |
223 |
0
|
sb.append(","); |
224 |
0
|
sb.append(searchTypeId); |
225 |
0
|
sb.append(","); |
226 |
0
|
sb.append(name); |
227 |
0
|
sb.append(","); |
228 |
0
|
sb.append(desc); |
229 |
0
|
return sb.toString(); |
230 |
|
} |
231 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
232 |
0
|
public SortDirection getSortDirection() {... |
233 |
0
|
return sortDirection; |
234 |
|
} |
235 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
236 |
10
|
public void setSortDirection(SortDirection sortDirection) {... |
237 |
10
|
this.sortDirection = sortDirection; |
238 |
|
} |
239 |
|
} |