class DashboardController extends AbstractCrudController<Dashboard> {

    @RequestMapping( value = "/q/{query}", method = RequestMethod.GET )
    public @ResponseBody DashboardSearchResult search( @PathVariable String query,
        @RequestParam( required = false ) Set<DashboardItemType> max,
        @RequestParam( required = false ) Integer count,
        @RequestParam( required = false ) Integer maxCount )
    {
        return dashboardService.search( query, max, count, maxCount );
    }

}