use of teammates.ui.pagedata.InstructorHomeCourseAjaxPageData in project teammates by TEAMMATES.
the class InstructorHomePageAction method loadCourse.
private ActionResult loadCourse(String courseToLoad) throws EntityDoesNotExistException {
int index = Integer.parseInt(getRequestParamValue("index"));
InstructorAttributes instructor = logic.getInstructorForGoogleId(courseToLoad, account.googleId);
CourseSummaryBundle course = logic.getCourseSummaryWithFeedbackSessions(instructor);
FeedbackSessionAttributes.sortFeedbackSessionsByCreationTimeDescending(course.feedbackSessions);
InstructorHomeCourseAjaxPageData data = new InstructorHomeCourseAjaxPageData(account, sessionToken);
data.init(index, course, instructor);
statusToAdmin = "instructorHome Course Load:<br>" + courseToLoad;
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_HOME_AJAX_COURSE_TABLE, data);
}
Aggregations