Search in sources :

Example 1 with AdminAccountManagementAccountTableRow

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

the class AdminAccountManagementPageData method createAccountTable.

private List<AdminAccountManagementAccountTableRow> createAccountTable(Map<String, AccountAttributes> instructorAccountsTable, Map<String, ArrayList<InstructorAttributes>> instructorCoursesTable) {
    List<AdminAccountManagementAccountTableRow> table = new ArrayList<>();
    for (Map.Entry<String, AccountAttributes> entry : instructorAccountsTable.entrySet()) {
        String key = entry.getKey();
        AccountAttributes acc = entry.getValue();
        if (isTestingAccount(acc) && !isToShowAll) {
            continue;
        }
        ArrayList<InstructorAttributes> coursesList = instructorCoursesTable.get(key);
        AdminAccountManagementAccountTableRow row = new AdminAccountManagementAccountTableRow(acc, coursesList, getSessionToken());
        table.add(row);
    }
    return table;
}
Also used : AccountAttributes(teammates.common.datatransfer.attributes.AccountAttributes) ArrayList(java.util.ArrayList) Map(java.util.Map) AdminAccountManagementAccountTableRow(teammates.ui.template.AdminAccountManagementAccountTableRow) InstructorAttributes(teammates.common.datatransfer.attributes.InstructorAttributes)

Aggregations

ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 AccountAttributes (teammates.common.datatransfer.attributes.AccountAttributes)1 InstructorAttributes (teammates.common.datatransfer.attributes.InstructorAttributes)1 AdminAccountManagementAccountTableRow (teammates.ui.template.AdminAccountManagementAccountTableRow)1