Пример #1
0
  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();
  }
Пример #2
0
 public boolean isActiveForAcademicInterval(AcademicInterval academicInterval) {
   return isActiveForCalendarEntry(academicInterval.getAcademicCalendarEntry());
 }