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;
}
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());
}
}
Aggregations