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(org.jasig.portlet.courses.model.xml.personal.Course course,
org.jasig.portlet.courses.model.xml.CourseSection section,
org.jasig.portlet.courses.model.xml.CourseMeeting meeting,
String url)
For individual meeting days
|
CourseSectionWrapper(org.jasig.portlet.courses.model.xml.personal.Course course,
org.jasig.portlet.courses.model.xml.CourseSection section,
org.jasig.portlet.courses.model.xml.CourseMeeting meeting,
String day,
String url) |
CourseSectionWrapper(org.jasig.portlet.courses.model.xml.personal.Course course,
org.jasig.portlet.courses.model.xml.CourseSection section,
String url) |
| Modifier and Type | Method and Description |
|---|---|
org.jasig.portlet.courses.model.xml.personal.Course |
getCourse() |
String |
getCourseCode() |
String |
getCourseDescr() |
org.jasig.portlet.courses.model.xml.CourseMeeting |
getCourseMeeting() |
org.jasig.portlet.courses.model.xml.CourseSection |
getCourseSection() |
String |
getCourseTitle() |
String |
getDay() |
String |
getDayDescr() |
Integer |
getDayId() |
Integer |
getDuration() |
int |
getExamStartSunday() |
String |
getLocationDisplayName() |
String |
getMeetingDescr() |
String |
getMonthDescrOfStart() |
String |
getRoom() |
Integer |
getScheduledDay() |
String |
getSessionCode() |
String |
getSessionStartEndDate() |
String |
getStartDateDisplay() |
org.joda.time.DateMidnight |
getStartDateObj() |
String |
getStartTime() |
String |
getStreetAddress() |
String |
getTimeRangeDisplay() |
String |
getUrl() |
void |
setCourse(org.jasig.portlet.courses.model.xml.personal.Course course)
Sets the courseSection object
Also sets the courseCode, courseDescr and courseTitle from the course object
|
void |
setCourseMeeting(org.jasig.portlet.courses.model.xml.CourseMeeting courseMeeting)
Sets the courseMeeting object
Also sets the formatted startTime and duration of the courseMeeting
|
void |
setCourseSection(org.jasig.portlet.courses.model.xml.CourseSection courseSection)
Sets the course object
Also sets the meetingDescr from the courseSection object
|
void |
setDay(DayEnum d) |
void |
setDay(String day) |
void |
setDayDescr(String dayDescr) |
void |
setDayId(Integer dayId) |
void |
setSessionCode(String sessionCode) |
void |
setSessionStartEndDate(String sessionStartEndDate) |
void |
setStartDateObj(org.joda.time.DateMidnight startDateObj) |
void |
setStartTime(String startTime) |
void |
setUrl(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(org.jasig.portlet.courses.model.xml.personal.Course course,
org.jasig.portlet.courses.model.xml.CourseSection section,
String url)
public CourseSectionWrapper(org.jasig.portlet.courses.model.xml.personal.Course course,
org.jasig.portlet.courses.model.xml.CourseSection section,
org.jasig.portlet.courses.model.xml.CourseMeeting meeting,
String day,
String url)
public CourseSectionWrapper(org.jasig.portlet.courses.model.xml.personal.Course course,
org.jasig.portlet.courses.model.xml.CourseSection section,
org.jasig.portlet.courses.model.xml.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 org.jasig.portlet.courses.model.xml.CourseMeeting getCourseMeeting()
public void setCourseMeeting(org.jasig.portlet.courses.model.xml.CourseMeeting courseMeeting)
courseMeeting - the courseMeeting to setstartTimeFormat,
getStartTime(),
getDuration()public org.jasig.portlet.courses.model.xml.CourseSection getCourseSection()
public void setCourseSection(org.jasig.portlet.courses.model.xml.CourseSection courseSection)
courseSection - the courseSection to setgetMeetingDescr()public org.jasig.portlet.courses.model.xml.personal.Course getCourse()
public void setCourse(org.jasig.portlet.courses.model.xml.personal.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 © 2023 Jasig. All rights reserved.