use of org.eclipse.sw360.portal.users.UserCSV in project sw360portal by sw360.
the class UserPortlet method getUsersFromCSV.
private List<UserCSV> getUsersFromCSV(List<CSVRecord> records) {
List<UserCSV> users = new ArrayList<>();
for (CSVRecord record : records) {
try {
UserCSV user = new UserCSV(record);
users.add(user);
} catch (IndexOutOfBoundsException e) {
log.error("Broken csv record");
}
}
return users;
}