Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Enrolment


        } else {
            DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
            Thesis thesis = getThesis(request);
            final PersonTarget personTarget = bean.getTargetType();
            if (personTarget == PersonTarget.president) {
                final Enrolment enrolment = thesis.getEnrolment();
                final ExecutionYear executionYear = enrolment.getExecutionYear();
                if (selectedPerson == null || !degreeCurricularPlan.isScientificCommissionMember(executionYear, selectedPerson)) {
                    addActionMessage("info", request, "thesis.selectPerson.president.required.scientific.commission");
                    return mapping.findForward("select-person");
                }
            }
View Full Code Here


        final StudentCurricularPlan studentCurricularPlan = registration.getActiveStudentCurricularPlan();
        final ExecutionSemester semester = ExecutionSemester.readActualExecutionSemester();
        final ExecutionCourse executionCourse = shift.getExecutionCourse();

        for (final CurricularCourse curricularCourse : executionCourse.getAssociatedCurricularCoursesSet()) {
            final Enrolment enrolment = studentCurricularPlan.findEnrolmentFor(curricularCourse, semester);
            if (enrolment != null) {
                final Attends attends = enrolment.getAttendsFor(semester);
                if (attends != null && !attends.isFor(executionCourse)) {
                    attends.setDisciplinaExecucao(executionCourse);
                }
                break;
            }
View Full Code Here

        int approvedStudents = 0;
        int flunkedStudents = 0;
        int notEvaluatedStudents = 0;
        for (Attends attends : executionCourse.getAttendsSet()) {
            if (attends.getEnrolment() != null) {
                Enrolment enrolment = attends.getEnrolment();
                if (enrolment.isApproved()) {
                    approvedStudents++;
                } else if (enrolment.isFlunked()) {
                    flunkedStudents++;
                } else {
                    notEvaluatedStudents++;
                }
            }
View Full Code Here

    public void addEnrolmentsWithinExecutionPeriod(List<Enrolment> enrolments) {
        // Checks if already exists enrolments for this execution period
        if (!this.enrolmentsWithinExecutionPeriod.isEmpty()) {
            for (Enrolment newEnrolment : enrolments) {
                StudentCurricularPlan newEnrolmentSCP = newEnrolment.getStudentCurricularPlan();
                Enrolment previousAddedEnrolment = getPreviousEnrolmentGivenCurricularCourse(newEnrolment.getCurricularCourse());
                // Checks if exists a repeated enrolment
                if (previousAddedEnrolment != null) {
                    StudentCurricularPlan previousEnrolmentSCP = previousAddedEnrolment.getStudentCurricularPlan();
                    if (newEnrolmentSCP.getStartExecutionYear().isAfterOrEquals(previousEnrolmentSCP.getStartExecutionYear())) {
                        this.enrolmentsWithinExecutionPeriod.remove(previousAddedEnrolment);
                        this.enrolmentsWithinExecutionPeriod.add(newEnrolment);
                    }
                } else {
View Full Code Here

    private void filter(final SortedSet<Enrolment> aprovedEnrolments, DocumentRequestCreateBean documentRequestCreateBean) {
        final CycleType cycleType = documentRequestCreateBean.getRequestedCycle();
        if (cycleType != null) {
            final Iterator<Enrolment> elements = aprovedEnrolments.iterator();
            while (elements.hasNext()) {
                final Enrolment enrolment = elements.next();
                if (!hasCycleType(enrolment, cycleType) && !isSourceInAnyCycleGroup(enrolment, cycleType)) {
                    elements.remove();
                }
            }
        }
View Full Code Here

        for (CurriculumModule module : curriculumModulesToRemove) {
            if (!module.isEnrolment()) {
                continue;
            }

            Enrolment enrolment = (Enrolment) module;

            enrolment.getCourseLoadRequestsSet().retainAll(new HashSet<CourseLoadRequest>());
            enrolment.getProgramCertificateRequestsSet().retainAll(new HashSet<ProgramCertificateRequest>());
        }

        return EnrolBolonhaStudent.run(studentCurricularPlan, executionSemester, degreeModulesToEnrol, curriculumModulesToRemove,
                curricularRuleLevel);
    }
View Full Code Here

    protected List<StudentCurriculumEnrolmentBean> buildCurricularCoursesEnroled(CurriculumGroup group,
            ExecutionSemester executionSemester) {
        List<StudentCurriculumEnrolmentBean> result = new ArrayList<StudentCurriculumEnrolmentBean>();
        for (CurriculumModule curriculumModule : group.getCurriculumModulesSet()) {
            if (curriculumModule.isEnrolment()) {
                Enrolment enrolment = (Enrolment) curriculumModule;
                if (enrolment.isImprovementEnroled() && enrolment.getExecutionPeriod().isBefore(executionSemester)) {
                    result.add(new StudentCurriculumEnrolmentBean(enrolment));
                }
            }
        }
View Full Code Here

    protected List<IDegreeModuleToEvaluate> buildCurricularCoursesToEnrol(CurriculumGroup group,
            ExecutionSemester executionSemester) {
        List<IDegreeModuleToEvaluate> result = new ArrayList<IDegreeModuleToEvaluate>();
        for (CurriculumModule curriculumModule : group.getCurriculumModulesSet()) {
            if (curriculumModule.isEnrolment()) {
                Enrolment enrolment = (Enrolment) curriculumModule;
                if (enrolment.canBeImproved() && enrolment.getExecutionPeriod().isBefore(executionSemester)) {
                    result.add(new EnroledCurriculumModuleWrapper(enrolment, enrolment.getExecutionPeriod()));
                }
            }
        }

        return result;
View Full Code Here

    protected List<StudentCurriculumEnrolmentBean> buildCurricularCoursesEnroled(CurriculumGroup group,
            ExecutionSemester executionSemester) {
        List<StudentCurriculumEnrolmentBean> result = new ArrayList<StudentCurriculumEnrolmentBean>();
        for (CurriculumModule curriculumModule : group.getCurriculumModulesSet()) {
            if (curriculumModule.isEnrolment()) {
                Enrolment enrolment = (Enrolment) curriculumModule;
                if (enrolment.isSpecialSeasonEnroled(executionSemester)) {
                    result.add(new StudentCurriculumEnrolmentBean(enrolment));
                }
            }
        }
View Full Code Here

                AcademicAuthorizationGroup.get(AcademicOperationType.STUDENT_ENROLMENTS).isMember(Authenticate.getUser());

        for (final CurriculumModule curriculumModule : group.getCurriculumModulesSet()) {
            if (curriculumModule.isEnrolment()) {

                final Enrolment enrolment = (Enrolment) curriculumModule;

                if (!considerThisEnrolmentGeneralRule(enrolment, executionSemester, alreadyHasSpecialSeasonEnrolment)) {
                    continue;
                }

                if (considerThisEnrolmentNormalEnrolments(enrolment)
                        || considerThisEnrolmentPropaedeuticEnrolments(enrolment, isServices)
                        || considerThisEnrolmentExtraCurricularEnrolments(enrolment, isServices)
                        || considerThisEnrolmentStandaloneEnrolments(enrolment, isServices)) {

                    if (enrolmentsMap.get(enrolment.getCurricularCourse()) != null) {
                        Enrolment enrolmentMap = enrolmentsMap.get(enrolment.getCurricularCourse());
                        if (enrolment.getExecutionPeriod().isAfter(enrolmentMap.getExecutionPeriod())) {
                            enrolmentsMap.put(enrolment.getCurricularCourse(), enrolment);
                        }
                    } else {
                        enrolmentsMap.put(enrolment.getCurricularCourse(), enrolment);
                    }
View Full Code Here

TOP

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

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.