@Singleton
public class WorkerService
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
extractWorkerType(java.lang.String workerType) |
java.util.Map<java.lang.String,java.lang.Integer> |
retrieveStudyResultCountsPerWorker(Batch batch)
Retrieves the count of StudyResults for each worker type in a map (
workerType -> count).
|
void |
validateWorker(Worker worker) |
public void validateWorker(Worker worker) throws BadRequestException
BadRequestException
public java.util.Map<java.lang.String,java.lang.Integer> retrieveStudyResultCountsPerWorker(Batch batch)
public java.lang.String extractWorkerType(java.lang.String workerType) throws BadRequestException
BadRequestException