1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.enrollment.courseoffering.dto; |
18 | |
|
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 | |
import javax.xml.bind.annotation.XmlAnyElement; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
|
28 | |
import org.kuali.student.enrollment.courseoffering.infc.CourseOffering; |
29 | |
import org.kuali.student.enrollment.courseoffering.infc.OfferingInstructor; |
30 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
31 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
32 | |
import org.kuali.student.r2.lum.lrc.dto.ResultValuesGroupInfo; |
33 | |
import org.kuali.student.r2.lum.clu.dto.ExpenditureInfo; |
34 | |
import org.kuali.student.r2.lum.clu.dto.FeeInfo; |
35 | |
import org.kuali.student.r2.lum.clu.dto.RevenueInfo; |
36 | |
import org.w3c.dom.Element; |
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
42 | |
@XmlType(name = "CourseOfferingInfo", propOrder = { |
43 | |
"id", "typeKey", "stateKey", "descr", "courseId", |
44 | |
"termId", "courseOfferingCode", "courseNumberSuffix", "courseOfferingTitle", |
45 | |
"isHonorsOffering", "instructors", "subjectArea", "unitsDeploymentOrgIds", |
46 | |
"unitsContentOwnerOrgIds", "maximumEnrollment", |
47 | |
"minimumEnrollment", "jointOfferingIds", "gradingOptionId", |
48 | |
"registrationGradingOptionIds", "creditOptionDisplay", "creditOptionId", |
49 | |
"waitlistLevelTypeKey", "hasWaitlist", "waitlistTypeKey","campusLocations", |
50 | |
"hasFinalExam", "isEvaluated", "fundingSource", "isFeeAtActivityOffering", |
51 | |
"isFinancialAidEligible", |
52 | |
"meta", "attributes", "_futureElements"}) |
53 | |
|
54 | |
public class CourseOfferingInfo extends IdNamelessEntityInfo implements CourseOffering { |
55 | |
|
56 | |
private static final long serialVersionUID = 1L; |
57 | |
|
58 | |
@XmlElement |
59 | |
private String courseId; |
60 | |
|
61 | |
@XmlElement |
62 | |
private String termId; |
63 | |
|
64 | |
@XmlElement |
65 | |
private String courseOfferingTitle; |
66 | |
|
67 | |
@XmlElement |
68 | |
private RichTextInfo descr; |
69 | |
|
70 | |
@XmlElement |
71 | |
private String courseOfferingCode; |
72 | |
|
73 | |
@XmlElement |
74 | |
private String courseNumberSuffix; |
75 | |
|
76 | |
@XmlElement |
77 | |
private String subjectArea; |
78 | |
|
79 | |
@XmlElement |
80 | |
private Boolean isHonorsOffering; |
81 | |
|
82 | |
@XmlElement |
83 | |
private List<String> campusLocations; |
84 | |
|
85 | |
@XmlElement |
86 | |
private List<OfferingInstructorInfo> instructors; |
87 | |
|
88 | |
@XmlElement |
89 | |
private List<String> unitsDeploymentOrgIds; |
90 | |
|
91 | |
@XmlElement |
92 | |
private List<String> unitsContentOwnerOrgIds; |
93 | |
|
94 | |
@XmlElement |
95 | |
private String gradingOptionId; |
96 | |
|
97 | |
@XmlElement |
98 | |
private List<String> registrationGradingOptionIds; |
99 | |
|
100 | |
@XmlElement |
101 | |
private String creditOptionDisplay; |
102 | |
|
103 | |
@XmlElement |
104 | |
private String creditOptionId; |
105 | |
|
106 | |
@XmlElement |
107 | |
private Boolean hasWaitlist; |
108 | |
|
109 | |
@XmlElement |
110 | |
private String waitlistTypeKey; |
111 | |
|
112 | |
@XmlElement |
113 | |
private String waitlistLevelTypeKey; |
114 | |
|
115 | |
@XmlElement |
116 | |
private Integer maximumEnrollment; |
117 | |
|
118 | |
@XmlElement |
119 | |
private Integer minimumEnrollment; |
120 | |
|
121 | |
@XmlElement |
122 | |
private Boolean hasFinalExam; |
123 | |
|
124 | |
@XmlElement |
125 | |
private List<String> jointOfferingIds; |
126 | |
|
127 | |
@XmlElement |
128 | |
private String fundingSource; |
129 | |
|
130 | |
@XmlElement |
131 | |
private Boolean isFinancialAidEligible; |
132 | |
|
133 | |
@XmlElement |
134 | |
private Boolean isEvaluated; |
135 | |
|
136 | |
@XmlElement |
137 | |
private Boolean isFeeAtActivityOffering; |
138 | |
|
139 | |
@XmlAnyElement |
140 | |
private List<Element> _futureElements; |
141 | |
|
142 | |
|
143 | |
|
144 | |
|
145 | |
|
146 | 0 | public CourseOfferingInfo() { |
147 | 0 | } |
148 | |
|
149 | |
|
150 | |
|
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
public CourseOfferingInfo(CourseOffering offering) { |
156 | |
|
157 | 0 | super(offering); |
158 | |
|
159 | 0 | if (offering == null) { |
160 | 0 | return; |
161 | |
} |
162 | |
|
163 | 0 | this.courseId = offering.getCourseId(); |
164 | 0 | this.termId = offering.getTermId(); |
165 | |
|
166 | |
|
167 | 0 | this.courseOfferingTitle = offering.getCourseOfferingTitle(); |
168 | 0 | this.courseOfferingCode = offering.getCourseOfferingCode(); |
169 | 0 | this.courseNumberSuffix = offering.getCourseNumberSuffix(); |
170 | 0 | this.subjectArea = offering.getSubjectArea(); |
171 | 0 | this.isHonorsOffering = offering.getIsHonorsOffering(); |
172 | |
|
173 | 0 | this.instructors = new ArrayList<OfferingInstructorInfo>(); |
174 | 0 | for (OfferingInstructor instructor : offering.getInstructors()) { |
175 | 0 | this.instructors.add(new OfferingInstructorInfo(instructor)); |
176 | |
} |
177 | |
|
178 | 0 | this.unitsDeploymentOrgIds = offering.getUnitsDeploymentOrgIds(); |
179 | 0 | this.unitsContentOwnerOrgIds = offering.getUnitsContentOwnerOrgIds(); |
180 | |
|
181 | 0 | this.gradingOptionId = offering.getGradingOptionId(); |
182 | 0 | this.registrationGradingOptionIds = (null != offering.getRegistrationGradingOptionIds()) ? new ArrayList<String>(offering.getRegistrationGradingOptionIds()) : null; |
183 | 0 | this.creditOptionDisplay = offering.getCreditOptionDisplay(); |
184 | 0 | this.creditOptionId = offering.getCreditOptionId(); |
185 | |
|
186 | 0 | this.campusLocations = (null != offering.getCampusLocations()) ? new ArrayList<String>(offering.getCampusLocations()) : null; |
187 | |
|
188 | 0 | this.waitlistTypeKey = offering.getWaitlistTypeKey(); |
189 | 0 | this.maximumEnrollment = offering.getMaximumEnrollment(); |
190 | 0 | this.minimumEnrollment = offering.getMinimumEnrollment(); |
191 | |
|
192 | 0 | this.jointOfferingIds = (null != offering.getJointOfferingIds()) ? new ArrayList<String>( |
193 | |
offering.getJointOfferingIds()) : null; |
194 | |
|
195 | |
|
196 | 0 | this.hasWaitlist = (null != offering.getHasWaitlist()) ? new Boolean(offering.getHasWaitlist()) : null; |
197 | |
|
198 | 0 | this.waitlistLevelTypeKey = offering.getWaitlistLevelTypeKey(); |
199 | |
|
200 | 0 | this.isEvaluated = offering.getIsEvaluated(); |
201 | 0 | this.fundingSource = offering.getFundingSource(); |
202 | |
|
203 | 0 | this.isFinancialAidEligible = offering.getIsFinancialAidEligible(); |
204 | 0 | if (offering.getDescr() != null) { |
205 | 0 | this.descr = new RichTextInfo(offering.getDescr()); |
206 | |
} |
207 | |
|
208 | 0 | this.isFeeAtActivityOffering = offering.getIsFeeAtActivityOffering(); |
209 | 0 | this.hasFinalExam = offering.getHasFinalExam(); |
210 | 0 | } |
211 | |
|
212 | |
@Override |
213 | |
public String getCourseId() { |
214 | 0 | return this.courseId; |
215 | |
} |
216 | |
|
217 | |
public void setCourseId(String courseId) { |
218 | 0 | this.courseId = courseId; |
219 | 0 | } |
220 | |
|
221 | |
@Override |
222 | |
public String getTermId() { |
223 | 0 | return this.termId; |
224 | |
} |
225 | |
|
226 | |
public void setTermId(String termId) { |
227 | 0 | this.termId = termId; |
228 | 0 | } |
229 | |
|
230 | |
@Override |
231 | |
public String getCourseOfferingTitle() { |
232 | 0 | return this.courseOfferingTitle; |
233 | |
} |
234 | |
|
235 | |
public void setCourseOfferingTitle(String courseOfferingTitle) { |
236 | 0 | this.courseOfferingTitle = courseOfferingTitle; |
237 | 0 | } |
238 | |
|
239 | |
@Override |
240 | |
public RichTextInfo getDescr() { |
241 | 0 | return descr; |
242 | |
} |
243 | |
|
244 | |
public void setDescr(RichTextInfo descr) { |
245 | 0 | this.descr = descr; |
246 | 0 | } |
247 | |
|
248 | |
@Override |
249 | |
public String getCourseOfferingCode() { |
250 | 0 | return this.courseOfferingCode; |
251 | |
} |
252 | |
|
253 | |
public void setCourseOfferingCode(String courseOfferingCode) { |
254 | 0 | this.courseOfferingCode = courseOfferingCode; |
255 | 0 | } |
256 | |
|
257 | |
@Override |
258 | |
public String getCourseNumberSuffix() { |
259 | 0 | return this.courseNumberSuffix; |
260 | |
} |
261 | |
|
262 | |
public void setCourseNumberSuffix(String courseNumberSuffix) { |
263 | 0 | this.courseNumberSuffix = courseNumberSuffix; |
264 | 0 | } |
265 | |
|
266 | |
@Override |
267 | |
public String getSubjectArea() { |
268 | 0 | return this.subjectArea; |
269 | |
} |
270 | |
|
271 | |
public void setSubjectArea(String subjectArea) { |
272 | 0 | this.subjectArea = subjectArea; |
273 | 0 | } |
274 | |
|
275 | |
@Override |
276 | |
public Boolean getIsHonorsOffering() { |
277 | 0 | return this.isHonorsOffering; |
278 | |
} |
279 | |
|
280 | |
public void setIsHonorsOffering(Boolean isHonorsOffering) { |
281 | 0 | this.isHonorsOffering = isHonorsOffering; |
282 | 0 | } |
283 | |
|
284 | |
@Deprecated |
285 | |
@Override |
286 | |
public Boolean getHonorsOffering() { |
287 | 0 | return isHonorsOffering; |
288 | |
} |
289 | |
|
290 | |
@Deprecated |
291 | |
public void setHonorsOffering(Boolean honorsOffering) { |
292 | 0 | isHonorsOffering = honorsOffering; |
293 | 0 | } |
294 | |
|
295 | |
@Override |
296 | |
public List<String> getCampusLocations() { |
297 | 0 | return campusLocations; |
298 | |
} |
299 | |
|
300 | |
public void setCampusLocations(List<String> campusLocations) { |
301 | 0 | this.campusLocations = campusLocations; |
302 | 0 | } |
303 | |
|
304 | |
@Override |
305 | |
public List<OfferingInstructorInfo> getInstructors() { |
306 | 0 | if (instructors == null) { |
307 | 0 | instructors = new ArrayList<OfferingInstructorInfo> (); |
308 | |
} |
309 | 0 | return instructors; |
310 | |
} |
311 | |
|
312 | |
public void setInstructors(List<OfferingInstructorInfo> instructors) { |
313 | 0 | this.instructors = instructors; |
314 | 0 | } |
315 | |
|
316 | |
@Override |
317 | |
public List<String> getUnitsDeploymentOrgIds() { |
318 | 0 | if (null == this.unitsDeploymentOrgIds) { |
319 | 0 | this.unitsDeploymentOrgIds = new ArrayList<String>(); |
320 | |
} |
321 | |
|
322 | 0 | return this.unitsDeploymentOrgIds; |
323 | |
} |
324 | |
|
325 | |
public void setUnitsDeploymentOrgIds(List<String> unitsDeploymentOrgIds) { |
326 | 0 | this.unitsDeploymentOrgIds = unitsDeploymentOrgIds; |
327 | 0 | } |
328 | |
|
329 | |
@Deprecated |
330 | |
public void setUnitsDeployment(List<String> unitsDeployment) { |
331 | 0 | this.unitsDeploymentOrgIds = unitsDeployment; |
332 | 0 | } |
333 | |
|
334 | |
@Override |
335 | |
public List<String> getUnitsContentOwnerOrgIds() { |
336 | 0 | if (null == this.unitsContentOwnerOrgIds) { |
337 | 0 | this.unitsContentOwnerOrgIds = new ArrayList<String>(); |
338 | |
} |
339 | |
|
340 | 0 | return this.unitsContentOwnerOrgIds; |
341 | |
} |
342 | |
|
343 | |
public void setUnitsContentOwnerOrgIds(List<String> unitsContentOwnerOrgIds) { |
344 | 0 | this.unitsContentOwnerOrgIds = unitsContentOwnerOrgIds; |
345 | 0 | } |
346 | |
|
347 | |
@Deprecated |
348 | |
public void setUnitsContentOwner(List<String> unitsContentOwner) { |
349 | 0 | this.unitsContentOwnerOrgIds = unitsContentOwner; |
350 | 0 | } |
351 | |
|
352 | |
@Override |
353 | |
public String getGradingOptionId() { |
354 | 0 | return this.gradingOptionId; |
355 | |
} |
356 | |
|
357 | |
public void setGradingOptionId(String gradingOptionId) { |
358 | 0 | this.gradingOptionId = gradingOptionId; |
359 | 0 | } |
360 | |
|
361 | |
@Override |
362 | |
public List<String> getRegistrationGradingOptionIds() { |
363 | 0 | if (registrationGradingOptionIds == null) { |
364 | 0 | registrationGradingOptionIds = new ArrayList<String>(); |
365 | |
} |
366 | |
|
367 | 0 | return this.registrationGradingOptionIds; |
368 | |
} |
369 | |
|
370 | |
public void setRegistrationGradingOptionIds(List<String> gradingOptionIds) { |
371 | 0 | this.registrationGradingOptionIds = registrationGradingOptionIds; |
372 | 0 | } |
373 | |
|
374 | |
@Override |
375 | |
public String getCreditOptionDisplay() { |
376 | 0 | return this.creditOptionDisplay; |
377 | |
} |
378 | |
|
379 | |
public void setCreditOptionDisplay(String creditOptionDisplay) { |
380 | 0 | this.creditOptionDisplay = creditOptionDisplay; |
381 | 0 | } |
382 | |
|
383 | |
@Override |
384 | |
public String getCreditOptionId() { |
385 | 0 | return this.creditOptionId; |
386 | |
} |
387 | |
|
388 | |
public void setCreditOptionId(String creditOptionId) { |
389 | 0 | this.creditOptionId = creditOptionId; |
390 | 0 | } |
391 | |
|
392 | |
@Override |
393 | |
public Boolean getHasWaitlist() { |
394 | 0 | return this.hasWaitlist; |
395 | |
} |
396 | |
|
397 | |
public void setHasWaitlist(Boolean hasWaitlist) { |
398 | 0 | this.hasWaitlist = hasWaitlist; |
399 | 0 | } |
400 | |
|
401 | |
@Override |
402 | |
public String getWaitlistTypeKey() { |
403 | 0 | return this.waitlistTypeKey; |
404 | |
} |
405 | |
|
406 | |
public void setWaitlistTypeKey(String waitlistTypeKey) { |
407 | 0 | this.waitlistTypeKey = waitlistTypeKey; |
408 | 0 | } |
409 | |
|
410 | |
@Override |
411 | |
public String getWaitlistLevelTypeKey() { |
412 | 0 | return this.waitlistLevelTypeKey; |
413 | |
} |
414 | |
|
415 | |
public void setWaitlistLevelTypeKey(String waitlistLevelTypeKey) { |
416 | 0 | this.waitlistLevelTypeKey = waitlistLevelTypeKey; |
417 | 0 | } |
418 | |
|
419 | |
@Override |
420 | |
public Integer getMaximumEnrollment() { |
421 | 0 | return this.maximumEnrollment; |
422 | |
} |
423 | |
|
424 | |
public void setMaximumEnrollment(Integer maximumEnrollment) { |
425 | 0 | this.maximumEnrollment = maximumEnrollment; |
426 | 0 | } |
427 | |
|
428 | |
@Override |
429 | |
public Integer getMinimumEnrollment() { |
430 | 0 | return this.minimumEnrollment; |
431 | |
} |
432 | |
|
433 | |
public void setMinimumEnrollment(Integer minimumEnrollment) { |
434 | 0 | this.minimumEnrollment = minimumEnrollment; |
435 | 0 | } |
436 | |
|
437 | |
@Override |
438 | |
public Boolean getHasFinalExam(){ |
439 | 0 | return this.hasFinalExam; |
440 | |
} |
441 | |
|
442 | |
public void setHasFinalExam(Boolean hasFinalExam) { |
443 | 0 | this.hasFinalExam = hasFinalExam; |
444 | 0 | } |
445 | |
|
446 | |
@Override |
447 | |
public List<String> getJointOfferingIds() { |
448 | 0 | if (null == this.jointOfferingIds) { |
449 | 0 | this.jointOfferingIds = new ArrayList<String>(); |
450 | |
} |
451 | |
|
452 | 0 | return this.jointOfferingIds; |
453 | |
} |
454 | |
|
455 | |
public void setJointOfferingIds(List<String> jointOfferingIds) { |
456 | 0 | this.jointOfferingIds = jointOfferingIds; |
457 | 0 | } |
458 | |
|
459 | |
@Override |
460 | |
public String getFundingSource() { |
461 | 0 | return this.fundingSource; |
462 | |
} |
463 | |
|
464 | |
public void setFundingSource(String fundingSource) { |
465 | 0 | this.fundingSource = fundingSource; |
466 | 0 | } |
467 | |
|
468 | |
@Override |
469 | |
public Boolean getIsFinancialAidEligible() { |
470 | 0 | return this.isFinancialAidEligible; |
471 | |
} |
472 | |
|
473 | |
public void setIsFinancialAidEligible(Boolean isFinancialAidEligible) { |
474 | 0 | this.isFinancialAidEligible = isFinancialAidEligible; |
475 | 0 | } |
476 | |
|
477 | |
@Override |
478 | |
public Boolean getFinancialAidEligible() { |
479 | 0 | return isFinancialAidEligible; |
480 | |
} |
481 | |
|
482 | |
public void setFinancialAidEligible(Boolean financialAidEligible) { |
483 | 0 | isFinancialAidEligible = financialAidEligible; |
484 | 0 | } |
485 | |
|
486 | |
@Override |
487 | |
public Boolean getIsEvaluated() { |
488 | 0 | return isEvaluated; |
489 | |
} |
490 | |
|
491 | |
public void setEvaluated(Boolean evaluated) { |
492 | 0 | isEvaluated = evaluated; |
493 | 0 | } |
494 | |
|
495 | |
@Override |
496 | |
public Boolean getIsFeeAtActivityOffering() { |
497 | 0 | return isFeeAtActivityOffering; |
498 | |
} |
499 | |
|
500 | |
public void setFeeAtActivityOffering(Boolean feeAtActivityOffering) { |
501 | 0 | isFeeAtActivityOffering = feeAtActivityOffering; |
502 | 0 | } |
503 | |
} |