1 | |
package org.kuali.student.enrollment.class2.courseoffering.service.transformer; |
2 | |
|
3 | |
import org.kuali.student.enrollment.courseoffering.dto.RegistrationGroupInfo; |
4 | |
import org.kuali.student.enrollment.lui.dto.LuiInfo; |
5 | |
|
6 | |
|
7 | 0 | public class RegistrationGroupTransformer { |
8 | |
|
9 | |
public RegistrationGroupInfo transform(LuiInfo lui) { |
10 | |
|
11 | 0 | RegistrationGroupInfo regDateGroup = new RegistrationGroupInfo(); |
12 | 0 | regDateGroup.setId(lui.getId()); |
13 | 0 | regDateGroup.setMeta(lui.getMeta()); |
14 | 0 | regDateGroup.setStateKey(lui.getStateKey()); |
15 | 0 | regDateGroup.setTypeKey(lui.getTypeKey()); |
16 | 0 | regDateGroup.setDescr(lui.getDescr()); |
17 | 0 | regDateGroup.setAttributes(lui.getAttributes()); |
18 | 0 | regDateGroup.setMaximumEnrollment(lui.getMaximumEnrollment()); |
19 | 0 | regDateGroup.setMinimumEnrollment(lui.getMinimumEnrollment()); |
20 | 0 | regDateGroup.setName(lui.getName()); |
21 | 0 | regDateGroup.setFormatOfferingId(lui.getCluId()); |
22 | 0 | regDateGroup.setTermId(lui.getAtpId()); |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | 0 | return regDateGroup; |
34 | |
} |
35 | |
|
36 | |
|
37 | |
public LuiInfo transform(RegistrationGroupInfo regGroup) { |
38 | |
|
39 | 0 | LuiInfo lui = new LuiInfo(); |
40 | 0 | lui.setId(regGroup.getId()); |
41 | 0 | lui.setTypeKey(regGroup.getTypeKey()); |
42 | 0 | lui.setStateKey(regGroup.getStateKey()); |
43 | 0 | lui.setDescr(regGroup.getDescr()); |
44 | 0 | lui.setMeta(regGroup.getMeta()); |
45 | 0 | lui.setAttributes(regGroup.getAttributes()); |
46 | 0 | lui.setName(regGroup.getName()); |
47 | 0 | lui.setCluId(regGroup.getFormatOfferingId()); |
48 | 0 | lui.setMaximumEnrollment(regGroup.getMaximumEnrollment()); |
49 | 0 | lui.setMinimumEnrollment(regGroup.getMinimumEnrollment()); |
50 | 0 | lui.setAtpId(regGroup.getTermId()); |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | 0 | return lui; |
61 | |
|
62 | |
} |
63 | |
} |