1 | |
package org.kuali.student.enrollment.class2.acal.service.assembler; |
2 | |
|
3 | |
import org.kuali.student.enrollment.grading.dto.GradeRosterEntryInfo; |
4 | |
import org.kuali.student.enrollment.lpr.dto.LprRosterEntryInfo; |
5 | |
import org.kuali.student.r2.common.assembler.DTOAssembler; |
6 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
7 | |
|
8 | 0 | public class GradeRosterEntryAssembler implements DTOAssembler<GradeRosterEntryInfo, LprRosterEntryInfo> { |
9 | |
|
10 | |
|
11 | |
@Override |
12 | |
public GradeRosterEntryInfo assemble(LprRosterEntryInfo lprRosterEntryInfo, ContextInfo context) { |
13 | 0 | GradeRosterEntryInfo gradeRosterEntryInfo = new GradeRosterEntryInfo(); |
14 | 0 | gradeRosterEntryInfo.setId(lprRosterEntryInfo.getId()); |
15 | |
|
16 | 0 | return gradeRosterEntryInfo; |
17 | |
} |
18 | |
|
19 | |
public GradeRosterEntryInfo assemble(LprRosterEntryInfo lprRosterEntryInfo, String studentId, String activityOfferingId, String assignedGradeKey, String calculatedGradeKey, String administrativeGradeKey, String creditsEarnedKey, ContextInfo context) { |
20 | 0 | GradeRosterEntryInfo gradeRosterEntryInfo = assemble(lprRosterEntryInfo, context); |
21 | 0 | gradeRosterEntryInfo.setActivityOfferingId(activityOfferingId); |
22 | 0 | gradeRosterEntryInfo.setAdministrativeGradeKey(administrativeGradeKey); |
23 | 0 | gradeRosterEntryInfo.setAssignedGradeKey(assignedGradeKey); |
24 | 0 | gradeRosterEntryInfo.setCalculatedGradeKey(calculatedGradeKey); |
25 | 0 | gradeRosterEntryInfo.setCreditsEarnedKey(creditsEarnedKey); |
26 | 0 | gradeRosterEntryInfo.setStudentId(studentId); |
27 | 0 | return gradeRosterEntryInfo; |
28 | |
} |
29 | |
|
30 | |
@Override |
31 | |
public LprRosterEntryInfo disassemble(GradeRosterEntryInfo gradeRosterEntryInfo, ContextInfo context) { |
32 | |
|
33 | 0 | throw new UnsupportedOperationException("Method not implemented."); |
34 | |
} |
35 | |
} |