Skip to content

Commit c88f2b3

Browse files
committed
work
1 parent 6643d0c commit c88f2b3

File tree

6 files changed

+649
-553
lines changed

6 files changed

+649
-553
lines changed

src/main/java/org/woehlke/java/simpleworklist/domain/ProjectIdTaskController.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,22 @@ public final String editTaskPost(
214214
}
215215
}
216216

217+
@RequestMapping(path = "/transform", method = RequestMethod.GET)
218+
public final String transformTaskIntoProjectGet(
219+
@PathVariable("projectId") Project thisProject,
220+
@PathVariable("taskId") Task task,
221+
@ModelAttribute("userSession") UserSessionBean userSession,
222+
Model model
223+
) {
224+
log.info("transformTaskIntoProjectGet");
225+
userSession.setLastProjectId(thisProject.getId());
226+
userSession.setLastTaskState(task.getTaskState());
227+
userSession.setLastTaskId(task.getId());
228+
model.addAttribute("taskstateType", PROJECTS.getSlug());
229+
model.addAttribute("dataPage", true);
230+
return taskLifecycleService.transformTaskIntoProjectGet(task, userSession, model);
231+
}
232+
217233
@RequestMapping(path = "/task/{taskId}/complete", method = RequestMethod.GET)
218234
public final String setDoneTaskGet(
219235
@PathVariable("projectId") Project thisProject,

src/main/java/org/woehlke/java/simpleworklist/domain/ProjectIdTaskMoveController.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,4 @@ public final String moveTaskToTrash(
187187
model.addAttribute("dataPage", true);
188188
return thisProject.getUrl();
189189
}
190-
191-
@RequestMapping(path = "/transform", method = RequestMethod.GET)
192-
public final String transformTaskIntoProjectGet(
193-
@PathVariable("projectId") Project thisProject,
194-
@PathVariable("taskId") Task task,
195-
@ModelAttribute("userSession") UserSessionBean userSession,
196-
Model model
197-
) {
198-
log.info("transformTaskIntoProjectGet");
199-
userSession.setLastProjectId(thisProject.getId());
200-
userSession.setLastTaskState(task.getTaskState());
201-
userSession.setLastTaskId(task.getId());
202-
model.addAttribute("taskstateType", PROJECTS.getSlug());
203-
model.addAttribute("dataPage", true);
204-
return taskLifecycleService.transformTaskIntoProjectGet(task, userSession, model);
205-
}
206190
}

0 commit comments

Comments
 (0)