Search in sources :

Example 1 with RunPartitionAliquotDto

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;
}
Also used : RunPartitionAliquot(uk.ac.bbsrc.tgac.miso.core.data.RunPartitionAliquot) ArrayList(java.util.ArrayList) RunPartitionAliquotDto(uk.ac.bbsrc.tgac.miso.dto.RunPartitionAliquotDto)

Aggregations

ArrayList (java.util.ArrayList)1 RunPartitionAliquot (uk.ac.bbsrc.tgac.miso.core.data.RunPartitionAliquot)1 RunPartitionAliquotDto (uk.ac.bbsrc.tgac.miso.dto.RunPartitionAliquotDto)1