Changes between Version 1 and Version 2 of Ticket #759, comment 48


Ignore:
Timestamp:
Apr 10, 2015, 7:28:16 AM (8 years ago)
Author:
olle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #759, comment 48

    v1 v2  
    11Design update regarding storage of the extract source item names connected to a start plate:
    22
    3  1. Data access object class/file `Annotationtype.java` in `src/net/sf/basedb/meludi/dao/` updated:[[BR]]a. New annotation type `SOURCE_ITEM_NAMES_LIST_STRING` of type  `Type.TEXT` added for bioplates.[[BR]]b. New public methods `List<?> getAnnotationValues(DbControl dc, Annotatable item, Boolean fromListString)` and `List<?> getAnnotationValues(DbControl dc, Annotatable item, Boolean fromListString, Boolean trim)` added. They return the same list as existing method `List<?> getAnnotationValues(DbControl dc, Annotatable item)` if Boolean flag `fromListString` is `null` or `false`, otherwise the data is expected to be stored as a comma-separated list string, which is converted to a list of string values, with optional trimming of leading and trailing white space.[[BR]]c. Public method `void setAnnotationValues(DbControl dc, Annotatable item, List<?> values)` updated if the annotation has multiplicity equal to 1, to stored the list as a comma-separated list string.
     3 1. Data access object class/file `Annotationtype.java` in `src/net/sf/basedb/meludi/dao/` updated:[[BR]]a. New annotation type `SOURCE_ITEM_NAMES_LIST_STRING` of type  `Type.TEXT` added for bioplates.[[BR]]b. New public methods `List<?> getAnnotationValues(DbControl dc, Annotatable item, Boolean fromListString)` and `List<?> getAnnotationValues(DbControl dc, Annotatable item, Boolean fromListString, Boolean trim)` added. They return the same list as existing method `List<?> getAnnotationValues(DbControl dc, Annotatable item)` if Boolean flag `fromListString` is `null` or `false`, otherwise the data is expected to be stored as a comma-separated list string, which is converted to a list of string values, with optional trimming of leading and trailing white space.[[BR]]c. Public method `void setAnnotationValues(DbControl dc, Annotatable item, List<?> values)` updated if the annotation has multiplicity equal to 1, to store the list as a comma-separated list string.
    44 2. Data access object class/file `MeludiItem.java` in `src/net/sf/basedb/meludi/dao/` updated:[[BR]]a. New public methods `void loadAnnotations(DbControl dc, String jsonKey, Annotationtype annotationType, ValueConverter converter, Boolean fromListString)` and `void loadAnnotations(DbControl dc, String jsonKey, Annotationtype annotationType, ValueConverter converter, Boolean fromListString, Boolean trim)` added. They load annotations for the given annotation type and store the values in the given JSON key. The functionality is identical to existing method `void loadAnnotations(DbControl dc, String jsonKey, Annotationtype annotationType, ValueConverter converter)` if Boolean flag `fromListString` is `null` or `false`, otherwise the data is expected to be stored as a comma-separated list string, which is converted to a list of string values, with optional trimming of leading and trailing white space.
    55 3. Java servlet class/file `InstallServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated in protected method `void doGet(HttpServletRequest req, HttpServletResponse resp)` to include annotations of new text annotation type `Annotationtype.SOURCE_ITEM_NAMES_LIST_STRING` for bioplate items.