class CompetitionManagementDashboardController {

    @SecuredBySpring(value = "READ", description = "The competition admin, project finance," +
            " support, innovation lead and stakeholder roles are allowed to view the list of live competitions")
    @PreAuthorize("hasAnyAuthority('comp_admin', 'project_finance', 'support', 'innovation_lead', 'stakeholder')")
    @GetMapping("/dashboard/live")
    @NavigationRoot
    public String live(Model model, UserResource user) {
        Map<CompetitionStatus, List<CompetitionSearchResultItem>> liveCompetitions = competitionDashboardSearchService.getLiveCompetitions();
        model.addAttribute(MODEL_ATTR, new LiveDashboardViewModel(
                liveCompetitions,
                competitionDashboardSearchService.getCompetitionCounts(),
                new DashboardTabsViewModel(user)));
        return TEMPLATE_PATH + "live";
    }

    public  CompetitionManagementDashboardController(CompetitionDashboardSearchService competitionDashboardSearchService,
                                                    CompetitionSetupRestService competitionSetupRestService,
                                                    BankDetailsRestService bankDetailsRestService,
                                                    CompetitionSetupStakeholderRestService competitionSetupStakeholderRestService);

}