001/**
002 * Copyright 2005-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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 */
016package edu.sampleu.demo.course;
017
018import java.io.Serializable;
019import java.util.ArrayList;
020import java.util.Date;
021import java.util.List;
022
023/**
024 * @author Kuali Rice Team (rice.collab@kuali.org)
025 */
026public class CourseSection implements Serializable {
027
028    private String section;
029    private String registrationId;
030    private String term;
031    private Date startDate;
032    private Date endDate;
033    private boolean customMeetingTime;
034    private String standardMeetingSchedule;
035    private String standardMeetingTime;
036    private String attendanceType;
037
038    private Integer weeklyInClassHours;
039    private Integer weeklyOutOfClassHours;
040    private Integer termInClassHours;
041    private Integer termOutOfClassHours;
042
043    private Integer totalMinEnrollment;
044    private Integer totalMaxEnrollment;
045
046    private String building;
047    private String room;
048
049    private boolean waitlist;
050    private String waitlistType;
051    private Integer waitlistMaximum;
052
053    private boolean finalExam;
054    private Date finalExamDate;
055    private String finalExamStartTime;
056    private String finalExamEndTime;
057    private String finalExamBuilding;
058    private String finalExamRoom;
059
060    private boolean publish;
061    private String publishTo;
062
063    private String scheduleComments;
064    private String courseUrl;
065    private String internetClassProvider;
066
067    private String location;
068    private Integer registeredNumber;
069    private Integer waitlistNumber;
070    private String instructor;
071
072    private Course course;
073
074    private List<CourseInstructor> instructors;
075
076    public CourseSection() {
077        instructors = new ArrayList<CourseInstructor>();
078
079        registeredNumber = 0;
080        waitlistNumber = 0;
081    }
082
083    public String getSection() {
084        return section;
085    }
086
087    public void setSection(String section) {
088        this.section = section;
089    }
090
091    public String getRegistrationId() {
092        return registrationId;
093    }
094
095    public void setRegistrationId(String registrationId) {
096        this.registrationId = registrationId;
097    }
098
099    public String getTerm() {
100        return term;
101    }
102
103    public void setTerm(String term) {
104        this.term = term;
105    }
106
107    public Date getStartDate() {
108        return startDate;
109    }
110
111    public void setStartDate(Date startDate) {
112        this.startDate = startDate;
113    }
114
115    public Date getEndDate() {
116        return endDate;
117    }
118
119    public void setEndDate(Date endDate) {
120        this.endDate = endDate;
121    }
122
123    public boolean isCustomMeetingTime() {
124        return customMeetingTime;
125    }
126
127    public void setCustomMeetingTime(boolean customMeetingTime) {
128        this.customMeetingTime = customMeetingTime;
129    }
130
131    public String getStandardMeetingSchedule() {
132        return standardMeetingSchedule;
133    }
134
135    public void setStandardMeetingSchedule(String standardMeetingSchedule) {
136        this.standardMeetingSchedule = standardMeetingSchedule;
137    }
138
139    public String getStandardMeetingTime() {
140        return standardMeetingTime;
141    }
142
143    public void setStandardMeetingTime(String standardMeetingTime) {
144        this.standardMeetingTime = standardMeetingTime;
145    }
146
147    public String getAttendanceType() {
148        return attendanceType;
149    }
150
151    public void setAttendanceType(String attendanceType) {
152        this.attendanceType = attendanceType;
153    }
154
155    public Integer getWeeklyInClassHours() {
156        return weeklyInClassHours;
157    }
158
159    public void setWeeklyInClassHours(Integer weeklyInClassHours) {
160        this.weeklyInClassHours = weeklyInClassHours;
161    }
162
163    public Integer getWeeklyOutOfClassHours() {
164        return weeklyOutOfClassHours;
165    }
166
167    public void setWeeklyOutOfClassHours(Integer weeklyOutOfClassHours) {
168        this.weeklyOutOfClassHours = weeklyOutOfClassHours;
169    }
170
171    public Integer getWeeklyTotalHours() {
172        Integer total = 0;
173        if (weeklyInClassHours != null) {
174            total += weeklyInClassHours;
175        }
176        if (weeklyOutOfClassHours != null) {
177            total += weeklyOutOfClassHours;
178        }
179        return total;
180    }
181
182    public Integer getTermInClassHours() {
183        return termInClassHours;
184    }
185
186    public void setTermInClassHours(Integer termInClassHours) {
187        this.termInClassHours = termInClassHours;
188    }
189
190    public Integer getTermOutOfClassHours() {
191        return termOutOfClassHours;
192    }
193
194    public void setTermOutOfClassHours(Integer termOutOfClassHours) {
195        this.termOutOfClassHours = termOutOfClassHours;
196    }
197
198    public Integer getTermTotalHours() {
199        Integer total = 0;
200        if (termInClassHours != null) {
201            total += termInClassHours;
202        }
203        if (termOutOfClassHours != null) {
204            total += termOutOfClassHours;
205        }
206        return total;
207    }
208
209    public Integer getTotalMinEnrollment() {
210        return totalMinEnrollment;
211    }
212
213    public void setTotalMinEnrollment(Integer totalMinEnrollment) {
214        this.totalMinEnrollment = totalMinEnrollment;
215    }
216
217    public Integer getTotalMaxEnrollment() {
218        return totalMaxEnrollment;
219    }
220
221    public void setTotalMaxEnrollment(Integer totalMaxEnrollment) {
222        this.totalMaxEnrollment = totalMaxEnrollment;
223    }
224
225    public String getBuilding() {
226        return building;
227    }
228
229    public void setBuilding(String building) {
230        this.building = building;
231    }
232
233    public String getRoom() {
234        return room;
235    }
236
237    public void setRoom(String room) {
238        this.room = room;
239    }
240
241    public boolean isWaitlist() {
242        return waitlist;
243    }
244
245    public void setWaitlist(boolean waitlist) {
246        this.waitlist = waitlist;
247    }
248
249    public String getWaitlistType() {
250        return waitlistType;
251    }
252
253    public void setWaitlistType(String waitlistType) {
254        this.waitlistType = waitlistType;
255    }
256
257    public Integer getWaitlistMaximum() {
258        return waitlistMaximum;
259    }
260
261    public void setWaitlistMaximum(Integer waitlistMaximum) {
262        this.waitlistMaximum = waitlistMaximum;
263    }
264
265    public boolean isFinalExam() {
266        return finalExam;
267    }
268
269    public void setFinalExam(boolean finalExam) {
270        this.finalExam = finalExam;
271    }
272
273    public Date getFinalExamDate() {
274        return finalExamDate;
275    }
276
277    public void setFinalExamDate(Date finalExamDate) {
278        this.finalExamDate = finalExamDate;
279    }
280
281    public String getFinalExamStartTime() {
282        return finalExamStartTime;
283    }
284
285    public void setFinalExamStartTime(String finalExamStartTime) {
286        this.finalExamStartTime = finalExamStartTime;
287    }
288
289    public String getFinalExamEndTime() {
290        return finalExamEndTime;
291    }
292
293    public void setFinalExamEndTime(String finalExamEndTime) {
294        this.finalExamEndTime = finalExamEndTime;
295    }
296
297    public String getFinalExamBuilding() {
298        return finalExamBuilding;
299    }
300
301    public void setFinalExamBuilding(String finalExamBuilding) {
302        this.finalExamBuilding = finalExamBuilding;
303    }
304
305    public String getFinalExamRoom() {
306        return finalExamRoom;
307    }
308
309    public void setFinalExamRoom(String finalExamRoom) {
310        this.finalExamRoom = finalExamRoom;
311    }
312
313    public boolean isPublish() {
314        return publish;
315    }
316
317    public void setPublish(boolean publish) {
318        this.publish = publish;
319    }
320
321    public String getPublishTo() {
322        return publishTo;
323    }
324
325    public void setPublishTo(String publishTo) {
326        this.publishTo = publishTo;
327    }
328
329    public String getScheduleComments() {
330        return scheduleComments;
331    }
332
333    public void setScheduleComments(String scheduleComments) {
334        this.scheduleComments = scheduleComments;
335    }
336
337    public String getCourseUrl() {
338        return courseUrl;
339    }
340
341    public void setCourseUrl(String courseUrl) {
342        this.courseUrl = courseUrl;
343    }
344
345    public String getInternetClassProvider() {
346        return internetClassProvider;
347    }
348
349    public void setInternetClassProvider(String internetClassProvider) {
350        this.internetClassProvider = internetClassProvider;
351    }
352
353    public String getLocation() {
354        return location;
355    }
356
357    public void setLocation(String location) {
358        this.location = location;
359    }
360
361    public Integer getRegisteredNumber() {
362        return registeredNumber;
363    }
364
365    public void setRegisteredNumber(Integer registeredNumber) {
366        this.registeredNumber = registeredNumber;
367    }
368
369    public Integer getWaitlistNumber() {
370        return waitlistNumber;
371    }
372
373    public void setWaitlistNumber(Integer waitlistNumber) {
374        this.waitlistNumber = waitlistNumber;
375    }
376
377    public String getInstructor() {
378        return instructor;
379    }
380
381    public void setInstructor(String instructor) {
382        this.instructor = instructor;
383    }
384
385    public Course getCourse() {
386        return course;
387    }
388
389    public void setCourse(Course course) {
390        this.course = course;
391    }
392
393    public List<CourseInstructor> getInstructors() {
394        return instructors;
395    }
396
397    public void setInstructors(List<CourseInstructor> instructors) {
398        this.instructors = instructors;
399    }
400}