Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.StudentCurricularPlan


            if (!programs.contains(registration.getDegree())) {
                continue;
            }

            final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();
            for (final CycleCurriculumGroup cycle : studentCurricularPlan.getCycleCurriculumGroups()) {

                if (cycle.getConclusionProcess() != null) {
                    continue;
                }

                final DegreeCurricularPlan degreeCurricularPlan = cycle.getDegreeCurricularPlanOfDegreeModule();
                final List<DegreeModule> modules =
                        degreeCurricularPlan.getDcpDegreeModules(OptionalCurricularCourse.class,
                                ExecutionYear.readCurrentExecutionYear());

                final Iterator<DegreeModule> degreeModulesIter = modules.iterator();
                while (degreeModulesIter.hasNext()) {
                    final CurricularCourse curricularCourse = (CurricularCourse) degreeModulesIter.next();
                    if (studentCurricularPlan.isApproved(curricularCourse)
                            || studentCurricularPlan.getCurricularCoursePossibleGroupsWithoutNoCourseGroupCurriculumGroups(
                                    curricularCourse).isEmpty()) {
                        degreeModulesIter.remove();
                    }
                }
View Full Code Here


            if (!registration.isBolonha()) {
                result.addAll(registration.getLastStudentCurricularPlan().getAllCurriculumGroups());
                continue;
            }

            final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();
            result.addAll(studentCurricularPlan.getNoCourseGroupCurriculumGroups());

            for (final CycleCurriculumGroup cycle : studentCurricularPlan.getCycleCurriculumGroups()) {

                if (bean.isWithRules() && isConcluded(student, cycle)) {
                    continue;
                }
View Full Code Here

public class CurriculumGroupsProviderForRegistrationAcademicServiceRequest implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        final RegistrationSelectExecutionYearBean bean = ((RegistrationSelectExecutionYearBean) source);
        final StudentCurricularPlan studentCurricularPlan = bean.getRegistration().getLastStudentCurricularPlan();
        final List<CurriculumGroup> curriculumGroups =
                new ArrayList<CurriculumGroup>(studentCurricularPlan.getRoot().getAllCurriculumGroups());
        curriculumGroups.removeAll(studentCurricularPlan.getRoot().getCycleCurriculumGroups());
        Collections.sort(curriculumGroups, CurriculumGroup.COMPARATOR_BY_NAME_AND_ID);
        return curriculumGroups;
    }
View Full Code Here

public class CreateStudentCurricularPlanEquivalencePlan {

    @Atomic
    public static StudentCurricularPlanEquivalencePlan run(final Student student) {
        for (final Registration registration : student.getRegistrationsSet()) {
            final StudentCurricularPlan studentCurricularPlan = registration.getActiveStudentCurricularPlan();
            if (studentCurricularPlan != null && studentCurricularPlan.isBoxStructure()
                    && !studentCurricularPlan.isBolonhaDegree()) {
                final StudentCurricularPlanEquivalencePlan studentCurricularPlanEquivalencePlan =
                        studentCurricularPlan.getEquivalencePlan();
                return studentCurricularPlanEquivalencePlan == null ? studentCurricularPlan
                        .createStudentCurricularPlanEquivalencePlan() : studentCurricularPlanEquivalencePlan;
            }
        }
        return null;
    }
View Full Code Here

        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

    }

    private StudentCurricularPlan createStudentCurricularPlan(final Registration registration,
            final DegreeCurricularPlan degreeCurricularPlan, CycleType cycleType) {

        StudentCurricularPlan result = registration.getStudentCurricularPlan(degreeCurricularPlan);
        if (result != null) {
            return result;
        }

        result =
View Full Code Here

        private boolean verifyDegreeType(final Degree degree, final Registration registrationByType) {
            return registrationByType != null && (degree == null || verifyDegree(degree, registrationByType));
        }

        private boolean verifyDegree(final Degree degree, final Registration registrationByType) {
            final StudentCurricularPlan studentCurricularPlan = registrationByType.getActiveStudentCurricularPlan();
            return (studentCurricularPlan != null && degree == studentCurricularPlan.getDegreeCurricularPlan().getDegree());
        }
View Full Code Here

public class CreateExtraEnrolment {

    @Atomic
    public static RuleResult run(final NoCourseGroupEnrolmentBean bean) {
        final StudentCurricularPlan studentCurricularPlan = bean.getStudentCurricularPlan();
        return studentCurricularPlan.createNoCourseGroupCurriculumGroupEnrolment(bean);
    }
View Full Code Here

                .getCurriculum(getExecutionSemester().getEndDateYearMonthDay().toDateTimeAtCurrentTime(),
                        getExecutionSemester().getExecutionYear(), null).getSumEctsCredits();
    }

    private BigDecimal getEnrolledECTS(final Student student) {
        StudentCurricularPlan scp = getStudentCurricularPlan(student, getExecutionSemester());

        BigDecimal totalECTS = new BigDecimal(0d);

        for (final CurriculumLine curriculumLine : scp.getAllCurriculumLines()) {

            if (curriculumLine.isExtraCurricular()) {
                continue;
            }
View Full Code Here

        if (registrations.size() != 1) {
            throw new DomainException("student.has.more.than.one.active.registration");
        }

        Registration registration = registrations.iterator().next();
        final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();
        if (!studentCurricularPlan.isBolonhaDegree()) {

            throw new DomainException("student.curricular.plan.is.not.bolonha");
        }

        return studentCurricularPlan;
View Full Code Here

TOP

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

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.