@Singleton
public class ResultStreamer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResultStreamer.ResultType |
Modifier and Type | Method and Description |
---|---|
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamComponentResultData(play.mvc.Http.Request request) |
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,?> |
streamResults(play.mvc.Http.Request request,
ResultStreamer.ResultType resultType) |
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamResults(play.mvc.Http.Request request,
ResultStreamer.ResultType resultType,
java.util.Map<java.lang.String,java.lang.Object> wrapObject) |
akka.stream.javadsl.Source<akka.util.ByteString,?> |
streamStudyResultsByBatch(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.
|
java.io.File |
writeResultMetadata(play.mvc.Http.Request request,
java.util.Map<java.lang.String,java.lang.Object> wrapObject)
Returns a file with metadata
|
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamStudyResultsByStudy(Study study)
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamStudyResultsByBatch(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(play.mvc.Http.Request request) throws BadRequestException, ForbiddenException, NotFoundException
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamResults(play.mvc.Http.Request request, ResultStreamer.ResultType resultType) throws BadRequestException
BadRequestException
public akka.stream.javadsl.Source<akka.util.ByteString,?> streamResults(play.mvc.Http.Request request, ResultStreamer.ResultType resultType, java.util.Map<java.lang.String,java.lang.Object> wrapObject) throws BadRequestException
BadRequestException
public java.io.File writeResultMetadata(play.mvc.Http.Request request, java.util.Map<java.lang.String,java.lang.Object> wrapObject) throws ForbiddenException, NotFoundException, java.io.IOException, BadRequestException
ForbiddenException
NotFoundException
java.io.IOException
BadRequestException