Search in sources :

Example 1 with AdminAccountDetailsInstructorCourseListTableRow

use of teammates.ui.template.AdminAccountDetailsInstructorCourseListTableRow in project teammates by TEAMMATES.

the class AdminAccountDetailsPageData method createInstructorCourseListTable.

private List<AdminAccountDetailsInstructorCourseListTableRow> createInstructorCourseListTable(List<CourseDetailsBundle> instructorCourseList) {
    List<AdminAccountDetailsInstructorCourseListTableRow> courseListTable = new ArrayList<>();
    if (instructorCourseList != null) {
        for (CourseDetailsBundle courseDetails : instructorCourseList) {
            AdminAccountDetailsInstructorCourseListTableRow row = new AdminAccountDetailsInstructorCourseListTableRow(accountInformation.googleId, courseDetails, getSessionToken());
            courseListTable.add(row);
        }
    }
    return courseListTable;
}
Also used : CourseDetailsBundle(teammates.common.datatransfer.CourseDetailsBundle) AdminAccountDetailsInstructorCourseListTableRow(teammates.ui.template.AdminAccountDetailsInstructorCourseListTableRow) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 CourseDetailsBundle (teammates.common.datatransfer.CourseDetailsBundle)1 AdminAccountDetailsInstructorCourseListTableRow (teammates.ui.template.AdminAccountDetailsInstructorCourseListTableRow)1