21 | | 10. Java servlet class/file `LibPrepServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Constants and variables names related to attribute "Available" updated by exchanging the "Available" and "available" part of the name for "Active" and "active", respectively. Correspondingly, "unavailable" was exchanged for "inactive".[[BR]]b. Protected method `void doGet(HttpServletRequest req, HttpServletResponse resp)` updated for commands "`GetLibPrepKitData`" and "`GetLibPrepKitsAsPlates`" to include new first argument `DbControl dc` when calling updated private method `JSONObject fetchJsonKitData(DbControl dc, String libPrepKitNameFilter, Boolean activeFilter, Boolean usedFilter, Integer minUnusedFpaPlateLocs)`.[[BR]]c. Private method `JSONObject fetchJsonKitDataForUpdate(DbControl dc, String libPrepKitName, List<String> reservedWellsList)` updated with first new argument `DbControl dc` and to include new first argument `DbControl dc` when calling updated private method `JSONObject fetchJsonKitData(DbControl dc, String libPrepKitNameFilter, Boolean activeFilter, Boolean usedFilter, Integer minUnusedFpaPlateLocs)`.[[BR]]d. Private method `JSONObject fetchJsonKitData(DbControl dc, String libPrepKitNameFilter, Boolean activeFilter, Boolean usedFilter, Integer minUnusedFpaPlateLocs)` updated with first new argument `DbControl dc`, to call new private method `JSONArray fetchKitJsonHeaders()` to obtain header names, and to perform a database query to obtain data for the kits.[[BR]]e. New private convenience method `JSONArray fetchKitJsonHeaders()` added. It returns a JSONArray with header names for library preparation kit components.[[BR]]f. Protected method `void doPost(HttpServletRequest req, HttpServletResponse resp)` updated for command "`PrepareDownloadLibPrepKitDataFile`" to convert the negation of kit attribute `inactive` value to strings "`true`" or "`false`".[[BR]]g. Protected method `void doPost(HttpServletRequest req, HttpServletResponse resp)` updated for command "`RegisterReagentLotNoFile`" to include new first argument `DbControl dc` when calling updated private method `JSONObject fetchJsonKitDataForUpdate(DbControl dc, String libPrepKitName, List<String> reservedWellsList)` and to store new or updated kit data as kit items in the database.[[BR]]h. Unused code removed. |
| 21 | 10. Java servlet class/file `LibPrepServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Constant and variable names related to attribute "Available" updated by exchanging the "Available" and "available" part of the name for "Active" and "active", respectively. Correspondingly, "unavailable" was exchanged for "inactive".[[BR]]b. Protected method `void doGet(HttpServletRequest req, HttpServletResponse resp)` updated for commands "`GetLibPrepKitData`" and "`GetLibPrepKitsAsPlates`" to include new first argument `DbControl dc` when calling updated private method `JSONObject fetchJsonKitData(DbControl dc, String libPrepKitNameFilter, Boolean activeFilter, Boolean usedFilter, Integer minUnusedFpaPlateLocs)`.[[BR]]c. Private method `JSONObject fetchJsonKitDataForUpdate(DbControl dc, String libPrepKitName, List<String> reservedWellsList)` updated with first new argument `DbControl dc` and to include new first argument `DbControl dc` when calling updated private method `JSONObject fetchJsonKitData(DbControl dc, String libPrepKitNameFilter, Boolean activeFilter, Boolean usedFilter, Integer minUnusedFpaPlateLocs)`.[[BR]]d. Private method `JSONObject fetchJsonKitData(DbControl dc, String libPrepKitNameFilter, Boolean activeFilter, Boolean usedFilter, Integer minUnusedFpaPlateLocs)` updated with first new argument `DbControl dc`, to call new private method `JSONArray fetchKitJsonHeaders()` to obtain header names, and to perform a database query to obtain data for the kits.[[BR]]e. New private convenience method `JSONArray fetchKitJsonHeaders()` added. It returns a JSONArray with header names for library preparation kit components.[[BR]]f. Protected method `void doPost(HttpServletRequest req, HttpServletResponse resp)` updated for command "`PrepareDownloadLibPrepKitDataFile`" to convert the negation of kit attribute `inactive` value to strings "`true`" or "`false`".[[BR]]g. Protected method `void doPost(HttpServletRequest req, HttpServletResponse resp)` updated for command "`RegisterReagentLotNoFile`" to include new first argument `DbControl dc` when calling updated private method `JSONObject fetchJsonKitDataForUpdate(DbControl dc, String libPrepKitName, List<String> reservedWellsList)` and to store new or updated kit data as kit items in the database.[[BR]]h. Unused code removed. |