1 package org.kuali.student.enrollment.class2.registration.dto;
2
3 import org.apache.commons.lang.StringUtils;
4 import org.kuali.student.enrollment.courseoffering.dto.CourseOfferingInfo;
5 import org.kuali.student.enrollment.courseoffering.dto.OfferingInstructorInfo;
6
7 import java.io.Serializable;
8 import java.util.ArrayList;
9 import java.util.List;
10
11
12 @Deprecated
13 public class CourseOfferingWrapper implements Serializable {
14 private static final long serialVersionUID = 1L;
15
16 private CourseOfferingInfo courseOffering;
17 private String prereq;
18
19 private List<RegistrationGroupWrapper> registrationGroupWrappers;
20
21 public CourseOfferingWrapper() {
22 registrationGroupWrappers = new ArrayList<RegistrationGroupWrapper>();
23 }
24
25 public List<RegistrationGroupWrapper> getRegistrationGroupWrappers() {
26 return registrationGroupWrappers;
27 }
28
29 public void setRegistrationGroupWrappers(List<RegistrationGroupWrapper> registrationGroupWrappers) {
30 this.registrationGroupWrappers = registrationGroupWrappers;
31 }
32
33 public CourseOfferingInfo getCourseOffering() {
34 return courseOffering;
35 }
36
37 public void setCourseOffering(CourseOfferingInfo courseOffering) {
38 this.courseOffering = courseOffering;
39 }
40
41 public String getInstructorsList(){
42 String instructors = "";
43 if(this.getCourseOffering() != null && this.getCourseOffering().getInstructors() != null &&
44 !this.getCourseOffering().getInstructors().isEmpty()){
45 for(OfferingInstructorInfo instructor: this.getCourseOffering().getInstructors()){
46 if(StringUtils.isBlank(instructors)){
47 instructors = instructor.getPersonId();
48 }
49 else{
50 instructors = instructor + ", " + instructor.getPersonId();
51 }
52 }
53 }
54 return instructors;
55 }
56
57 public String getPrereq() {
58 return prereq;
59 }
60
61 public void setPrereq(String prereq) {
62 this.prereq = prereq;
63 }
64 }