Package ch.bsgroup.scrumit.pojo

Examples of ch.bsgroup.scrumit.pojo.SerializableTask


  public @ResponseBody List<SerializableTask> getAllTasksOfUserstory(@PathVariable Integer userstoryid) {
    Set<Task> tasks = this.taskService.getAllTasksByUserstoryId(userstoryid);
    List<SerializableTask> serializedTasks = new ArrayList<SerializableTask>();
    for (Iterator<Task> iterator = tasks.iterator(); iterator.hasNext();) {
      Task t = iterator.next();
      SerializableTask st = new SerializableTask(t.getId(), t.getDescription(), t.getxCoord(),
          t.getyCoord(), t.getStatus(), t.getDuration(), t.getCreationDate());
      serializedTasks.add(st);
    }
    return serializedTasks;
  }
View Full Code Here


    }
    t.setUserStory(u);
    t.setCreationDate(new Date());
    Task task = this.taskService.addTask(t);
    this.burnDownChartService.updateBurnDown(task.getDuration(), 0, sprintid);
    return new SerializableTask(task.getId(), task.getDescription(), task.getxCoord(), task.getyCoord(),
        task.getStatus(), task.getDuration(), task.getCreationDate());
  }
View Full Code Here

TOP

Related Classes of ch.bsgroup.scrumit.pojo.SerializableTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.