Class DashboardController
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.module.web.controllers.dashboard.DashboardController
-
@Controller public class DashboardController extends java.lang.ObjectThe controller that deals with the dashboard homepage
-
-
Constructor Summary
Constructors Constructor Description DashboardController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringindex()Handles GET requests to the dashboard homejava.lang.StringqueueGetFragment(boolean isAjax, org.springframework.ui.Model model)java.lang.StringqueuePostFragment(boolean isAjax, long id, org.springframework.ui.Model model)java.lang.StringstatisticsGetFragment(boolean isAjax, org.springframework.ui.Model model)
-
-
-
Method Detail
-
index
@GetMapping("/dashboard/index") public java.lang.String index()Handles GET requests to the dashboard home- Returns:
- the path to the dashboard page
-
queueGetFragment
@GetMapping("/dashboard/index/queue") public java.lang.String queueGetFragment(@ModelAttribute("isAjax") boolean isAjax, org.springframework.ui.Model model) throws NotAjaxRequest- Throws:
NotAjaxRequest
-
queuePostFragment
@PostMapping("/dashboard/index/queue/{id}") public java.lang.String queuePostFragment(@ModelAttribute("isAjax") boolean isAjax, @PathVariable("id") long id, org.springframework.ui.Model model) throws NotAjaxRequest- Throws:
NotAjaxRequest
-
statisticsGetFragment
@GetMapping("/dashboard/index/statistics") public java.lang.String statisticsGetFragment(@ModelAttribute("isAjax") boolean isAjax, org.springframework.ui.Model model) throws NotAjaxRequest- Throws:
NotAjaxRequest
-
-