public static List<ExecutionDegree> filterByAcademicInterval(AcademicInterval academicInterval) { AcademicCalendarEntry academicCalendarEntry = academicInterval.getAcademicCalendarEntry(); while (!(academicCalendarEntry instanceof AcademicCalendarRootEntry)) { if (academicCalendarEntry instanceof AcademicYearCE) { ExecutionYear year = ExecutionYear.getExecutionYear((AcademicYearCE) academicCalendarEntry); List<ExecutionDegree> result = new ArrayList<ExecutionDegree>(); result.addAll(year.getExecutionDegreesSet()); return result; } else { academicCalendarEntry = academicCalendarEntry.getParentEntry(); } } return Collections.emptyList(); }
public boolean isActiveForAcademicInterval(AcademicInterval academicInterval) { return isActiveForCalendarEntry(academicInterval.getAcademicCalendarEntry()); }