Class SearchController


  • @Controller
    public class SearchController
    extends java.lang.Object
    Controller to manage global searching
    • Method Detail

      • searchProjects

        @RequestMapping("/search/ajax/projects")
        @ResponseBody
        public DataTablesResponse searchProjects​(@RequestParam
                                                 java.lang.String query,
                                                 @RequestParam(required=false,defaultValue="false")
                                                 boolean global,
                                                 @DataTablesRequest
                                                 DataTablesParams params)
        Search all projects a user is a member of based on a query string
        Parameters:
        query - the query string
        global - Whether to perform an admin global search
        params - parameters for a datatables response
        Returns:
        a DataTablesResponse to display the search results
      • searchSamples

        @RequestMapping("/search/ajax/samples")
        @ResponseBody
        public DataTablesResponse searchSamples​(@RequestParam
                                                java.lang.String query,
                                                @RequestParam(required=false,defaultValue="false")
                                                boolean global,
                                                @DataTablesRequest
                                                DataTablesParams params)
        Search all Samples in projects for a user based on a query string
        Parameters:
        query - the query string
        global - Whether to perform an admin global search
        params - parameters for a datatables response
        Returns:
        a DataTablesResponse to display search results
      • search

        @RequestMapping("/search")
        public java.lang.String search​(@RequestParam
                                       java.lang.String query,
                                       @RequestParam(required=false,defaultValue="false")
                                       boolean global,
                                       org.springframework.ui.Model model)
        Get the search view with a given query
        Parameters:
        query - the query string
        global - Whether to perform an admin global search
        model - model for the view
        Returns:
        name of the search view