9 | | 3. Java servlet class/file `CaseSummaryServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `doGet(HttpServletRequest req, HttpServletResponse resp)` updated for command "`GetCaseInfo`" to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of RNA and DNA items, and if the result is not `null`, add the plate info as JSONObject with key "`startPlate`" to the JSONObject for the RNA or DNA.[[BR]]b. Private method `BioPlate fetchStartPlate(DbControl dc, SpecimenTube st)` updated to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of the `SpecimenTube` sample item.[[BR]]c. New private method `BioPlate fetchStartPlate(DbControl dc, String name)` added. It finds the first start DNA reaction plate with the input item name contained in annotation list `Annotationtype.SOURCE_ITEM_NAMES_LIST_STRING`. If none is found, `null` will be returned.[[BR]]d. New private method `boolean itemIsInputItem(String itemName)` added. It checks if an item is an input item by checking if its name only contains a single dot. Case names without dots are not considered as input items here. |
| 9 | 3. Java servlet class/file `CaseSummaryServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `doGet(HttpServletRequest req, HttpServletResponse resp)` updated for command "`GetCaseInfo`" to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of input RNA and DNA items, and if the result is not `null`, add the plate info as JSONObject with key "`startPlate`" to the JSONObject for the RNA or DNA.[[BR]]b. Private method `BioPlate fetchStartPlate(DbControl dc, SpecimenTube st)` updated to call new private method `BioPlate fetchStartPlate(DbControl dc, String name)` for the name of the `SpecimenTube` sample item.[[BR]]c. New private method `BioPlate fetchStartPlate(DbControl dc, String name)` added. It finds the first start DNA reaction plate with the input item name contained in annotation list `Annotationtype.SOURCE_ITEM_NAMES_LIST_STRING`. If none is found, `null` will be returned.[[BR]]d. New private method `boolean itemIsInputItem(String itemName)` added. It checks if an item is an input item by checking if its name only contains a single dot. Case names without dots are not considered as input items here. |