1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.courseoffering.dto;
18
19 import org.kuali.student.enrollment.courseoffering.infc.ActivityOfferingDisplay;
20 import org.kuali.student.r2.common.dto.IdEntityInfo;
21 import org.kuali.student.r2.core.scheduling.dto.ScheduleDisplayInfo;
22 import org.w3c.dom.Element;
23
24 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlAnyElement;
27 import javax.xml.bind.annotation.XmlElement;
28 import javax.xml.bind.annotation.XmlType;
29 import java.util.List;
30
31
32 @XmlAccessorType(XmlAccessType.FIELD)
33 @XmlType(name = "ActivityOfferingDisplayInfo", propOrder = {
34 "id", "typeKey", "stateKey", "name", "descr",
35 "typeName", "stateName", "courseOfferingTitle",
36 "courseOfferingCode", "formatOfferingId", "formatOfferingName",
37 "activityOfferingCode", "instructorId", "instructorName",
38 "isHonorsOffering", "maximumEnrollment", "scheduleDisplay", "termId",
39 "meta", "attributes", "_futureElements"})
40
41 public class ActivityOfferingDisplayInfo
42 extends IdEntityInfo
43 implements ActivityOfferingDisplay {
44
45 private static final long serialVersionUID = 1L;
46
47 @XmlElement
48 private String typeName;
49
50 @XmlElement
51 private String stateName;
52
53 @XmlElement
54 private String courseOfferingTitle;
55
56 @XmlElement
57 private String courseOfferingCode;
58
59 @XmlElement
60 private String formatOfferingId;
61
62 @XmlElement
63 private String formatOfferingName;
64
65 @XmlElement
66 private String activityOfferingCode;
67
68 @XmlElement
69 private String instructorId;
70
71 @XmlElement
72 private String instructorName;
73
74 @XmlElement
75 private Boolean isHonorsOffering;
76
77 @XmlElement
78 private Integer maximumEnrollment;
79
80 @XmlElement
81 private ScheduleDisplayInfo scheduleDisplay;
82
83 @XmlAnyElement
84 private List<Element> _futureElements;
85
86 @XmlElement
87 private String termId;
88
89
90
91
92 public ActivityOfferingDisplayInfo() {
93 }
94
95
96
97
98
99
100
101 public ActivityOfferingDisplayInfo(ActivityOfferingDisplay offeringDisplay) {
102 super(offeringDisplay);
103
104 if (offeringDisplay == null) {
105 return;
106 }
107
108 this.typeName = offeringDisplay.getTypeName();
109 this.stateName = offeringDisplay.getStateName();
110 this.courseOfferingTitle = offeringDisplay.getCourseOfferingTitle();
111 this.courseOfferingCode = offeringDisplay.getCourseOfferingCode();
112 this.formatOfferingId = offeringDisplay.getFormatOfferingId();
113 this.formatOfferingName = offeringDisplay.getFormatOfferingName();
114 this.activityOfferingCode = offeringDisplay.getActivityOfferingCode();
115 this.instructorId = offeringDisplay.getInstructorId();
116 this.instructorName = offeringDisplay.getInstructorName();
117 this.isHonorsOffering = offeringDisplay.getIsHonorsOffering();
118 this.maximumEnrollment = offeringDisplay.getMaximumEnrollment();
119 this.scheduleDisplay = (null != offeringDisplay.getScheduleDisplay()) ? new ScheduleDisplayInfo(offeringDisplay.getScheduleDisplay()) : null;
120 }
121
122 @Override
123 public String getTypeName() {
124 return typeName;
125 }
126
127 public void setTypeName(String typeName) {
128 this.typeName = typeName;
129 }
130
131 @Override
132 public String getStateName() {
133 return stateName;
134 }
135
136 public void setStateName(String stateName) {
137 this.stateName = stateName;
138 }
139
140 @Override
141 public String getCourseOfferingTitle() {
142 return courseOfferingTitle;
143 }
144
145 public void setCourseOfferingTitle(String courseOfferingTitle) {
146 this.courseOfferingTitle = courseOfferingTitle;
147 }
148
149 @Override
150 public String getCourseOfferingCode() {
151 return courseOfferingCode;
152 }
153
154 public void setCourseOfferingCode(String courseOfferingCode) {
155 this.courseOfferingCode = courseOfferingCode;
156 }
157
158 @Override
159 public String getFormatOfferingId() {
160 return formatOfferingId;
161 }
162
163 public void setFormatOfferingId(String formatOfferingId) {
164 this.formatOfferingId = formatOfferingId;
165 }
166
167 @Override
168 public String getFormatOfferingName() {
169 return formatOfferingName;
170 }
171
172 public void setFormatOfferingName(String formatOfferingName) {
173 this.formatOfferingName = formatOfferingName;
174 }
175
176 @Override
177 public String getActivityOfferingCode() {
178 return activityOfferingCode;
179 }
180
181 public void setActivityOfferingCode(String activityOfferingCode) {
182 this.activityOfferingCode = activityOfferingCode;
183 }
184
185 @Override
186 public String getInstructorId() {
187 return instructorId;
188 }
189
190 public void setInstructorId(String instructorId) {
191 this.instructorId = instructorId;
192 }
193
194 @Override
195 public String getInstructorName() {
196 return instructorName;
197 }
198
199 public void setInstructorName(String instructorName) {
200 this.instructorName = instructorName;
201 }
202
203 @Override
204 public Boolean getIsHonorsOffering() {
205 return this.isHonorsOffering;
206 }
207
208 public void setIsHonorsOffering(Boolean isHonorsOffering) {
209 this.isHonorsOffering = isHonorsOffering;
210 }
211
212 public Integer getMaximumEnrollment() {
213 return maximumEnrollment;
214 }
215
216 public void setMaximumEnrollment(Integer maximumEnrollment) {
217 this.maximumEnrollment = maximumEnrollment;
218 }
219
220 @Override
221 public ScheduleDisplayInfo getScheduleDisplay() {
222 return this.scheduleDisplay;
223 }
224
225 public void setScheduleDisplay(ScheduleDisplayInfo scheduleDisplay) {
226 this.scheduleDisplay = scheduleDisplay;
227 }
228
229 public String getTermId() {
230 return termId;
231 }
232
233 public void setTermId(String termId) {
234 this.termId = termId;
235 }
236
237 }