Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionYear


        request.setAttribute("executionSemester", executionSemester);

        AcademicCalendarEntry academicCalendarEntry = contextSelectionBean.getAcademicInterval().getAcademicCalendarEntry();
        while (!(academicCalendarEntry instanceof AcademicCalendarRootEntry)) {
            if (academicCalendarEntry instanceof AcademicYearCE) {
                ExecutionYear year = ExecutionYear.getExecutionYear((AcademicYearCE) academicCalendarEntry);
                request.setAttribute("executionYear", year);
                break;
            } else {
                academicCalendarEntry = academicCalendarEntry.getParentEntry();
            }
View Full Code Here


        }
    }

    @Override
    public void runTask() {
        ExecutionYear executionYear = ExecutionYear.readCurrentExecutionYear();
        for (final Student student : Bennu.getInstance().getStudentsSet()) {
            for (final Registration registration : student.getRegistrationsSet()) {
                final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();
                if (studentCurricularPlan != null) {
                    createAdministrativeOfficeFeeEvent(studentCurricularPlan, executionYear);
View Full Code Here

    @Override
    public void runTask() {
        I18N.setLocale(new Locale("pt", "PT"));
        getLogger().info(".: Checking if a special season enrolment period is coming soon... :.");
        ExecutionYear subjectYear = specialSeasonEnrolmentPeriodOpeningSoonForThisYear(HOW_MANY_WEEKS_SOONER);

        if (subjectYear != null) {
            getLogger().info("   --> HEADSHOT! Running massive SeniorStatute grantor now.");

            try {
View Full Code Here

        final List<ExecutionInterval> executionIntervals =
                ExecutionInterval.readExecutionIntervalsWithCandidacyPeriod(getCandidacyPeriodType());

        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
        for (ExecutionInterval interval : executionIntervals) {
            final ExecutionYear executionYear =
                    (interval instanceof ExecutionYear) ? (ExecutionYear) interval : ((ExecutionSemester) interval)
                            .getExecutionYear();
            final ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionYear);

            for (Coordinator coordinator : executionDegree.getCoordinatorsListSet()) {
View Full Code Here

        if (bean == null) {
            final String registrationProtocolId = request.getParameter("registrationProtocolId");
            RegistrationProtocol registrationProtocol = FenixFramework.getDomainObject(registrationProtocolId);

            final String executionYearId = request.getParameter("executionYearId");
            ExecutionYear executionYear = FenixFramework.getDomainObject(executionYearId);

            final String executionDegreeId = request.getParameter("executionDegreeId");
            ExecutionDegree executionDegree = FenixFramework.getDomainObject(executionDegreeId);

            Boolean megavisor = Boolean.valueOf(request.getParameter("megavisor"));
View Full Code Here

        public void setExecutionDegree(final ExecutionDegree executionDegree) {
            executionDegreeReference = executionDegree;
        }

        public ExecutionYear getExecutionYearFourYearsBack() {
            final ExecutionYear executionYear = getExecutionYear();
            return executionYear == null ? null : getExecutionYearFourYearsBack(executionYear);
        }
View Full Code Here

            final ExecutionYear executionYear = getExecutionYear();
            return executionYear == null ? null : getExecutionYearFourYearsBack(executionYear);
        }

        public static ExecutionYear getExecutionYearFourYearsBack(final ExecutionYear executionYear) {
            ExecutionYear executionYearFourYearsBack = executionYear;
            if (executionYear != null) {
                for (int i = 5; i > 1; i--) {
                    final ExecutionYear previousExecutionYear = executionYearFourYearsBack.getPreviousExecutionYear();
                    if (previousExecutionYear != null) {
                        executionYearFourYearsBack = previousExecutionYear;
                    }
                }
            }
View Full Code Here

        public int getNumberOfRegisteredStudents() {
            final ExecutionDegree executionDegree = contextBean.getExecutionDegree();
            int counter = 0;
            if (executionDegree == null) {
                final ExecutionYear executionYear = contextBean.getExecutionYear();
                final DegreeType degreeType = contextBean.getDegreeType();
                for (final Degree degree : rootDomainObject.getDegreesSet()) {
                    if (degree.getDegreeType() == degreeType) {
                        counter += countDegreeRegistrations(executionYear, degree);
                    }
View Full Code Here

        return hasExecutionPeriod() && getExecutionPeriod().equals(executionSemester);
    }

    @Override
    final public ExecutionYear getIEnrolmentsLastExecutionYear() {
        ExecutionYear result = null;

        for (final IEnrolment iEnrolment : this.getSourceIEnrolments()) {
            final ExecutionYear executionYear = iEnrolment.getExecutionYear();
            if (result == null || result.isBefore(executionYear)) {
                result = executionYear;
            }
        }
View Full Code Here

        if (bean == null) {
            final String registrationProtocolId = request.getParameter("registrationProtocolId");
            RegistrationProtocol registrationProtocol = FenixFramework.getDomainObject(registrationProtocolId);

            final String executionYearId = request.getParameter("executionYearId");
            ExecutionYear executionYear = FenixFramework.getDomainObject(executionYearId);

            Boolean megavisor = Boolean.valueOf(request.getParameter("megavisor"));

            bean = new ExternalSupervisorViewsBean(executionYear, registrationProtocol);
            bean.setMegavisor(megavisor);
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.ExecutionYear

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.