public class CourseSectionWrapper extends Object
Wraps a Course, CourseSection and CourseMeeting for easy conversion to JSON and reference within JSPs.
| Modifier and Type | Field and Description |
|---|---|
static org.joda.time.format.DateTimeFormatter |
amPmFormat |
static Comparator<CourseSectionWrapper> |
ClassScheduleComparator
For sorting
CourseSectionWrappers by CourseMeeting.getStartTime() |
static org.joda.time.format.DateTimeFormatter |
dateDisplayFormat |
static Comparator<CourseSectionWrapper> |
FinalExamComparator |
protected org.slf4j.Logger |
logger |
static org.joda.time.format.DateTimeFormatter |
monthDescrFormat |
static Comparator<CourseSectionWrapper> |
OtherCourseComparator
|
static org.joda.time.format.DateTimeFormatter |
startTimeFormat |
| Constructor and Description |
|---|
CourseSectionWrapper() |
CourseSectionWrapper(Course course,
CourseSection section,
CourseMeeting meeting,
String url)
For individual meeting days
|
CourseSectionWrapper(Course course,
CourseSection section,
CourseMeeting meeting,
String day,
String url) |
CourseSectionWrapper(Course course,
CourseSection section,
String url) |
protected final org.slf4j.Logger logger
public static org.joda.time.format.DateTimeFormatter monthDescrFormat
public static org.joda.time.format.DateTimeFormatter startTimeFormat
public static org.joda.time.format.DateTimeFormatter amPmFormat
public static org.joda.time.format.DateTimeFormatter dateDisplayFormat
public static Comparator<CourseSectionWrapper> FinalExamComparator
public static Comparator<CourseSectionWrapper> ClassScheduleComparator
CourseSectionWrappers by CourseMeeting.getStartTime()public static Comparator<CourseSectionWrapper> OtherCourseComparator
public CourseSectionWrapper()
public CourseSectionWrapper(Course course, CourseSection section, String url)
public CourseSectionWrapper(Course course, CourseSection section, CourseMeeting meeting, String day, String url)
public CourseSectionWrapper(Course course, CourseSection section, CourseMeeting meeting, String url)
Used by the Final Exam Grid
course - Reference Course. setCourse(Course)section - Reference section, which is a member of course
setCourseSection(CourseSection)meeting - Reference meeting, which is a member of section
setCourseMeeting(CourseMeeting)
Used to set the Start date reference,
Is used to set day of week and name.setDay(DayEnum)DayEnumurl - The URL for the detail view of course and sectionpublic CourseMeeting getCourseMeeting()
public void setCourseMeeting(CourseMeeting courseMeeting)
courseMeeting - the courseMeeting to setstartTimeFormat,
getStartTime(),
getDuration()public CourseSection getCourseSection()
public void setCourseSection(CourseSection courseSection)
courseSection - the courseSection to setgetMeetingDescr()public Course getCourse()
public void setCourse(Course course)
course - the course to setgetCourseCode(),
getCourseDescr(),
getCourseTitle()public int getExamStartSunday()
public String getMonthDescrOfStart()
public String getStartTime()
public void setStartTime(String startTime)
startTime - the startTime to setpublic void setDay(DayEnum d)
public Integer getDayId()
public void setDayId(Integer dayId)
dayId - the dayId to setpublic String getDay()
public void setDay(String day)
day - the day to setpublic String getDayDescr()
public void setDayDescr(String dayDescr)
dayDescr - the dayDescr to setpublic String getUrl()
public void setUrl(String url)
public String getMeetingDescr()
public String getCourseCode()
public String getCourseDescr()
public Integer getScheduledDay()
public Integer getDuration()
public String getCourseTitle()
public org.joda.time.DateMidnight getStartDateObj()
public void setStartDateObj(org.joda.time.DateMidnight startDateObj)
public String getRoom()
public String getLocationDisplayName()
public String getStreetAddress()
public String getStartDateDisplay()
public String getTimeRangeDisplay()
public String getSessionCode()
public void setSessionCode(String sessionCode)
public String getSessionStartEndDate()
public void setSessionStartEndDate(String sessionStartEndDate)
Copyright © 2015 Jasig. All Rights Reserved.