Package services.gui
Class ComponentResultIdsExtractor
- java.lang.Object
-
- services.gui.ComponentResultIdsExtractor
-
@Singleton public class ComponentResultIdsExtractor extends java.lang.ObjectExtracts component result IDs from JSON or a Map.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Long>extract(com.fasterxml.jackson.databind.JsonNode json)Extracts component result IDs from a JsonNode.java.util.List<java.lang.Long>extract(java.util.Map<java.lang.String,java.lang.String[]> map)Extracts component result IDs from the given map.
-
-
-
Method Detail
-
extract
public java.util.List<java.lang.Long> extract(java.util.Map<java.lang.String,java.lang.String[]> map) throws BadRequestExceptionExtracts component result IDs from the given map. It ensures that those component results actually exist in the database. Basically all IDs used in JATOS are allowed, e.g. study IDs or batch IDs. This method looks in the database for the corresponding component result IDs.- Throws:
BadRequestException
-
extract
public java.util.List<java.lang.Long> extract(com.fasterxml.jackson.databind.JsonNode json) throws BadRequestExceptionExtracts component result IDs from a JsonNode. It ensures that those component results actually exist in the database. Basically all IDs used in JATOS are allowed, e.g. study IDs or batch IDs. This method looks in the database for the corresponding component result IDs.- Throws:
BadRequestException
-
-