Class LineListController


  • @Controller
    @RequestMapping("/linelist")
    public class LineListController
    extends java.lang.Object
    This controller is responsible for AJAX handling for the line list page, which displays sample metadata.
    • Method Detail

      • getProjectSamplesMetadataEntries

        @RequestMapping(value="/entries",
                        method=GET)
        @ResponseBody
        public EntriesResponse getProjectSamplesMetadataEntries​(@RequestParam
                                                                long projectId,
                                                                @RequestParam
                                                                int current,
                                                                @RequestParam
                                                                int pageSize)
        Get a List of Map containing information from MetadataEntry for a Page of Samples in a Project
        Parameters:
        projectId - Long identifier for a Project
        current - the number of the Page
        pageSize - the size of the Page
        Returns:
        List of UISampleMetadatas of all Sample metadata in a Project
      • saveMetadataEntry

        @RequestMapping(value="/entries",
                        method=POST)
        @ResponseBody
        public java.lang.String saveMetadataEntry​(@RequestParam
                                                  long sampleId,
                                                  @RequestParam
                                                  java.lang.String label,
                                                  @RequestParam
                                                  java.lang.String value,
                                                  javax.servlet.http.HttpServletResponse response)
        Save an updated sample metadata entry
        Parameters:
        sampleId - Long identifier for a sample
        label - String the name of the MetadataTemplateField
        value - String the value to store in the MetadataEntry
        response - HttpServletResponse
        Returns:
        The status of the request.
      • getLineListTemplates

        @RequestMapping("/templates")
        @ResponseBody
        public java.util.List<UIMetadataTemplate> getLineListTemplates​(@RequestParam
                                                                       long projectId,
                                                                       java.util.Locale locale)
        Get a List of all MetadataTemplate associated with the project.
        Parameters:
        projectId - Long Identifier for the project to get id's for.
        locale - Locale Locale of the currently logged in user.
        Returns:
        List
      • saveLineListTemplate

        @RequestMapping(value="/templates",
                        method=POST)
        public UIMetadataTemplate saveLineListTemplate​(@RequestBody
                                                       UIMetadataTemplate template,
                                                       @RequestParam
                                                       java.lang.Long projectId,
                                                       java.util.Locale locale,
                                                       javax.servlet.http.HttpServletResponse response)
        Save or update a MetadataTemplate
        Parameters:
        template - UIMetadataTemplate
        projectId - Long project identifier
        locale - Locale
        response - HttpServletResponse
        Returns:
        saved or updated UIMetadataTemplate