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