@Atomic
  public static List run(String degreeCurricularPlanID) {

    // Start date of the DegreeCurricularPlan
    final Date startDate =
        FenixFramework.<DegreeCurricularPlan>getDomainObject(degreeCurricularPlanID)
            .getInitialDate();

    // End date of the current year
    final Date endDate = ExecutionYear.readCurrentExecutionYear().getEndDate();

    final List<InfoExecutionPeriod> infoExecutionPeriods = new ArrayList<InfoExecutionPeriod>();
    for (final ExecutionSemester executionSemester :
        ExecutionSemester.readExecutionPeriodsInTimePeriod(startDate, endDate)) {
      infoExecutionPeriods.add(InfoExecutionPeriod.newInfoFromDomain(executionSemester));
    }
    return infoExecutionPeriods;
  }
コード例 #2
0
 @Atomic
 public static InfoExecutionPeriod run() {
   return InfoExecutionPeriod.newInfoFromDomain(ExecutionSemester.readActualExecutionSemester());
 }