View Javadoc

1   package org.kuali.student.enrollment.class2.grading.service.assembler;
2   
3   import org.kuali.student.enrollment.grading.dto.GradeRosterInfo;
4   import org.kuali.student.r2.common.assembler.DTOAssembler;
5   import org.kuali.student.r2.common.dto.ContextInfo;
6   
7   import java.util.List;
8   import org.kuali.student.enrollment.roster.dto.LprRosterInfo;
9   
10  public class GradeRosterAssembler implements DTOAssembler<GradeRosterInfo, LprRosterInfo> {
11  
12      @Override
13      public GradeRosterInfo assemble(LprRosterInfo lprRosterInfo, ContextInfo context) {
14  
15          GradeRosterInfo gradeRosterInfo = new GradeRosterInfo();
16          gradeRosterInfo.setId(lprRosterInfo.getId());
17          gradeRosterInfo.setStateKey(lprRosterInfo.getStateKey());
18          gradeRosterInfo.setTypeKey(lprRosterInfo.getTypeKey());
19          gradeRosterInfo.setDescr(lprRosterInfo.getDescr());
20          gradeRosterInfo.setAttributes(lprRosterInfo.getAttributes());
21          gradeRosterInfo.setName(lprRosterInfo.getName());
22          return gradeRosterInfo;
23      }
24  
25      public GradeRosterInfo assemble(LprRosterInfo lprRosterInfo, List<String> lprRosterEntryIds, List<String> graderIds, String courseOfferingId, List<String> activityOfferingIds, ContextInfo context) {
26          GradeRosterInfo gradeRosterInfo = assemble(lprRosterInfo, context);
27          gradeRosterInfo.setGradeRosterEntryIds(lprRosterEntryIds);
28          gradeRosterInfo.setGraderIds(graderIds);
29          gradeRosterInfo.setCourseOfferingId(courseOfferingId);
30          gradeRosterInfo.setActivityOfferingIds(activityOfferingIds);
31          return gradeRosterInfo;
32      }
33  
34      @Override
35      public LprRosterInfo disassemble(GradeRosterInfo gradeRosterInfo, ContextInfo context) {
36          // TODO implement method
37          throw new UnsupportedOperationException("Method not implemented.");
38      }
39  }