Search in sources :

Example 1 with InstructorHomeCourseAjaxPageData

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);
}
Also used : CourseSummaryBundle(teammates.common.datatransfer.CourseSummaryBundle) InstructorHomeCourseAjaxPageData(teammates.ui.pagedata.InstructorHomeCourseAjaxPageData) InstructorAttributes(teammates.common.datatransfer.attributes.InstructorAttributes)

Aggregations

CourseSummaryBundle (teammates.common.datatransfer.CourseSummaryBundle)1 InstructorAttributes (teammates.common.datatransfer.attributes.InstructorAttributes)1 InstructorHomeCourseAjaxPageData (teammates.ui.pagedata.InstructorHomeCourseAjaxPageData)1