Search in sources :

Example 1 with AdminAccountDetailsStudentCourseListTableRow

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

the class AdminAccountDetailsPageData method createStudentCourseListTable.

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

Aggregations

ArrayList (java.util.ArrayList)1 CourseAttributes (teammates.common.datatransfer.attributes.CourseAttributes)1 AdminAccountDetailsStudentCourseListTableRow (teammates.ui.template.AdminAccountDetailsStudentCourseListTableRow)1