use of uk.ac.bbsrc.tgac.miso.dto.RunPartitionAliquotDto in project miso-lims by miso-lims.
the class EditRunController method getRunAliquots.
private List<RunPartitionAliquotDto> getRunAliquots(Run run) throws IOException {
List<RunPartitionAliquot> runPartitionAliquots = runPartitionAliquotService.listByRunId(run.getId());
List<RunPartitionAliquotDto> dtos = new ArrayList<>();
for (int i = 0; i < runPartitionAliquots.size(); i++) {
RunPartitionAliquotDto dto = Dtos.asDto(runPartitionAliquots.get(i));
// Add id for DataTables
dto.setId(Long.valueOf(i));
dtos.add(dto);
}
return dtos;
}
Aggregations