Search in sources :

Example 1 with BoxType

use of uk.ac.bbsrc.tgac.miso.core.data.BoxSize.BoxType in project miso-lims by miso-lims.

the class Dtos method to.

public static BoxSize to(@Nonnull BoxSizeDto from) {
    BoxSize to = new BoxSize();
    setLong(to::setId, from.getId(), false);
    setInteger(to::setRows, from.getRows(), true);
    setInteger(to::setColumns, from.getColumns(), true);
    setBoolean(to::setScannable, from.isScannable(), false);
    setObject(to::setBoxType, from.getBoxType(), BoxType::valueOf);
    return to;
}
Also used : BoxSize(uk.ac.bbsrc.tgac.miso.core.data.BoxSize) IonTorrentRunDto(uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto) QcHierarchyNodeDto(uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto) RunPositionDto(uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto) PacBioRunDto(uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto) Ls454RunDto(uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto) IlluminaNotificationDto(ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto) OxfordNanoporeRunDto(uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto) IlluminaRunDto(uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto) NotificationDto(ca.on.oicr.gsi.runscanner.dto.NotificationDto) OxfordNanoporeNotificationDto(ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto) RunDto(uk.ac.bbsrc.tgac.miso.dto.run.RunDto) SolidRunDto(uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto) OrderAliquotDto(uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto) BoxType(uk.ac.bbsrc.tgac.miso.core.data.BoxSize.BoxType)

Example 2 with BoxType

use of uk.ac.bbsrc.tgac.miso.core.data.BoxSize.BoxType in project miso-lims by miso-lims.

the class BoxSizeController method addHotConfig.

@Override
protected void addHotConfig(ObjectNode config, ObjectMapper mapper) throws IOException {
    ArrayNode boxTypes = config.putArray("boxTypes");
    for (BoxType boxType : BoxType.values()) {
        ObjectNode dto = boxTypes.addObject();
        dto.put("name", boxType.name());
        dto.put("label", boxType.getLabel());
    }
}
Also used : ObjectNode(com.fasterxml.jackson.databind.node.ObjectNode) ArrayNode(com.fasterxml.jackson.databind.node.ArrayNode) BoxType(uk.ac.bbsrc.tgac.miso.core.data.BoxSize.BoxType)

Aggregations

BoxType (uk.ac.bbsrc.tgac.miso.core.data.BoxSize.BoxType)2 IlluminaNotificationDto (ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto)1 NotificationDto (ca.on.oicr.gsi.runscanner.dto.NotificationDto)1 OxfordNanoporeNotificationDto (ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto)1 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 BoxSize (uk.ac.bbsrc.tgac.miso.core.data.BoxSize)1 OrderAliquotDto (uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto)1 QcHierarchyNodeDto (uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto)1 IlluminaRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto)1 IonTorrentRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto)1 Ls454RunDto (uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto)1 OxfordNanoporeRunDto (uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto)1 PacBioRunDto (uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto)1 RunDto (uk.ac.bbsrc.tgac.miso.dto.run.RunDto)1 RunPositionDto (uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)1 SolidRunDto (uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto)1