Class SearchController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.search.SearchController
-
@Controller public class SearchController extends java.lang.Object
Controller to manage global searching
-
-
Constructor Summary
Constructors Constructor Description SearchController(ProjectService projectService, SampleService sampleService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
search(java.lang.String query, boolean global, org.springframework.ui.Model model)
Get the search view with a given queryDataTablesResponse
searchProjects(java.lang.String query, boolean global, DataTablesParams params)
Search all projects a user is a member of based on a query stringDataTablesResponse
searchSamples(java.lang.String query, boolean global, DataTablesParams params)
Search allSample
s in projects for a user based on a query string
-
-
-
Constructor Detail
-
SearchController
@Autowired public SearchController(ProjectService projectService, SampleService sampleService)
-
-
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 stringglobal
- Whether to perform an admin global searchparams
- 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 allSample
s in projects for a user based on a query string- Parameters:
query
- the query stringglobal
- Whether to perform an admin global searchparams
- 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 stringglobal
- Whether to perform an admin global searchmodel
- model for the view- Returns:
- name of the search view
-
-