setResponsiblePerson( Person.getDummyPerson() );
}
private TreeNodeCollection createTreeData(List<AbstractEntity> items) {
ProductDevelopmentUseCase uc = (ProductDevelopmentUseCase)getUseCase();
TreeNodeCollection data = new TreeNodeCollection();
Collection<AbstractEntity> sortedColl = AbstractEntityUtil.sort(items);
for (AbstractEntity item : sortedColl) {
com.melitronic.domain.entity.Sprint sprint =
(com.melitronic.domain.entity.Sprint)item;
Sprint spr = uc.getSprint(sprint);
data.add(spr);
Collection<AbstractEntity> sortedColl2 =
AbstractEntityUtil.sort(AbstractEntityUtil.convert(sprint.getItemImplementation()));
for (AbstractEntity i2 : sortedColl2) {
com.melitronic.domain.entity.ItemImplementation domainII =
(com.melitronic.domain.entity.ItemImplementation)i2;
Item it = null;
com.melitronic.domain.entity.Item domainItem = domainII.getItem();
if (domainItem instanceof com.melitronic.domain.entity.Issue) {
it = uc.getIssue((com.melitronic.domain.entity.Issue)domainItem);
}
else {
it = uc.getItem(domainItem);
}
it.setIid(domainII.getId());
spr.addChild(it);
Collection<AbstractEntity> sortedColl3 =
AbstractEntityUtil.sort(AbstractEntityUtil.convert(domainII.getTasks()));
for (AbstractEntity i3 : sortedColl3) {
com.melitronic.domain.entity.Task domainTask =
(com.melitronic.domain.entity.Task)i3;
Task task = uc.getTask(domainTask);
it.addChild(task);
}
}
}