February 2019
Intermediate to advanced
442 pages
11h 46m
English
When a user does log in, the system will land on a page called the control page. From this page, users can view the task and perform various operations based on the role they have. For example: a normal user can see the task list assigned to it and also able to add a comment for a specific task. The admin user can add a new task, edit, and delete an existing one. This controller method simply redirects the user to the landing (or control) page. The code looks as follows:
@GetMapping("/controlPage")fun showControlPage(model:Model):String { logger.info("Showing control page ") setProcessingData(model, TaskMgmntConstant.TITLE_LANDING_CONTROL_PAGE) return "control-page"}
In the Spring Security section, we configured ...