Class MainPageController

java.lang.Object
edu.kit.datamanager.takita.mainpage.MainPageController

@Controller public class MainPageController extends Object
Controls the interaction with the user interface concerning the main page and provides the api endpoints for those functionalities. Delegates the tasks to the corresponding business logic.
  • Constructor Details

    • MainPageController

      @Autowired public MainPageController(IMainPageService mainPageService)
  • Method Details

    • init

      @GetMapping("/") public String init(org.springframework.ui.Model model)
      Delegates the task to initialize the possible filters and to show the dashboard related content.
      Parameters:
      model - the holder for model attributes. Used to pass attributes back to the view
      Returns:
      the name of the html file to display