Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CourseOfferingAssemblerUtils |
|
| 1.0;1 |
1 | package org.kuali.student.enrollment.class2.courseoffering.service.assembler; | |
2 | ||
3 | import org.kuali.student.enrollment.courseoffering.infc.COBasicAssembly; | |
4 | import org.kuali.student.enrollment.courseoffering.infc.COCommonAssembly; | |
5 | import org.kuali.student.enrollment.lui.dto.LuiInfo; | |
6 | ||
7 | ||
8 | 0 | public class CourseOfferingAssemblerUtils { |
9 | public COBasicAssembly assembleBasics(LuiInfo lui, COBasicAssembly co){ | |
10 | 0 | co.setId(lui.getId()); |
11 | 0 | co.setMeta(lui.getMeta()); |
12 | 0 | co.setStateKey(lui.getStateKey()); |
13 | 0 | co.setTypeKey(lui.getTypeKey()); |
14 | 0 | co.setAttributes(lui.getAttributes()); |
15 | 0 | return co; |
16 | } | |
17 | ||
18 | public LuiInfo disassembleBasics(LuiInfo lui, COBasicAssembly co){ | |
19 | 0 | lui.setId(co.getId()); |
20 | 0 | lui.setTypeKey(co.getTypeKey()); |
21 | 0 | lui.setStateKey(co.getStateKey()); |
22 | 0 | lui.setDescr(co.getDescr()); |
23 | 0 | lui.setMeta(co.getMeta()); |
24 | 0 | lui.setAttributes(co.getAttributes()); |
25 | ||
26 | 0 | return lui; |
27 | } | |
28 | ||
29 | public COCommonAssembly assembleCommons(LuiInfo lui, COCommonAssembly co){ | |
30 | 0 | co.setMaximumEnrollment(lui.getMaximumEnrollment()); |
31 | 0 | co.setMinimumEnrollment(lui.getMinimumEnrollment()); |
32 | ||
33 | //TODO: co.setIsHonorsOffering(isHonorsOffering) -- lui.getLuiCodes() ? | |
34 | ||
35 | //below undecided | |
36 | //co.setHasWaitlist(lui.getHasWaitlist()); | |
37 | //co.setWaitlistTypeKey(lui.getWaitlistTypeKey()); | |
38 | //co.setWaitlistMaximum(lui.getWaitlistMaximum()); | |
39 | //co.setIsWaitlistCheckinRequired(lui.getIsWaitlistCheckinRequired()); | |
40 | //co.setWaitlistCheckinFrequency(lui.getWaitlistCheckinFrequency()); | |
41 | 0 | return co; |
42 | } | |
43 | ||
44 | public LuiInfo disassembleCommons(LuiInfo lui, COCommonAssembly co){ | |
45 | 0 | lui.setMaximumEnrollment(co.getMaximumEnrollment()); |
46 | 0 | lui.setMinimumEnrollment(co.getMinimumEnrollment()); |
47 | ||
48 | //TODO: co.getIsHonorsOffering() --store in a generic lui luCodes type of field? | |
49 | ||
50 | //below undecided | |
51 | //lui.setHasWaitlist(co.getHasWaitlist()); | |
52 | //lui.setIsWaitlistCheckinRequired(co.getIsWaitlistCheckinRequired()); | |
53 | //lui.setWaitlistCheckinFrequency(co.getWaitlistCheckinFrequency()); | |
54 | //lui.setWaitlistMaximum(co.getWaitlistMaximum()); | |
55 | //lui.setWaitlistTypeKey(co.getWaitlistTypeKey()); | |
56 | ||
57 | 0 | return lui; |
58 | } | |
59 | ||
60 | } |