Search in sources :

Example 1 with RunPositionDto

use of uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto in project miso-lims by miso-lims.

the class Dtos method asDto.

public static RunPositionDto asDto(@Nonnull RunPosition from) {
    RunPositionDto dto = new RunPositionDto();
    setId(dto::setPositionId, from.getPosition());
    setString(dto::setPositionAlias, maybeGetProperty(from.getPosition(), InstrumentPosition::getAlias));
    setId(dto::setId, from.getContainer());
    setString(dto::setIdentificationBarcode, maybeGetProperty(from.getContainer(), SequencerPartitionContainer::getIdentificationBarcode));
    setObject(dto::setContainerModel, from.getContainer().getModel(), Dtos::asDto);
    setDateTimeString(dto::setLastModified, maybeGetProperty(from.getContainer(), SequencerPartitionContainer::getLastModified));
    return dto;
}
Also used : RunPositionDto(uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)

Aggregations

RunPositionDto (uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)1