View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package edu.sampleu.demo.course;
17  
18  import java.io.Serializable;
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  public class CourseSection implements Serializable {
27  
28      private String section;
29      private String registrationId;
30      private String term;
31      private Date startDate;
32      private Date endDate;
33      private boolean customMeetingTime;
34      private String standardMeetingSchedule;
35      private String standardMeetingTime;
36      private String attendanceType;
37  
38      private Integer weeklyInClassHours;
39      private Integer weeklyOutOfClassHours;
40      private Integer termInClassHours;
41      private Integer termOutOfClassHours;
42  
43      private Integer totalMinEnrollment;
44      private Integer totalMaxEnrollment;
45  
46      private String building;
47      private String room;
48  
49      private boolean waitlist;
50      private String waitlistType;
51      private Integer waitlistMaximum;
52  
53      private boolean finalExam;
54      private Date finalExamDate;
55      private String finalExamStartTime;
56      private String finalExamEndTime;
57      private String finalExamBuilding;
58      private String finalExamRoom;
59  
60      private boolean publish;
61      private String publishTo;
62  
63      private String scheduleComments;
64      private String courseUrl;
65      private String internetClassProvider;
66  
67      private String location;
68      private Integer registeredNumber;
69      private Integer waitlistNumber;
70      private String instructor;
71  
72      private Course course;
73  
74      private List<CourseInstructor> instructors;
75  
76      public CourseSection() {
77          instructors = new ArrayList<CourseInstructor>();
78  
79          registeredNumber = 0;
80          waitlistNumber = 0;
81      }
82  
83      public String getSection() {
84          return section;
85      }
86  
87      public void setSection(String section) {
88          this.section = section;
89      }
90  
91      public String getRegistrationId() {
92          return registrationId;
93      }
94  
95      public void setRegistrationId(String registrationId) {
96          this.registrationId = registrationId;
97      }
98  
99      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 }