class ReviewManageApplicationsController {

    @GetMapping("/manage-applications")
    public String manageApplications(Model model,
                                     @PathVariable("competitionId") long competitionId,
                                     @RequestParam(value = "page", defaultValue = "0") int page,
                                     @RequestParam(value = "filterSearch", defaultValue = "") String filter,
                                     @RequestParam(value = "sort", defaultValue = "") String sortBy) {
        CompetitionResource competitionResource = competitionRestService
                .getCompetitionById(competitionId)
                .getSuccess();
        ApplicationSummaryPageResource applications = getSummaries(competitionResource.getId(), page, filter, sortBy);
        List<ApplicationSummaryResource> assignedApplications = getAssignedSummaries(competitionId);
        model.addAttribute("model", manageReviewApplicationsModelPopulator.populateModel(competitionResource, applications, assignedApplications, filter, sortBy));

        return "competition/manage-applications-panel";
    }

}