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