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;
}
Aggregations