Package org.fenixedu.academic.ui.struts.action.student.enrollment

Examples of org.fenixedu.academic.ui.struts.action.student.enrollment.SpecialSeasonStudentEnrollmentBean


        final ExecutionYear currentYear = ExecutionYear.readCurrentExecutionYear();
        final ExecutionYear previousYear = currentYear.getPreviousExecutionYear();
        final List<ExecutionSemester> executionSemesters = new ArrayList<ExecutionSemester>();

        SpecialSeasonStudentEnrollmentBean bean = (SpecialSeasonStudentEnrollmentBean) source;
        if (bean.getScp().getDegreeCurricularPlan().hasOpenSpecialSeasonEnrolmentPeriod(currentYear.getLastExecutionPeriod())) {
            executionSemesters.add(currentYear.getLastExecutionPeriod());
        }
        if (bean.getScp().getDegreeCurricularPlan().hasOpenSpecialSeasonEnrolmentPeriod(currentYear.getFirstExecutionPeriod())) {
            executionSemesters.add(currentYear.getFirstExecutionPeriod());
        }
        if (bean.getScp().getDegreeCurricularPlan().hasOpenSpecialSeasonEnrolmentPeriod(previousYear.getLastExecutionPeriod())) {
            executionSemesters.add(previousYear.getLastExecutionPeriod());
        }
        if (bean.getScp().getDegreeCurricularPlan().hasOpenSpecialSeasonEnrolmentPeriod(previousYear.getFirstExecutionPeriod())) {
            executionSemesters.add(previousYear.getFirstExecutionPeriod());
        }

        Collections.sort(executionSemesters, ExecutionSemester.COMPARATOR_BY_SEMESTER_AND_YEAR);
        Collections.reverse(executionSemesters);
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.ui.struts.action.student.enrollment.SpecialSeasonStudentEnrollmentBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.