Package services.gui

Class ComponentResultIdsExtractor


  • @Singleton
    public class ComponentResultIdsExtractor
    extends java.lang.Object
    Extracts 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • extract

        public java.util.List<java.lang.Long> extract​(java.util.Map<java.lang.String,​java.lang.String[]> map)
                                               throws BadRequestException
        Extracts 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 BadRequestException
        Extracts 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