Search in sources :

Example 6 with Submission

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

the class DefaultSubmissionService method update.

@Override
public long update(Submission submission) throws IOException {
    Submission managed = submissionStore.get(submission.getId());
    managed.setAccession(submission.getAccession());
    managed.setAlias(submission.getAlias());
    managed.setCompleted(submission.isCompleted());
    managed.setDescription(submission.getDescription());
    managed.setSubmissionDate(submission.getSubmissionDate());
    managed.setTitle(submission.getTitle());
    managed.setVerified(submission.isVerified());
    return submissionStore.update(managed);
}
Also used : Submission(uk.ac.bbsrc.tgac.miso.core.data.Submission)

Aggregations

Submission (uk.ac.bbsrc.tgac.miso.core.data.Submission)6 Date (java.util.Date)4 User (com.eaglegenomics.simlims.core.User)2 SimpleDateFormat (java.text.SimpleDateFormat)2 GetMapping (org.springframework.web.bind.annotation.GetMapping)2 Experiment (uk.ac.bbsrc.tgac.miso.core.data.Experiment)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 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1 DateFormat (java.text.DateFormat)1 Objects (java.util.Objects)1 Set (java.util.Set)1 Stream (java.util.stream.Stream)1 ZipEntry (java.util.zip.ZipEntry)1 ZipOutputStream (java.util.zip.ZipOutputStream)1 DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 OutputKeys (javax.xml.transform.OutputKeys)1