use of uk.ac.bbsrc.tgac.miso.core.data.InstrumentDataManglingPolicy in project miso-lims by miso-lims.
the class Dtos method to.
public static Run to(@Nonnull RunDto dto) {
Run to = getPlatformRun(dto);
setLong(to::setId, dto.getId(), false);
setString(to::setName, dto.getName());
setString(to::setAlias, dto.getAlias());
setString(to::setDescription, dto.getDescription());
setObject(to::setHealth, dto.getStatus(), status -> HealthType.get(status));
setString(to::setAccession, dto.getAccession());
setObject(to::setSequencer, InstrumentImpl::new, dto.getInstrumentId());
setDate(to::setStartDate, dto.getStartDate());
setDate(to::setCompletionDate, dto.getEndDate());
setObject(to::setSequencingParameters, SequencingParameters::new, dto.getSequencingParametersId());
setObject(to::setSequencingKit, KitDescriptor::new, dto.getSequencingKitId());
setString(to::setSequencingKitLot, dto.getSequencingKitLot());
setString(to::setFilePath, dto.getRunPath());
setBoolean(to::setQcPassed, dto.getQcPassed(), true);
setBoolean(to::setDataReview, dto.getDataReview(), true);
setObject(to::setSop, Sop::new, dto.getSopId());
setObject(to::setDataManglingPolicy, dto.getDataManglingPolicy(), InstrumentDataManglingPolicy::valueOf);
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.InstrumentDataManglingPolicy in project miso-lims by miso-lims.
the class ConstantsController method addDataManglingPolicies.
private static void addDataManglingPolicies(ObjectNode node) {
ArrayNode dataManglingPolicies = node.putArray("dataManglingPolicies");
for (InstrumentDataManglingPolicy policy : InstrumentDataManglingPolicy.values()) {
ObjectNode dto = dataManglingPolicies.addObject();
dto.put("label", policy.getLabel());
dto.put("value", policy.name());
}
}
Aggregations