Example #1
0
 public InvokeResult removeTasks(Long[] ids) {
   Set<Task> tasks = new HashSet<Task>();
   for (Long id : ids) {
     tasks.add(application.getTask(id));
   }
   application.removeTasks(tasks);
   return InvokeResult.success();
 }
Example #2
0
 public List<TaskDTO> findAllTask() {
   return TaskAssembler.toDTOs(application.findAllTask());
 }
Example #3
0
 public InvokeResult updateTask(TaskDTO taskDTO) {
   application.updateTask(TaskAssembler.toEntity(taskDTO));
   return InvokeResult.success();
 }
Example #4
0
 public InvokeResult removeTask(Long id) {
   application.removeTask(application.getTask(id));
   return InvokeResult.success();
 }
Example #5
0
 public InvokeResult getTask(Long id) {
   return InvokeResult.success(TaskAssembler.toDTO(application.getTask(id)));
 }