Examples of CycleCurriculumGroup


Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

        return student.hasRegistrationFor(studentCurricularPlan.getSecondCycle().getDegreeCurricularPlanOfDegreeModule());
    }

    protected Registration createNewSecondCycle(final StudentCurricularPlan oldStudentCurricularPlan) {
        final Student student = oldStudentCurricularPlan.getRegistration().getStudent();
        final CycleCurriculumGroup oldSecondCycle = oldStudentCurricularPlan.getSecondCycle();
        final DegreeCurricularPlan degreeCurricularPlan = oldSecondCycle.getDegreeCurricularPlanOfDegreeModule();

        final Registration newRegistration = createRegistration(student, oldStudentCurricularPlan);
        final StudentCurricularPlan newStudentCurricularPlan =
                createStudentCurricularPlan(newRegistration, degreeCurricularPlan, oldSecondCycle.getCycleType());
        final CycleCurriculumGroup newSecondCycle = newStudentCurricularPlan.getSecondCycle();

        copyCycleCurriculumGroupsInformation(oldSecondCycle, newSecondCycle);
        moveExtraCurriculumGroupInformation(oldStudentCurricularPlan, newStudentCurricularPlan);
        moveExtraAttends(oldStudentCurricularPlan, newStudentCurricularPlan);
        tryRemoveOldSecondCycle(oldSecondCycle);
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

        return !attend.getExecutionPeriod().isBefore(newStudentCurricularPlan.getStartExecutionPeriod());
    }

    private Registration createRegistration(final Student student, final StudentCurricularPlan sourceStudentCurricularPlan) {

        final CycleCurriculumGroup oldSecondCycle = sourceStudentCurricularPlan.getSecondCycle();
        Registration registration = student.getActiveRegistrationFor(oldSecondCycle.getDegreeCurricularPlanOfDegreeModule());

        if (registration != null) {
            return registration;
        }

        Degree degree = oldSecondCycle.getDegreeCurricularPlanOfDegreeModule().getDegree();
        registration = new Registration(student.getPerson(), student.getNumber(), degree);
        StudentCandidacy studentCandidacy = createStudentCandidacy(student, oldSecondCycle);
        registration.setStudentCandidacy(studentCandidacy);
        PersonalIngressionData personalIngressionData =
                student.getPersonalIngressionDataByExecutionYear(registration.getRegistrationYear());
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

    @Atomic
    public static void run(final RegistrationConclusionBean conclusionBean) {
        final Registration registration = conclusionBean.getRegistration();

        if (registration.isBolonha()) {
            final CycleCurriculumGroup cycleCurriculumGroup = conclusionBean.getCycleCurriculumGroup();

            registration.conclude(cycleCurriculumGroup);

            if (conclusionBean.hasEnteredConclusionDate()) {

                checkEnteredConclusionDate(conclusionBean);

                cycleCurriculumGroup.editConclusionInformation(AccessControl.getPerson(), cycleCurriculumGroup.getFinalAverage(),
                        new YearMonthDay(conclusionBean.getEnteredConclusionDate()), conclusionBean.getObservations());
            }

        } else {
            registration.conclude();
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

            }
        }

        protected CourseGroup getCourseGroupWithCycleType(final StudentCurricularPlan studentCurricularPlan,
                final CycleType cycleType) {
            final CycleCurriculumGroup curriculumGroup = studentCurricularPlan.getCycle(cycleType);
            return curriculumGroup != null ? curriculumGroup.getDegreeModule() : studentCurricularPlan.getDegreeCurricularPlan()
                    .getCycleCourseGroup(cycleType);
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

                    Row row = sheet.addRow();
                    row.setCell(alumniName);
                    row.setCell(studentNumber);
                    row.setCell(registration.getDegreeName());
                    row.setCell(registration.getStartDate().toString(DATE_FORMAT));
                    final CycleCurriculumGroup lastConcludedCycle = concludeCycles.last();
                    try {
                        row.setCell(lastConcludedCycle.isConclusionProcessed() ? lastConcludedCycle.getConclusionDate().toString(
                                DATE_FORMAT) : lastConcludedCycle.calculateConclusionDate().toString(DATE_FORMAT));
                    } catch (Exception ex) {
                        row.setCell(NOT_AVAILABLE);
                    }
                    row.setCell("Bolonha");
                    row.setCell(alumni != null && alumni.getIsEmployed() != null ? getApp("label." + alumni.getIsEmployed()) : NOT_AVAILABLE);
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

        }
        //this is to prevent some oddly behavior spotted (e.g. student 57276)
        if (getStudentCurricularPlan().getCycleCurriculumGroups().isEmpty()) {
            return;
        }
        CycleCurriculumGroup sgroup =
                Collections.min(getStudentCurricularPlan().getCycleCurriculumGroups(),
                        CycleCurriculumGroup.COMPARATOR_BY_CYCLE_TYPE_AND_ID);
        CycleType cycleIter = sgroup.getCycleType().getPrevious();
        while (cycleIter != null) {
            if (getStudentCurricularPlan().getDegreeCurricularPlan().getCycleCourseGroup(cycleIter) != null) {
                sumEctsCredits = sumEctsCredits.add(new BigDecimal(cycleIter.getEctsCredits()));
            }
            cycleIter = cycleIter.getPrevious();
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

    private boolean isEnroledOnSecondCycle(Registration registration) {
        if (registration.getLastStudentCurricularPlan().getSecondCycle() == null) {
            return false;
        }

        CycleCurriculumGroup secondCycle = registration.getLastStudentCurricularPlan().getSecondCycle();
        return secondCycle.hasAnyEnrolments();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

    private boolean canSeparate() {
        return hasFirstCycleConcluded() && hasExternalSecondCycle();
    }

    private boolean hasFirstCycleConcluded() {
        final CycleCurriculumGroup firstCycle = studentCurricularPlan.getFirstCycle();
        return firstCycle != null && firstCycle.isConcluded();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

        final CycleCurriculumGroup firstCycle = studentCurricularPlan.getFirstCycle();
        return firstCycle != null && firstCycle.isConcluded();
    }

    private boolean hasExternalSecondCycle() {
        final CycleCurriculumGroup secondCycle = studentCurricularPlan.getSecondCycle();
        return secondCycle != null && secondCycle.isExternal() && secondCycle.hasAnyCurriculumLines();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.CycleCurriculumGroup

    private boolean canRepeateSeparate() {
        return hasFirstCycleConcluded() && hasExternalSecondCycleAndNewRegistration();
    }

    private boolean hasExternalSecondCycleAndNewRegistration() {
        final CycleCurriculumGroup secondCycle = studentCurricularPlan.getSecondCycle();
        if (secondCycle != null && secondCycle.isExternal() && secondCycle.hasAnyCurriculumLines()) {
            final Student student = getRegistration().getStudent();
            return student.hasActiveRegistrationFor(secondCycle.getDegreeCurricularPlanOfDegreeModule());
        }
        return false;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.