001package org.kuali.student.enrollment.class2.grading.service.assembler; 002 003import org.kuali.student.enrollment.grading.dto.GradeRosterEntryInfo; 004import org.kuali.student.r2.common.assembler.DTOAssembler; 005import org.kuali.student.r2.common.dto.ContextInfo; 006 007import java.util.List; 008import org.kuali.student.enrollment.roster.dto.LprRosterEntryInfo; 009 010public class GradeRosterEntryAssembler implements DTOAssembler<GradeRosterEntryInfo, LprRosterEntryInfo> { 011 012 013 @Override 014 public GradeRosterEntryInfo assemble(LprRosterEntryInfo lprRosterEntryInfo, ContextInfo context) { 015 GradeRosterEntryInfo gradeRosterEntryInfo = new GradeRosterEntryInfo(); 016 gradeRosterEntryInfo.setId(lprRosterEntryInfo.getId()); 017 018 return gradeRosterEntryInfo; 019 } 020 021 public GradeRosterEntryInfo assemble(LprRosterEntryInfo lprRosterEntryInfo, String studentId, String activityOfferingId, String assignedGradeKey, String calculatedGradeKey, String administrativeGradeKey, String creditsEarnedKey, List<String> gradingOptionKeys, ContextInfo context) { 022 GradeRosterEntryInfo gradeRosterEntryInfo = assemble(lprRosterEntryInfo, context); 023 gradeRosterEntryInfo.setActivityOfferingId(activityOfferingId); 024 gradeRosterEntryInfo.setAdministrativeGradeKey(administrativeGradeKey); 025 gradeRosterEntryInfo.setAssignedGradeKey(assignedGradeKey); 026 gradeRosterEntryInfo.setCalculatedGradeKey(calculatedGradeKey); 027 gradeRosterEntryInfo.setCreditsEarnedKey(creditsEarnedKey); 028 gradeRosterEntryInfo.setValidGradeGroupKeys(gradingOptionKeys); 029 gradeRosterEntryInfo.setStudentId(studentId); 030 return gradeRosterEntryInfo; 031 } 032 033 @Override 034 public LprRosterEntryInfo disassemble(GradeRosterEntryInfo gradeRosterEntryInfo, ContextInfo context) { 035 // TODO implement method 036 throw new UnsupportedOperationException("Method not implemented."); 037 } 038}