9
9
import org .springframework .web .bind .annotation .ModelAttribute ;
10
10
import org .springframework .web .bind .annotation .RequestMapping ;
11
11
import org .springframework .web .bind .annotation .RequestMethod ;
12
- import org .woehlke .java .simpleworklist .domain .AbstractController ;
13
12
import org .woehlke .java .simpleworklist .domain .db .data .Context ;
14
13
import org .woehlke .java .simpleworklist .domain .meso .session .UserSessionBean ;
15
14
16
15
import lombok .extern .slf4j .Slf4j ;
17
- import org .woehlke .java .simpleworklist .domain .db .data .task .TaskState ;
18
16
import org .woehlke .java .simpleworklist .domain .meso .taskstate .TaskStateTabControllerService ;
19
17
20
18
import javax .validation .constraints .NotNull ;
@@ -40,8 +38,8 @@ public final String inbox(
40
38
Model model
41
39
) {
42
40
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
45
43
);
46
44
}
47
45
@@ -53,8 +51,8 @@ public final String today(
53
51
Model model
54
52
) {
55
53
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
58
56
);
59
57
}
60
58
@@ -66,8 +64,8 @@ public final String next(
66
64
Model model
67
65
) {
68
66
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
71
69
);
72
70
}
73
71
@@ -79,8 +77,8 @@ public final String waiting(
79
77
Model model
80
78
) {
81
79
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
84
82
);
85
83
}
86
84
@@ -92,8 +90,8 @@ public final String scheduled(
92
90
Model model
93
91
) {
94
92
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
97
95
);
98
96
}
99
97
@@ -105,8 +103,8 @@ public final String someday(
105
103
Model model
106
104
) {
107
105
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
110
108
);
111
109
}
112
110
@@ -118,8 +116,8 @@ public final String completed(
118
116
Model model
119
117
) {
120
118
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
123
121
);
124
122
}
125
123
@@ -131,8 +129,8 @@ public final String trash(
131
129
Model model
132
130
) {
133
131
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
136
134
);
137
135
}
138
136
@@ -155,8 +153,8 @@ public final String focus(
155
153
Model model
156
154
) {
157
155
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
160
158
);
161
159
}
162
160
0 commit comments