@PreAuthorize("hasRole('TASK_LIST')")
@RequestMapping(method = RequestMethod.GET, value = "/{kind}/list/{page}/{size}")
public List<TaskTO> list(@PathVariable("kind") final String kind, @PathVariable("page") final int page,
@PathVariable("size") final int size) {
TaskUtil taskUtil = getTaskUtil(kind);
List<Task> tasks = taskDAO.findAll(page, size, taskUtil.taskClass());
List<TaskTO> taskTOs = new ArrayList<TaskTO>(tasks.size());
for (Task task : tasks) {
taskTOs.add(binder.getTaskTO(task, taskUtil));
}