@Singleton
public class ResultService
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
fillDataFieldsForExistingComponentResults()
This method is only used during update from version <3.7.5.
|
java.io.File |
getComponentResultDataAsTmpFile(User loggedInUser,
java.util.List<java.lang.Long> componentResultIdList)
Returns a File that contains all data of the given component results specified by their IDs.
|
java.util.List<ComponentResult> |
getComponentResults(java.util.List<java.lang.Long> componentResultIdList)
Gets the corresponding ComponentResult for a list of IDs.
|
java.util.List<StudyResult> |
getStudyResults(java.util.List<java.lang.Long> studyResultIdList)
Get all StudyResults or throw an Exception if one doesn't exist.
|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamComponentResultData(User loggedInUser,
java.util.List<java.lang.Long> componentResultIdList)
Returns an Akka Source that streams all data of the given component results specified by their IDs.
|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamComponentResults(Component component)
Uses a Akka Source to stream ComponentResults (including their result data) that belong to the given Component
from the database.
|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamStudyResultsByBatch(scala.Option<java.lang.String> workerType,
Batch batch)
Uses a Akka Source to stream StudyResults (including their result data) that belong to the given Batch and worker
type from the database.
|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamStudyResultsByGroup(GroupResult groupResult)
Uses a Akka Source to stream StudyResults (including their result data) that belong to the given GroupResult
from the database.
|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamStudyResultsByStudy(Study study)
Uses a Akka Source to stream StudyResults (including their result data) that belong to the given Study
from the database.
|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamStudyResultsByWorker(User loggedInUser,
Worker worker)
Uses a Akka Source to stream StudyResults (including their result data) that belong to the given Worker
from the database.
|
public java.util.List<ComponentResult> getComponentResults(java.util.List<java.lang.Long> componentResultIdList) throws NotFoundException
NotFoundException
public java.util.List<StudyResult> getStudyResults(java.util.List<java.lang.Long> studyResultIdList) throws NotFoundException
NotFoundException
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamStudyResultsByStudy(Study study)
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamStudyResultsByBatch(scala.Option<java.lang.String> workerType, Batch batch)
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamStudyResultsByGroup(GroupResult groupResult)
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamStudyResultsByWorker(User loggedInUser, Worker worker)
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamComponentResults(Component component)
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamComponentResultData(User loggedInUser, java.util.List<java.lang.Long> componentResultIdList)
public java.io.File getComponentResultDataAsTmpFile(User loggedInUser, java.util.List<java.lang.Long> componentResultIdList)
public void fillDataFieldsForExistingComponentResults()