public void itemPositionChanged(com.melitronic.rmapp.model.Task task,
AbstractListItem[] list, AbstractListItem parent,
com.melitronic.rmapp.model.Sprint sprint) {
Sprint spr = getSprint(sprint);
Collection<Task> entityColl = null;
Task domainTask = null;
ItemImplementation entity1 = null;
ItemImplementation entity2 = null;
for (ItemImplementation ii : spr.getItemImplementation()) {
Item it = ii.getItem();
for (Task ta : ii.getTasks()) {
if (ta.getId() != null && task.getId() != null &&
ta.getId().longValue() == task.getId().longValue()) {
entityColl = ii.getTasks();
domainTask = ta;
entity1 = ii;
break;
}
}
if (entityColl != null) {
break;
}
}
Collection<Task> entityColl2 = null;
for (ItemImplementation ii : spr.getItemImplementation()) {
Item it = ii.getItem();
if (it.getId() != null && ((com.melitronic.rmapp.model.Item)parent).getId() != null &&
it.getId().longValue() == ((com.melitronic.rmapp.model.Item)parent).getId().longValue()) {
entityColl2 = ii.getTasks();
entity2 = ii;