Class DashboardController


  • @Controller
    public class DashboardController
    extends java.lang.Object
    The controller that deals with the dashboard homepage
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String index()
      Handles GET requests to the dashboard home
      java.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DashboardController

        public DashboardController()
    • 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