private void reattachAndLoadCalendar(TaskElement taskElement) { BaseCalendar calendar = taskElement.getCalendar(); if (calendar == null) { return; } baseCalendarDAO.reattach(calendar); forceLoadCalendar(calendar); calendar.getCapacityOn(PartialDay.wholeDay(taskElement.getIntraDayStartDate().getDate())); }
@Override @Transactional(readOnly = true) public void reattach(TaskElement taskElement) { if (taskElement.getTaskSource() != null) { taskSourceDAO.reattach(taskElement.getTaskSource()); } taskElementDAO.reattach(taskElement); if (taskElement instanceof Task) { forceLoadHoursGroup((Task) taskElement); if (taskElement.isSubcontracted()) { forceLoadExternalCompany(((Task) taskElement).getSubcontractedTaskData()); } } reattachAndLoadCalendar(taskElement); }
public void visit(TaskGroup taskGroup) { for (TaskElement each : taskGroup.getChildren()) { each.acceptVisitor(this); } }