001 /*
002 * Copyright 2007 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 1.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl1.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package edu.sampleu.student.dataobject;
017
018 import java.util.ArrayList;
019 import java.util.Date;
020 import java.util.List;
021
022 /**
023 * @author Kuali Rice Team (rice.collab@kuali.org)
024 */
025 public class CourseSection {
026
027 private String section;
028 private String registrationId;
029 private String term;
030 private Date startDate;
031 private Date endDate;
032 private boolean customMeetingTime;
033 private String standardMeetingSchedule;
034 private String standardMeetingTime;
035 private String attendanceType;
036
037 private Integer weeklyInClassHours;
038 private Integer weeklyOutOfClassHours;
039 private Integer termInClassHours;
040 private Integer termOutOfClassHours;
041
042 private Integer totalMinEnrollment;
043 private Integer totalMaxEnrollment;
044
045 private String building;
046 private String room;
047
048 private boolean waitlist;
049 private String waitlistType;
050 private Integer waitlistMaximum;
051
052 private boolean finalExam;
053 private Date finalExamDate;
054 private String finalExamStartTime;
055 private String finalExamEndTime;
056 private String finalExamBuilding;
057 private String finalExamRoom;
058
059 private boolean publish;
060 private String publishTo;
061
062 private String scheduleComments;
063 private String courseUrl;
064 private String internetClassProvider;
065
066 private Course course;
067
068 private List<CourseInstructor> instructors;
069
070 public CourseSection() {
071 instructors = new ArrayList<CourseInstructor>();
072 }
073
074 public String getSection() {
075 return section;
076 }
077
078 public void setSection(String section) {
079 this.section = section;
080 }
081
082 public String getRegistrationId() {
083 return registrationId;
084 }
085
086 public void setRegistrationId(String registrationId) {
087 this.registrationId = registrationId;
088 }
089
090 public String getTerm() {
091 return term;
092 }
093
094 public void setTerm(String term) {
095 this.term = term;
096 }
097
098 public Date getStartDate() {
099 return startDate;
100 }
101
102 public void setStartDate(Date startDate) {
103 this.startDate = startDate;
104 }
105
106 public Date getEndDate() {
107 return endDate;
108 }
109
110 public void setEndDate(Date endDate) {
111 this.endDate = endDate;
112 }
113
114 public boolean isCustomMeetingTime() {
115 return customMeetingTime;
116 }
117
118 public void setCustomMeetingTime(boolean customMeetingTime) {
119 this.customMeetingTime = customMeetingTime;
120 }
121
122 public String getStandardMeetingSchedule() {
123 return standardMeetingSchedule;
124 }
125
126 public void setStandardMeetingSchedule(String standardMeetingSchedule) {
127 this.standardMeetingSchedule = standardMeetingSchedule;
128 }
129
130 public String getStandardMeetingTime() {
131 return standardMeetingTime;
132 }
133
134 public void setStandardMeetingTime(String standardMeetingTime) {
135 this.standardMeetingTime = standardMeetingTime;
136 }
137
138 public String getAttendanceType() {
139 return attendanceType;
140 }
141
142 public void setAttendanceType(String attendanceType) {
143 this.attendanceType = attendanceType;
144 }
145
146 public Integer getWeeklyInClassHours() {
147 return weeklyInClassHours;
148 }
149
150 public void setWeeklyInClassHours(Integer weeklyInClassHours) {
151 this.weeklyInClassHours = weeklyInClassHours;
152 }
153
154 public Integer getWeeklyOutOfClassHours() {
155 return weeklyOutOfClassHours;
156 }
157
158 public void setWeeklyOutOfClassHours(Integer weeklyOutOfClassHours) {
159 this.weeklyOutOfClassHours = weeklyOutOfClassHours;
160 }
161
162 public Integer getWeeklyTotalHours() {
163 Integer total = 0;
164 if (weeklyInClassHours != null) {
165 total += weeklyInClassHours;
166 }
167 if (weeklyOutOfClassHours != null) {
168 total += weeklyOutOfClassHours;
169 }
170 return total;
171 }
172
173 public Integer getTermInClassHours() {
174 return termInClassHours;
175 }
176
177 public void setTermInClassHours(Integer termInClassHours) {
178 this.termInClassHours = termInClassHours;
179 }
180
181 public Integer getTermOutOfClassHours() {
182 return termOutOfClassHours;
183 }
184
185 public void setTermOutOfClassHours(Integer termOutOfClassHours) {
186 this.termOutOfClassHours = termOutOfClassHours;
187 }
188
189 public Integer getTermTotalHours() {
190 Integer total = 0;
191 if (termInClassHours != null) {
192 total += termInClassHours;
193 }
194 if (termOutOfClassHours != null) {
195 total += termOutOfClassHours;
196 }
197 return total;
198 }
199
200 public Integer getTotalMinEnrollment() {
201 return totalMinEnrollment;
202 }
203
204 public void setTotalMinEnrollment(Integer totalMinEnrollment) {
205 this.totalMinEnrollment = totalMinEnrollment;
206 }
207
208 public Integer getTotalMaxEnrollment() {
209 return totalMaxEnrollment;
210 }
211
212 public void setTotalMaxEnrollment(Integer totalMaxEnrollment) {
213 this.totalMaxEnrollment = totalMaxEnrollment;
214 }
215
216 public String getBuilding() {
217 return building;
218 }
219
220 public void setBuilding(String building) {
221 this.building = building;
222 }
223
224 public String getRoom() {
225 return room;
226 }
227
228 public void setRoom(String room) {
229 this.room = room;
230 }
231
232 public boolean isWaitlist() {
233 return waitlist;
234 }
235
236 public void setWaitlist(boolean waitlist) {
237 this.waitlist = waitlist;
238 }
239
240 public String getWaitlistType() {
241 return waitlistType;
242 }
243
244 public void setWaitlistType(String waitlistType) {
245 this.waitlistType = waitlistType;
246 }
247
248 public Integer getWaitlistMaximum() {
249 return waitlistMaximum;
250 }
251
252 public void setWaitlistMaximum(Integer waitlistMaximum) {
253 this.waitlistMaximum = waitlistMaximum;
254 }
255
256 public boolean isFinalExam() {
257 return finalExam;
258 }
259
260 public void setFinalExam(boolean finalExam) {
261 this.finalExam = finalExam;
262 }
263
264 public Date getFinalExamDate() {
265 return finalExamDate;
266 }
267
268 public void setFinalExamDate(Date finalExamDate) {
269 this.finalExamDate = finalExamDate;
270 }
271
272 public String getFinalExamStartTime() {
273 return finalExamStartTime;
274 }
275
276 public void setFinalExamStartTime(String finalExamStartTime) {
277 this.finalExamStartTime = finalExamStartTime;
278 }
279
280 public String getFinalExamEndTime() {
281 return finalExamEndTime;
282 }
283
284 public void setFinalExamEndTime(String finalExamEndTime) {
285 this.finalExamEndTime = finalExamEndTime;
286 }
287
288 public String getFinalExamBuilding() {
289 return finalExamBuilding;
290 }
291
292 public void setFinalExamBuilding(String finalExamBuilding) {
293 this.finalExamBuilding = finalExamBuilding;
294 }
295
296 public String getFinalExamRoom() {
297 return finalExamRoom;
298 }
299
300 public void setFinalExamRoom(String finalExamRoom) {
301 this.finalExamRoom = finalExamRoom;
302 }
303
304 public boolean isPublish() {
305 return publish;
306 }
307
308 public void setPublish(boolean publish) {
309 this.publish = publish;
310 }
311
312 public String getPublishTo() {
313 return publishTo;
314 }
315
316 public void setPublishTo(String publishTo) {
317 this.publishTo = publishTo;
318 }
319
320 public String getScheduleComments() {
321 return scheduleComments;
322 }
323
324 public void setScheduleComments(String scheduleComments) {
325 this.scheduleComments = scheduleComments;
326 }
327
328 public String getCourseUrl() {
329 return courseUrl;
330 }
331
332 public void setCourseUrl(String courseUrl) {
333 this.courseUrl = courseUrl;
334 }
335
336 public String getInternetClassProvider() {
337 return internetClassProvider;
338 }
339
340 public void setInternetClassProvider(String internetClassProvider) {
341 this.internetClassProvider = internetClassProvider;
342 }
343
344 public Course getCourse() {
345 return course;
346 }
347
348 public void setCourse(Course course) {
349 this.course = course;
350 }
351
352 public List<CourseInstructor> getInstructors() {
353 return instructors;
354 }
355
356 public void setInstructors(List<CourseInstructor> instructors) {
357 this.instructors = instructors;
358 }
359 }