| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package edu.sampleu.student.dataobject; |
| 17 | |
|
| 18 | |
import java.io.Serializable; |
| 19 | |
import java.util.ArrayList; |
| 20 | |
import java.util.Date; |
| 21 | |
import java.util.List; |
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 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 | 0 | public CourseSection() { |
| 77 | 0 | instructors = new ArrayList<CourseInstructor>(); |
| 78 | |
|
| 79 | 0 | registeredNumber = 0; |
| 80 | 0 | waitlistNumber = 0; |
| 81 | 0 | } |
| 82 | |
|
| 83 | |
public String getSection() { |
| 84 | 0 | return section; |
| 85 | |
} |
| 86 | |
|
| 87 | |
public void setSection(String section) { |
| 88 | 0 | this.section = section; |
| 89 | 0 | } |
| 90 | |
|
| 91 | |
public String getRegistrationId() { |
| 92 | 0 | return registrationId; |
| 93 | |
} |
| 94 | |
|
| 95 | |
public void setRegistrationId(String registrationId) { |
| 96 | 0 | this.registrationId = registrationId; |
| 97 | 0 | } |
| 98 | |
|
| 99 | |
public String getTerm() { |
| 100 | 0 | return term; |
| 101 | |
} |
| 102 | |
|
| 103 | |
public void setTerm(String term) { |
| 104 | 0 | this.term = term; |
| 105 | 0 | } |
| 106 | |
|
| 107 | |
public Date getStartDate() { |
| 108 | 0 | return startDate; |
| 109 | |
} |
| 110 | |
|
| 111 | |
public void setStartDate(Date startDate) { |
| 112 | 0 | this.startDate = startDate; |
| 113 | 0 | } |
| 114 | |
|
| 115 | |
public Date getEndDate() { |
| 116 | 0 | return endDate; |
| 117 | |
} |
| 118 | |
|
| 119 | |
public void setEndDate(Date endDate) { |
| 120 | 0 | this.endDate = endDate; |
| 121 | 0 | } |
| 122 | |
|
| 123 | |
public boolean isCustomMeetingTime() { |
| 124 | 0 | return customMeetingTime; |
| 125 | |
} |
| 126 | |
|
| 127 | |
public void setCustomMeetingTime(boolean customMeetingTime) { |
| 128 | 0 | this.customMeetingTime = customMeetingTime; |
| 129 | 0 | } |
| 130 | |
|
| 131 | |
public String getStandardMeetingSchedule() { |
| 132 | 0 | return standardMeetingSchedule; |
| 133 | |
} |
| 134 | |
|
| 135 | |
public void setStandardMeetingSchedule(String standardMeetingSchedule) { |
| 136 | 0 | this.standardMeetingSchedule = standardMeetingSchedule; |
| 137 | 0 | } |
| 138 | |
|
| 139 | |
public String getStandardMeetingTime() { |
| 140 | 0 | return standardMeetingTime; |
| 141 | |
} |
| 142 | |
|
| 143 | |
public void setStandardMeetingTime(String standardMeetingTime) { |
| 144 | 0 | this.standardMeetingTime = standardMeetingTime; |
| 145 | 0 | } |
| 146 | |
|
| 147 | |
public String getAttendanceType() { |
| 148 | 0 | return attendanceType; |
| 149 | |
} |
| 150 | |
|
| 151 | |
public void setAttendanceType(String attendanceType) { |
| 152 | 0 | this.attendanceType = attendanceType; |
| 153 | 0 | } |
| 154 | |
|
| 155 | |
public Integer getWeeklyInClassHours() { |
| 156 | 0 | return weeklyInClassHours; |
| 157 | |
} |
| 158 | |
|
| 159 | |
public void setWeeklyInClassHours(Integer weeklyInClassHours) { |
| 160 | 0 | this.weeklyInClassHours = weeklyInClassHours; |
| 161 | 0 | } |
| 162 | |
|
| 163 | |
public Integer getWeeklyOutOfClassHours() { |
| 164 | 0 | return weeklyOutOfClassHours; |
| 165 | |
} |
| 166 | |
|
| 167 | |
public void setWeeklyOutOfClassHours(Integer weeklyOutOfClassHours) { |
| 168 | 0 | this.weeklyOutOfClassHours = weeklyOutOfClassHours; |
| 169 | 0 | } |
| 170 | |
|
| 171 | |
public Integer getWeeklyTotalHours() { |
| 172 | 0 | Integer total = 0; |
| 173 | 0 | if (weeklyInClassHours != null) { |
| 174 | 0 | total += weeklyInClassHours; |
| 175 | |
} |
| 176 | 0 | if (weeklyOutOfClassHours != null) { |
| 177 | 0 | total += weeklyOutOfClassHours; |
| 178 | |
} |
| 179 | 0 | return total; |
| 180 | |
} |
| 181 | |
|
| 182 | |
public Integer getTermInClassHours() { |
| 183 | 0 | return termInClassHours; |
| 184 | |
} |
| 185 | |
|
| 186 | |
public void setTermInClassHours(Integer termInClassHours) { |
| 187 | 0 | this.termInClassHours = termInClassHours; |
| 188 | 0 | } |
| 189 | |
|
| 190 | |
public Integer getTermOutOfClassHours() { |
| 191 | 0 | return termOutOfClassHours; |
| 192 | |
} |
| 193 | |
|
| 194 | |
public void setTermOutOfClassHours(Integer termOutOfClassHours) { |
| 195 | 0 | this.termOutOfClassHours = termOutOfClassHours; |
| 196 | 0 | } |
| 197 | |
|
| 198 | |
public Integer getTermTotalHours() { |
| 199 | 0 | Integer total = 0; |
| 200 | 0 | if (termInClassHours != null) { |
| 201 | 0 | total += termInClassHours; |
| 202 | |
} |
| 203 | 0 | if (termOutOfClassHours != null) { |
| 204 | 0 | total += termOutOfClassHours; |
| 205 | |
} |
| 206 | 0 | return total; |
| 207 | |
} |
| 208 | |
|
| 209 | |
public Integer getTotalMinEnrollment() { |
| 210 | 0 | return totalMinEnrollment; |
| 211 | |
} |
| 212 | |
|
| 213 | |
public void setTotalMinEnrollment(Integer totalMinEnrollment) { |
| 214 | 0 | this.totalMinEnrollment = totalMinEnrollment; |
| 215 | 0 | } |
| 216 | |
|
| 217 | |
public Integer getTotalMaxEnrollment() { |
| 218 | 0 | return totalMaxEnrollment; |
| 219 | |
} |
| 220 | |
|
| 221 | |
public void setTotalMaxEnrollment(Integer totalMaxEnrollment) { |
| 222 | 0 | this.totalMaxEnrollment = totalMaxEnrollment; |
| 223 | 0 | } |
| 224 | |
|
| 225 | |
public String getBuilding() { |
| 226 | 0 | return building; |
| 227 | |
} |
| 228 | |
|
| 229 | |
public void setBuilding(String building) { |
| 230 | 0 | this.building = building; |
| 231 | 0 | } |
| 232 | |
|
| 233 | |
public String getRoom() { |
| 234 | 0 | return room; |
| 235 | |
} |
| 236 | |
|
| 237 | |
public void setRoom(String room) { |
| 238 | 0 | this.room = room; |
| 239 | 0 | } |
| 240 | |
|
| 241 | |
public boolean isWaitlist() { |
| 242 | 0 | return waitlist; |
| 243 | |
} |
| 244 | |
|
| 245 | |
public void setWaitlist(boolean waitlist) { |
| 246 | 0 | this.waitlist = waitlist; |
| 247 | 0 | } |
| 248 | |
|
| 249 | |
public String getWaitlistType() { |
| 250 | 0 | return waitlistType; |
| 251 | |
} |
| 252 | |
|
| 253 | |
public void setWaitlistType(String waitlistType) { |
| 254 | 0 | this.waitlistType = waitlistType; |
| 255 | 0 | } |
| 256 | |
|
| 257 | |
public Integer getWaitlistMaximum() { |
| 258 | 0 | return waitlistMaximum; |
| 259 | |
} |
| 260 | |
|
| 261 | |
public void setWaitlistMaximum(Integer waitlistMaximum) { |
| 262 | 0 | this.waitlistMaximum = waitlistMaximum; |
| 263 | 0 | } |
| 264 | |
|
| 265 | |
public boolean isFinalExam() { |
| 266 | 0 | return finalExam; |
| 267 | |
} |
| 268 | |
|
| 269 | |
public void setFinalExam(boolean finalExam) { |
| 270 | 0 | this.finalExam = finalExam; |
| 271 | 0 | } |
| 272 | |
|
| 273 | |
public Date getFinalExamDate() { |
| 274 | 0 | return finalExamDate; |
| 275 | |
} |
| 276 | |
|
| 277 | |
public void setFinalExamDate(Date finalExamDate) { |
| 278 | 0 | this.finalExamDate = finalExamDate; |
| 279 | 0 | } |
| 280 | |
|
| 281 | |
public String getFinalExamStartTime() { |
| 282 | 0 | return finalExamStartTime; |
| 283 | |
} |
| 284 | |
|
| 285 | |
public void setFinalExamStartTime(String finalExamStartTime) { |
| 286 | 0 | this.finalExamStartTime = finalExamStartTime; |
| 287 | 0 | } |
| 288 | |
|
| 289 | |
public String getFinalExamEndTime() { |
| 290 | 0 | return finalExamEndTime; |
| 291 | |
} |
| 292 | |
|
| 293 | |
public void setFinalExamEndTime(String finalExamEndTime) { |
| 294 | 0 | this.finalExamEndTime = finalExamEndTime; |
| 295 | 0 | } |
| 296 | |
|
| 297 | |
public String getFinalExamBuilding() { |
| 298 | 0 | return finalExamBuilding; |
| 299 | |
} |
| 300 | |
|
| 301 | |
public void setFinalExamBuilding(String finalExamBuilding) { |
| 302 | 0 | this.finalExamBuilding = finalExamBuilding; |
| 303 | 0 | } |
| 304 | |
|
| 305 | |
public String getFinalExamRoom() { |
| 306 | 0 | return finalExamRoom; |
| 307 | |
} |
| 308 | |
|
| 309 | |
public void setFinalExamRoom(String finalExamRoom) { |
| 310 | 0 | this.finalExamRoom = finalExamRoom; |
| 311 | 0 | } |
| 312 | |
|
| 313 | |
public boolean isPublish() { |
| 314 | 0 | return publish; |
| 315 | |
} |
| 316 | |
|
| 317 | |
public void setPublish(boolean publish) { |
| 318 | 0 | this.publish = publish; |
| 319 | 0 | } |
| 320 | |
|
| 321 | |
public String getPublishTo() { |
| 322 | 0 | return publishTo; |
| 323 | |
} |
| 324 | |
|
| 325 | |
public void setPublishTo(String publishTo) { |
| 326 | 0 | this.publishTo = publishTo; |
| 327 | 0 | } |
| 328 | |
|
| 329 | |
public String getScheduleComments() { |
| 330 | 0 | return scheduleComments; |
| 331 | |
} |
| 332 | |
|
| 333 | |
public void setScheduleComments(String scheduleComments) { |
| 334 | 0 | this.scheduleComments = scheduleComments; |
| 335 | 0 | } |
| 336 | |
|
| 337 | |
public String getCourseUrl() { |
| 338 | 0 | return courseUrl; |
| 339 | |
} |
| 340 | |
|
| 341 | |
public void setCourseUrl(String courseUrl) { |
| 342 | 0 | this.courseUrl = courseUrl; |
| 343 | 0 | } |
| 344 | |
|
| 345 | |
public String getInternetClassProvider() { |
| 346 | 0 | return internetClassProvider; |
| 347 | |
} |
| 348 | |
|
| 349 | |
public void setInternetClassProvider(String internetClassProvider) { |
| 350 | 0 | this.internetClassProvider = internetClassProvider; |
| 351 | 0 | } |
| 352 | |
|
| 353 | |
public String getLocation() { |
| 354 | 0 | return location; |
| 355 | |
} |
| 356 | |
|
| 357 | |
public void setLocation(String location) { |
| 358 | 0 | this.location = location; |
| 359 | 0 | } |
| 360 | |
|
| 361 | |
public Integer getRegisteredNumber() { |
| 362 | 0 | return registeredNumber; |
| 363 | |
} |
| 364 | |
|
| 365 | |
public void setRegisteredNumber(Integer registeredNumber) { |
| 366 | 0 | this.registeredNumber = registeredNumber; |
| 367 | 0 | } |
| 368 | |
|
| 369 | |
public Integer getWaitlistNumber() { |
| 370 | 0 | return waitlistNumber; |
| 371 | |
} |
| 372 | |
|
| 373 | |
public void setWaitlistNumber(Integer waitlistNumber) { |
| 374 | 0 | this.waitlistNumber = waitlistNumber; |
| 375 | 0 | } |
| 376 | |
|
| 377 | |
public String getInstructor() { |
| 378 | 0 | return instructor; |
| 379 | |
} |
| 380 | |
|
| 381 | |
public void setInstructor(String instructor) { |
| 382 | 0 | this.instructor = instructor; |
| 383 | 0 | } |
| 384 | |
|
| 385 | |
public Course getCourse() { |
| 386 | 0 | return course; |
| 387 | |
} |
| 388 | |
|
| 389 | |
public void setCourse(Course course) { |
| 390 | 0 | this.course = course; |
| 391 | 0 | } |
| 392 | |
|
| 393 | |
public List<CourseInstructor> getInstructors() { |
| 394 | 0 | return instructors; |
| 395 | |
} |
| 396 | |
|
| 397 | |
public void setInstructors(List<CourseInstructor> instructors) { |
| 398 | 0 | this.instructors = instructors; |
| 399 | 0 | } |
| 400 | |
} |