Class DashboardController
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.module.web.controllers.dashboard.DashboardController
-
@Controller public class DashboardController extends java.lang.Object
The 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.String
index()
Handles GET requests to the dashboard homejava.lang.String
queueGetFragment(boolean isAjax, org.springframework.ui.Model model)
java.lang.String
queuePostFragment(boolean isAjax, long id, org.springframework.ui.Model model)
java.lang.String
statisticsGetFragment(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
-
-