@@ -51,6 +51,7 @@ public final String showRootProject(
5151 @ RequestParam (required = false ) boolean isDeleted ,
5252 @ ModelAttribute ("userSession" ) UserSessionBean userSession ,
5353 Locale locale , Model model ) {
54+ log .info ("/project/root" );
5455 Context context = super .getContext (userSession );
5556 userSession .setLastProjectId (0L );
5657 model .addAttribute ("userSession" ,userSession );
@@ -74,6 +75,7 @@ public final String showProject(
7475 @ RequestParam (required = false ) boolean isDeleted ,
7576 @ ModelAttribute ("userSession" ) UserSessionBean userSession ,
7677 Locale locale , Model model ) {
78+ log .info ("/project/" +projectId );
7779 Context context = super .getContext (userSession );
7880 userSession .setLastProjectId (projectId );
7981 model .addAttribute ("userSession" ,userSession );
@@ -105,6 +107,7 @@ public final String addNewTopLevelProjectForm(
105107 @ ModelAttribute ("userSession" ) UserSessionBean userSession ,
106108 Locale locale , Model model
107109 ){
110+ log .info ("/project/add/new/project (GET)" );
108111 return addNewProject (rootProjectId , userSession , locale , model );
109112 }
110113
@@ -116,6 +119,7 @@ public final String addNewTopLevelProjectSave(
116119 BindingResult result ,
117120 Locale locale , Model model
118121 ){
122+ log .info ("/project/add/new/project (POST)" );
119123 return addNewProjectPersist ( rootProjectId , userSession , project , result , locale , model );
120124 }
121125
@@ -245,6 +249,7 @@ private final String addNewProject(
245249 Locale locale ,
246250 Model model
247251 ) {
252+ log .info ("private addNewProject projectId=" +projectId );
248253 Context context = super .getContext (userSession );
249254 UserAccount userAccount = context .getUserAccount ();
250255 userSession .setLastProjectId (projectId );
@@ -273,12 +278,13 @@ private final String addNewProject(
273278 }
274279
275280 private String addNewProjectPersist (
276- @ PathVariable long projectId ,
277- @ ModelAttribute ( "userSession" ) UserSessionBean userSession ,
278- @ Valid Project project ,
281+ long projectId ,
282+ UserSessionBean userSession ,
283+ Project project ,
279284 BindingResult result ,
280285 Locale locale , Model model
281286 ){
287+ log .info ("private addNewProjectPersist projectId=" +projectId +" " +project .toString ());
282288 Context context = super .getContext (userSession );
283289 UserAccount userAccount = context .getUserAccount ();
284290 userSession .setLastProjectId (projectId );
@@ -324,6 +330,7 @@ public final String addNewProjectGet(
324330 @ ModelAttribute ("userSession" ) UserSessionBean userSession ,
325331 Locale locale , Model model
326332 ) {
333+ log .info ("private addNewProjectGet (GET) projectId=" +projectId );
327334 return addNewProject (projectId , userSession , locale , model );
328335 }
329336
@@ -335,6 +342,7 @@ public final String addNewProjectPost(
335342 @ Valid Project project ,
336343 BindingResult result ,
337344 Locale locale , Model model ) {
345+ log .info ("private addNewProjectPost (POST) projectId=" +projectId +" " +project .toString ());
338346 return addNewProjectPersist ( projectId , userSession , project , result , locale , model );
339347 }
340348
0 commit comments