1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.academiccalendar.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.Date; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAttribute; |
24 | |
import javax.xml.bind.annotation.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
27 | |
|
28 | |
import org.kuali.student.common.infc.ModelBuilder; |
29 | |
import org.kuali.student.common.dto.KeyEntityInfo; |
30 | |
import org.kuali.student.core.academiccalendar.infc.EnrollmentDateGroupInfc; |
31 | |
|
32 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
@XmlAccessorType(XmlAccessType.FIELD) |
43 | |
public class EnrollmentDateGroupInfo implements EnrollmentDateGroupInfc, Serializable { |
44 | |
|
45 | |
private static final long serialVersionUID = 1L; |
46 | |
|
47 | |
@XmlElement |
48 | |
private final Date registrationStart; |
49 | |
|
50 | |
@XmlElement |
51 | |
private final Date registrationEnd; |
52 | |
|
53 | |
@XmlElement |
54 | |
private final Date classStart; |
55 | |
|
56 | |
@XmlElement |
57 | |
private final Date classEnd; |
58 | |
|
59 | |
@XmlElement |
60 | |
private final Date addDate; |
61 | |
|
62 | |
@XmlElement |
63 | |
private final Date dropDate; |
64 | |
|
65 | |
@XmlElement |
66 | |
private final Date finalsStart; |
67 | |
|
68 | |
@XmlElement |
69 | |
private final Date finalsEnd; |
70 | |
|
71 | |
@XmlElement |
72 | |
private final Date gradingStart; |
73 | |
|
74 | |
@XmlElement |
75 | |
private final Date gradingEnd; |
76 | |
|
77 | 0 | private EnrollmentDateGroupInfo() { |
78 | 0 | registrationStart = null; |
79 | 0 | registrationEnd = null; |
80 | 0 | classStart = null; |
81 | 0 | classEnd = null; |
82 | 0 | addDate = null; |
83 | 0 | dropDate = null; |
84 | 0 | finalsStart = null; |
85 | 0 | finalsEnd = null; |
86 | 0 | gradingStart = null; |
87 | 0 | gradingEnd = null; |
88 | 0 | } |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | 0 | public EnrollmentDateGroupInfo(EnrollmentDateGroupInfc dateGroup) { |
97 | 0 | this.registrationStart = dateGroup.getRegistrationStartDate(); |
98 | 0 | this.registrationEnd = dateGroup.getRegistrationEndDate(); |
99 | 0 | this.classStart = dateGroup.getClassStartDate(); |
100 | 0 | this.classEnd = dateGroup.getClassEndDate(); |
101 | 0 | this.addDate = dateGroup.getAddDate(); |
102 | 0 | this.dropDate = dateGroup.getDropDate(); |
103 | 0 | this.finalsStart = dateGroup.getFinalExamStartDate(); |
104 | 0 | this.finalsEnd = dateGroup.getFinalExamEndDate(); |
105 | 0 | this.gradingStart = dateGroup.getGradingStartDate(); |
106 | 0 | this.gradingEnd = dateGroup.getGradingEndDate(); |
107 | 0 | } |
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
|
115 | |
|
116 | |
public Date getRegistrationStartDate() { |
117 | 0 | return registrationStart; |
118 | |
} |
119 | |
|
120 | |
|
121 | |
|
122 | |
|
123 | |
|
124 | |
|
125 | |
|
126 | |
public Date getRegistrationEndDate() { |
127 | 0 | return registrationEnd; |
128 | |
} |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
@Override |
137 | |
public Date getClassStartDate() { |
138 | 0 | return classStart; |
139 | |
} |
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
|
145 | |
|
146 | |
|
147 | |
@Override |
148 | |
public Date getClassEndDate() { |
149 | 0 | return classEnd; |
150 | |
} |
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
@Override |
159 | |
public Date getAddDate() { |
160 | 0 | return addDate; |
161 | |
} |
162 | |
|
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
@Override |
170 | |
public Date getDropDate() { |
171 | 0 | return dropDate; |
172 | |
} |
173 | |
|
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
|
179 | |
|
180 | |
@Override |
181 | |
public Date getFinalExamStartDate() { |
182 | 0 | return finalsStart; |
183 | |
} |
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
|
189 | |
|
190 | |
|
191 | |
@Override |
192 | |
public Date getFinalExamEndDate() { |
193 | 0 | return finalsEnd; |
194 | |
} |
195 | |
|
196 | |
|
197 | |
|
198 | |
|
199 | |
|
200 | |
|
201 | |
|
202 | |
@Override |
203 | |
public Date getGradingStartDate() { |
204 | 0 | return gradingStart; |
205 | |
} |
206 | |
|
207 | |
|
208 | |
|
209 | |
|
210 | |
|
211 | |
|
212 | |
|
213 | |
@Override |
214 | |
public Date getGradingEndDate() { |
215 | 0 | return gradingEnd; |
216 | |
} |
217 | |
|
218 | |
|
219 | |
|
220 | |
|
221 | 0 | public static class Builder implements ModelBuilder<EnrollmentDateGroupInfo>, EnrollmentDateGroupInfc { |
222 | |
|
223 | |
private Date registrationStart; |
224 | |
private Date registrationEnd; |
225 | |
private Date classStart; |
226 | |
private Date classEnd; |
227 | |
private Date addDate; |
228 | |
private Date dropDate; |
229 | |
private Date finalsStart; |
230 | |
private Date finalsEnd; |
231 | |
private Date gradingStart; |
232 | |
private Date gradingEnd; |
233 | |
|
234 | |
|
235 | |
|
236 | |
|
237 | 0 | public Builder() { |
238 | 0 | } |
239 | |
|
240 | |
|
241 | |
|
242 | |
|
243 | |
|
244 | 0 | public Builder(EnrollmentDateGroupInfc dateGroupInfo) { |
245 | 0 | registrationStart = dateGroupInfo.getRegistrationStartDate(); |
246 | 0 | registrationEnd = dateGroupInfo.getRegistrationStartDate(); |
247 | 0 | classStart = dateGroupInfo.getClassStartDate(); |
248 | 0 | classEnd = dateGroupInfo.getClassStartDate(); |
249 | 0 | addDate = dateGroupInfo.getAddDate(); |
250 | 0 | dropDate = dateGroupInfo.getDropDate(); |
251 | 0 | finalsStart = dateGroupInfo.getFinalExamStartDate(); |
252 | 0 | finalsEnd = dateGroupInfo.getFinalExamStartDate(); |
253 | 0 | gradingStart = dateGroupInfo.getGradingStartDate(); |
254 | 0 | gradingEnd = dateGroupInfo.getGradingStartDate(); |
255 | 0 | } |
256 | |
|
257 | |
|
258 | |
|
259 | |
|
260 | |
|
261 | |
|
262 | |
public EnrollmentDateGroupInfo build() { |
263 | 0 | return new EnrollmentDateGroupInfo(this); |
264 | |
} |
265 | |
|
266 | |
|
267 | |
|
268 | |
|
269 | |
|
270 | |
|
271 | |
|
272 | |
|
273 | |
@Override |
274 | |
public Date getRegistrationStartDate() { |
275 | 0 | return registrationStart; |
276 | |
} |
277 | |
|
278 | |
public void setRegistrationStartDate(Date date) { |
279 | 0 | this.registrationStart = date; |
280 | 0 | } |
281 | |
|
282 | |
|
283 | |
|
284 | |
|
285 | |
|
286 | |
|
287 | |
|
288 | |
@Override |
289 | |
public Date getRegistrationEndDate() { |
290 | 0 | return registrationEnd; |
291 | |
} |
292 | |
|
293 | |
public void setRegistrationEndDate(Date date) { |
294 | 0 | this.registrationEnd = date; |
295 | 0 | } |
296 | |
|
297 | |
|
298 | |
|
299 | |
|
300 | |
|
301 | |
|
302 | |
|
303 | |
@Override |
304 | |
public Date getClassStartDate() { |
305 | 0 | return classStart; |
306 | |
} |
307 | |
|
308 | |
public void setClassStartDate(Date date) { |
309 | 0 | this.classStart = date; |
310 | 0 | } |
311 | |
|
312 | |
|
313 | |
|
314 | |
|
315 | |
|
316 | |
|
317 | |
|
318 | |
@Override |
319 | |
public Date getClassEndDate() { |
320 | 0 | return classEnd; |
321 | |
} |
322 | |
|
323 | |
public void setClassEndDate(Date date) { |
324 | 0 | this.classEnd = date; |
325 | 0 | } |
326 | |
|
327 | |
|
328 | |
|
329 | |
|
330 | |
|
331 | |
|
332 | |
|
333 | |
@Override |
334 | |
public Date getAddDate() { |
335 | 0 | return addDate; |
336 | |
} |
337 | |
|
338 | |
public void setAddDate(Date date) { |
339 | 0 | this.addDate = date; |
340 | 0 | } |
341 | |
|
342 | |
|
343 | |
|
344 | |
|
345 | |
|
346 | |
|
347 | |
|
348 | |
@Override |
349 | |
public Date getDropDate() { |
350 | 0 | return dropDate; |
351 | |
} |
352 | |
|
353 | |
public void setDropDate(Date date) { |
354 | 0 | this.dropDate = date; |
355 | 0 | } |
356 | |
|
357 | |
|
358 | |
|
359 | |
|
360 | |
|
361 | |
|
362 | |
|
363 | |
@Override |
364 | |
public Date getFinalExamStartDate() { |
365 | 0 | return finalsStart; |
366 | |
} |
367 | |
|
368 | |
public void setFinalExamStartDate(Date date) { |
369 | 0 | this.finalsStart = date; |
370 | 0 | } |
371 | |
|
372 | |
|
373 | |
|
374 | |
|
375 | |
|
376 | |
|
377 | |
|
378 | |
@Override |
379 | |
public Date getFinalExamEndDate() { |
380 | 0 | return finalsEnd; |
381 | |
} |
382 | |
|
383 | |
public void setFinalExamEndDate(Date date) { |
384 | 0 | this.finalsEnd = date; |
385 | 0 | } |
386 | |
|
387 | |
|
388 | |
|
389 | |
|
390 | |
|
391 | |
|
392 | |
|
393 | |
@Override |
394 | |
public Date getGradingStartDate() { |
395 | 0 | return gradingStart; |
396 | |
} |
397 | |
|
398 | |
public void setGradingStartDate(Date date) { |
399 | 0 | this.gradingStart = date; |
400 | 0 | } |
401 | |
|
402 | |
|
403 | |
|
404 | |
|
405 | |
|
406 | |
|
407 | |
|
408 | |
@Override |
409 | |
public Date getGradingEndDate() { |
410 | 0 | return gradingEnd; |
411 | |
} |
412 | |
|
413 | |
public void setGradingEndDate(Date date) { |
414 | 0 | this.gradingEnd = date; |
415 | 0 | } |
416 | |
} |
417 | |
} |