Changes between Version 8 and Version 9 of Ticket #801, comment 89


Ignore:
Timestamp:
Nov 20, 2015, 8:34:15 AM (7 years ago)
Author:
olle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #801, comment 89

    v8 v9  
    1919 8. Data access object class/file `Subtype.java` in `src/net/sf/basedb/meludi/dao/` updated by definition of a new library preparation kit subtype, `Subtype.LIBRARY_PREPARATION_KIT`, corresponding to the same subtype in BASE.
    2020 9. Java servlet class/file `InstallServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `void doGet(HttpServletRequest req, HttpServletResponse resp)` updated to include the new kit annotation types.[[BR]]b. Public method `<T extends BasicItem<?> & Nameable> T createMeludiRole(SessionControl sc, MeludiRole<T> role)` updated by removing `BasicItem` generic argument to `<T extends BasicItem & Nameable> T createMeludiRole(SessionControl sc, MeludiRole<T> role)`.
    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.