Package org.fenixedu.academic.domain.enrolment

Examples of org.fenixedu.academic.domain.enrolment.OptionalDegreeModuleToEnrol


    }

    private void createOptionalEnrolmentFor(final EnrollmentCondition enrollmentCondition,
            final IDegreeModuleToEvaluate degreeModuleToEvaluate, final CurriculumGroup curriculumGroup) {

        final OptionalDegreeModuleToEnrol optionalDegreeModuleToEnrol = (OptionalDegreeModuleToEnrol) degreeModuleToEvaluate;
        final OptionalCurricularCourse optionalCurricularCourse =
                (OptionalCurricularCourse) optionalDegreeModuleToEnrol.getDegreeModule();
        final CurricularCourse curricularCourse = optionalDegreeModuleToEnrol.getCurricularCourse();

        getStudentCurricularPlan().createOptionalEnrolment(curriculumGroup, getExecutionSemester(), optionalCurricularCourse,
                curricularCourse, enrollmentCondition);
    }
View Full Code Here


            return RuleResult.createNA(sourceDegreeModuleToEvaluate.getDegreeModule());
        }

        final CurricularCourse curricularCourseToEnrol;
        if (sourceDegreeModuleToEvaluate.isEnroling()) {
            final OptionalDegreeModuleToEnrol optionalDegreeModuleToEnrol =
                    (OptionalDegreeModuleToEnrol) sourceDegreeModuleToEvaluate;
            curricularCourseToEnrol = optionalDegreeModuleToEnrol.getCurricularCourse();

            if (isApproved(enrolmentContext, curricularCourseToEnrol) || isEnroled(enrolmentContext, curricularCourseToEnrol)
                    || isApproved(enrolmentContext, optionalDegreeModuleToEnrol.getCurricularCourse())
                    || isEnroled(enrolmentContext, optionalDegreeModuleToEnrol.getCurricularCourse())) {

                return RuleResult.createFalse(sourceDegreeModuleToEvaluate.getDegreeModule(),
                        "curricularRules.ruleExecutors.AnyCurricularCourseExecutor.already.approved.or.enroled",
                        curricularCourseToEnrol.getName(), rule.getDegreeModuleToApplyRule().getName());
            }
View Full Code Here

    private List<IDegreeModuleToEvaluate> buildOptionalDegreeModuleToEnrolList(
            final BolonhaStudentOptionalEnrollmentBean optionalStudentEnrollmentBean) {
        final IDegreeModuleToEvaluate selectedDegreeModuleToEnrol =
                optionalStudentEnrollmentBean.getSelectedDegreeModuleToEnrol();
        final OptionalDegreeModuleToEnrol optionalDegreeModuleToEnrol =
                new OptionalDegreeModuleToEnrol(selectedDegreeModuleToEnrol.getCurriculumGroup(),
                        selectedDegreeModuleToEnrol.getContext(), optionalStudentEnrollmentBean.getExecutionPeriod(),
                        optionalStudentEnrollmentBean.getSelectedOptionalCurricularCourse());

        final List<IDegreeModuleToEvaluate> result = new ArrayList<IDegreeModuleToEvaluate>();
        result.add(optionalDegreeModuleToEnrol);
View Full Code Here

            final Context context = (Context) converter.convert(type, parts[0]);
            final CurriculumGroup curriculumGroup = (CurriculumGroup) converter.convert(type, parts[1]);
            final ExecutionSemester executionSemester = (ExecutionSemester) converter.convert(type, parts[2]);
            final CurricularCourse curricularCourse = (CurricularCourse) converter.convert(type, parts[3]);
            result.add(new OptionalDegreeModuleToEnrol(curriculumGroup, context, executionSemester, curricularCourse));
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.enrolment.OptionalDegreeModuleToEnrol

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.