Search in sources :

Example 1 with WorksetStage

use of uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage in project miso-lims by miso-lims.

the class Dtos method to.

public static Workset to(@Nonnull WorksetDto from) {
    Workset workset = new Workset();
    setLong(workset::setId, from.getId(), false);
    setString(workset::setAlias, from.getAlias());
    setString(workset::setDescription, from.getDescription());
    setObject(workset::setCategory, WorksetCategory::new, from.getCategoryId());
    setObject(workset::setStage, WorksetStage::new, from.getStageId());
    setWorksetItems(workset::setWorksetSamples, from.getSampleIds(), WorksetSample::new, SampleImpl::new);
    setWorksetItems(workset::setWorksetLibraries, from.getLibraryIds(), WorksetLibrary::new, LibraryImpl::new);
    setWorksetItems(workset::setWorksetLibraryAliquots, from.getLibraryAliquotIds(), WorksetLibraryAliquot::new, LibraryAliquot::new);
    return workset;
}
Also used : WorksetStage(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage) WorksetSample(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetSample) Workset(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.Workset) WorksetLibrary(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetLibrary) WorksetLibraryAliquot(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetLibraryAliquot) WorksetCategory(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetCategory) LibraryImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.LibraryImpl) DetailedLibraryImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.DetailedLibraryImpl) TransferLibraryAliquot(uk.ac.bbsrc.tgac.miso.core.data.impl.transfer.TransferLibraryAliquot) WorksetLibraryAliquot(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetLibraryAliquot) OrderLibraryAliquot(uk.ac.bbsrc.tgac.miso.core.data.impl.OrderLibraryAliquot) DetailedLibraryAliquot(uk.ac.bbsrc.tgac.miso.core.data.impl.DetailedLibraryAliquot) LibraryAliquot(uk.ac.bbsrc.tgac.miso.core.data.impl.LibraryAliquot) SampleImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleImpl) DetailedSampleImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.DetailedSampleImpl)

Example 2 with WorksetStage

use of uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage in project miso-lims by miso-lims.

the class Dtos method toWorksetStage.

public static WorksetStage toWorksetStage(SimpleAliasableDto from) {
    WorksetStage to = new WorksetStage();
    setLong(to::setId, from.getId(), false);
    setString(to::setAlias, from.getAlias());
    return to;
}
Also used : WorksetStage(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage) 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)

Example 3 with WorksetStage

use of uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage in project miso-lims by miso-lims.

the class HibernateWorksetStageDaoIT method getCreateItem.

@Override
public WorksetStage getCreateItem() {
    WorksetStage stage = new WorksetStage();
    stage.setAlias("New Stage");
    return stage;
}
Also used : WorksetStage(uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage)

Aggregations

WorksetStage (uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage)3 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 DetailedLibraryAliquot (uk.ac.bbsrc.tgac.miso.core.data.impl.DetailedLibraryAliquot)1 DetailedLibraryImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.DetailedLibraryImpl)1 DetailedSampleImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.DetailedSampleImpl)1 LibraryAliquot (uk.ac.bbsrc.tgac.miso.core.data.impl.LibraryAliquot)1 LibraryImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.LibraryImpl)1 OrderLibraryAliquot (uk.ac.bbsrc.tgac.miso.core.data.impl.OrderLibraryAliquot)1 SampleImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleImpl)1 TransferLibraryAliquot (uk.ac.bbsrc.tgac.miso.core.data.impl.transfer.TransferLibraryAliquot)1 Workset (uk.ac.bbsrc.tgac.miso.core.data.impl.workset.Workset)1 WorksetCategory (uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetCategory)1 WorksetLibrary (uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetLibrary)1 WorksetLibraryAliquot (uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetLibraryAliquot)1 WorksetSample (uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetSample)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