1 package org.kuali.student.enrollment.class2.registration.dto;
2
3 import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo;
4
5 import java.io.Serializable;
6 import java.util.ArrayList;
7 import java.util.List;
8
9
10 @Deprecated
11 public class ActivityOfferingWrapper implements Serializable {
12 private static final long serialVersionUID = 1L;
13
14 private ActivityOfferingInfo activityOffering;
15
16 private List<MeetingScheduleWrapper> meetingScheduleWrappers;
17
18 public ActivityOfferingWrapper() {
19 meetingScheduleWrappers = new ArrayList<MeetingScheduleWrapper>();
20 }
21
22 public ActivityOfferingInfo getActivityOffering() {
23 return activityOffering;
24 }
25
26 public void setActivityOffering(ActivityOfferingInfo activityOffering) {
27 this.activityOffering = activityOffering;
28 }
29
30 public List<MeetingScheduleWrapper> getMeetingScheduleWrappers() {
31 return meetingScheduleWrappers;
32 }
33
34 public void setMeetingScheduleWrappers(List<MeetingScheduleWrapper> meetingScheduleWrappers) {
35 this.meetingScheduleWrappers = meetingScheduleWrappers;
36 }
37
38
39 public String getTypeName() {
40 String key = activityOffering.getTypeKey();
41 String name = key.substring(key.lastIndexOf(".") + 1);
42 return String.format( "%s%s", Character.toUpperCase(name.charAt(0)), name.substring(1));
43 }
44 }