public List<Long> getTaskDescriptorsId() { List<Long> ids = new ArrayList<>(); for (TaskDescriptor td : getTasks()) { ids.add(td.getId()); } return ids; }
/* @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<>()); }