99import org .springframework .web .bind .annotation .ModelAttribute ;
1010import org .springframework .web .bind .annotation .RequestMapping ;
1111import org .springframework .web .bind .annotation .RequestMethod ;
12- import org .woehlke .java .simpleworklist .domain .AbstractController ;
1312import org .woehlke .java .simpleworklist .domain .db .data .Context ;
1413import org .woehlke .java .simpleworklist .domain .meso .session .UserSessionBean ;
1514
1615import lombok .extern .slf4j .Slf4j ;
17- import org .woehlke .java .simpleworklist .domain .db .data .task .TaskState ;
1816import org .woehlke .java .simpleworklist .domain .meso .taskstate .TaskStateTabControllerService ;
1917
2018import javax .validation .constraints .NotNull ;
@@ -40,8 +38,8 @@ public final String inbox(
4038 Model model
4139 ) {
4240 Context context = super .getContext (userSession );
43- return taskStateTabControllerService .getTaskStatePage (
44- TaskState . INBOX , context , pageable , userSession , locale , model
41+ return taskStateTabControllerService .getTaskStatePageInbox (
42+ context , pageable , userSession , locale , model
4543 );
4644 }
4745
@@ -53,8 +51,8 @@ public final String today(
5351 Model model
5452 ) {
5553 Context context = super .getContext (userSession );
56- return taskStateTabControllerService .getTaskStatePage (
57- TaskState . TODAY , context , pageable , userSession , locale , model
54+ return taskStateTabControllerService .getTaskStatePageToday (
55+ context , pageable , userSession , locale , model
5856 );
5957 }
6058
@@ -66,8 +64,8 @@ public final String next(
6664 Model model
6765 ) {
6866 Context context = super .getContext (userSession );
69- return taskStateTabControllerService .getTaskStatePage (
70- TaskState . NEXT , context , pageable , userSession , locale , model
67+ return taskStateTabControllerService .getTaskStatePageNext (
68+ context , pageable , userSession , locale , model
7169 );
7270 }
7371
@@ -79,8 +77,8 @@ public final String waiting(
7977 Model model
8078 ) {
8179 Context context = super .getContext (userSession );
82- return taskStateTabControllerService .getTaskStatePage (
83- TaskState . WAITING , context , pageable , userSession , locale , model
80+ return taskStateTabControllerService .getTaskStatePageWaiting (
81+ context , pageable , userSession , locale , model
8482 );
8583 }
8684
@@ -92,8 +90,8 @@ public final String scheduled(
9290 Model model
9391 ) {
9492 Context context = super .getContext (userSession );
95- return taskStateTabControllerService .getTaskStatePage (
96- TaskState . SCHEDULED , context , pageable , userSession , locale , model
93+ return taskStateTabControllerService .getTaskStatePageScheduled (
94+ context , pageable , userSession , locale , model
9795 );
9896 }
9997
@@ -105,8 +103,8 @@ public final String someday(
105103 Model model
106104 ) {
107105 Context context = super .getContext (userSession );
108- return taskStateTabControllerService .getTaskStatePage (
109- TaskState . SOMEDAY , context , pageable , userSession , locale , model
106+ return taskStateTabControllerService .getTaskStatePageSomeday (
107+ context , pageable , userSession , locale , model
110108 );
111109 }
112110
@@ -118,8 +116,8 @@ public final String completed(
118116 Model model
119117 ) {
120118 Context context = super .getContext (userSession );
121- return taskStateTabControllerService .getTaskStatePage (
122- TaskState . COMPLETED , context , pageable , userSession , locale , model
119+ return taskStateTabControllerService .getTaskStatePageCompleted (
120+ context , pageable , userSession , locale , model
123121 );
124122 }
125123
@@ -131,8 +129,8 @@ public final String trash(
131129 Model model
132130 ) {
133131 Context context = super .getContext (userSession );
134- return taskStateTabControllerService .getTaskStatePage (
135- TaskState . TRASH , context , pageable , userSession , locale , model
132+ return taskStateTabControllerService .getTaskStatePageTrash (
133+ context , pageable , userSession , locale , model
136134 );
137135 }
138136
@@ -155,8 +153,8 @@ public final String focus(
155153 Model model
156154 ) {
157155 Context context = super .getContext (userSession );
158- return taskStateTabControllerService .getTaskStatePage (
159- TaskState . FOCUS , context , pageable , userSession , locale , model
156+ return taskStateTabControllerService .getTaskStatePageFocus (
157+ true , context , pageable , userSession , locale , model
160158 );
161159 }
162160
0 commit comments