Package services.gui
Class WorkerService
- java.lang.Object
-
- services.gui.WorkerService
-
@Singleton public class WorkerService extends java.lang.ObjectService class for JATOS Controllers (not Publix).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringextractWorkerType(java.lang.String workerType)static booleanisValidWorkerType(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).static java.lang.StringvalidateAndExtractWorkerType(java.lang.String workerType)voidvalidateWorker(Worker worker)
-
-
-
Method Detail
-
validateWorker
public void validateWorker(Worker worker) throws BadRequestException
- Throws:
BadRequestException
-
retrieveStudyResultCountsPerWorker
public 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).
-
extractWorkerType
public static java.lang.String extractWorkerType(java.lang.String workerType)
-
validateAndExtractWorkerType
public static java.lang.String validateAndExtractWorkerType(java.lang.String workerType) throws BadRequestException- Throws:
BadRequestException
-
isValidWorkerType
public static boolean isValidWorkerType(java.lang.String workerType)
-
-