예제 #1
0
파일: Iteration.java 프로젝트: Heigvd/Wegas
 public List<Long> getTaskDescriptorsId() {
   List<Long> ids = new ArrayList<>();
   for (TaskDescriptor td : getTasks()) {
     ids.add(td.getId());
   }
   return ids;
 }
예제 #2
0
파일: Iteration.java 프로젝트: Heigvd/Wegas
  /*
  @Override
  public Map<String, List<AbstractEntity>> getEntities() {
      return this.getBurndownInstance().getEntities();
  }*/
  @Override
  public void updateCacheOnDelete(Beanjection beans) {
    VariableDescriptorFacade vdf = beans.getVariableDescriptorFacade();
    BurndownInstance theBdI = this.getBurndownInstance();

    if (theBdI != null) {
      theBdI = (BurndownInstance) beans.getVariableInstanceFacade().find(theBdI.getId());
      if (theBdI != null) {
        theBdI.getIterations().remove(this);
      }
    }
    for (TaskDescriptor task : this.getTasks()) {
      task = (TaskDescriptor) vdf.find(task.getId());
      if (task != null) {
        task.getIterations().remove(this);
      }
    }
    this.setTasks(new ArrayList<>());
  }