Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.StudentCurricularPlan


        final List<StudentCurricularPlan> studentCurricularPlans = new ArrayList<StudentCurricularPlan>();
        for (final Registration registration : student.getRegistrationsSet()) {

            if (registration.isBolonha()) {
                final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();

                for (final CycleType cycleType : getValidPrecedentCycleTypes()) {
                    if (studentCurricularPlan.hasCycleCurriculumGroup(cycleType)) {
                        final CycleCurriculumGroup cycle = studentCurricularPlan.getCycle(cycleType);

                        if (!cycle.isConclusionProcessed() && !cycle.isConcluded()) {
                            studentCurricularPlans.add(registration.getLastStudentCurricularPlan());
                            break;
                        }
View Full Code Here


        request.setAttribute("manageEnrolmentsBean", bean);
        return mapping.findForward("manageEnrolments");
    }

    private void filterEnrolments(ManageEnrolmentsBean bean, PhdIndividualProgramProcess process, boolean filterByTemporary) {
        final StudentCurricularPlan scp = process.getRegistration().getLastStudentCurricularPlan();

        final Collection<Enrolment> enrolmentsPerformedByStudent = new HashSet<Enrolment>();
        final Collection<Enrolment> enrolmentsPerformedByAdminOffice = new HashSet<Enrolment>();

        for (final Enrolment enrolment : scp.getEnrolmentsByExecutionPeriod(bean.getSemester())) {

            if (filterByTemporary && !enrolment.isTemporary()) {
                continue;
            }
View Full Code Here

        }

        final List<StudentCurricularPlan> studentCurricularPlans = new ArrayList<StudentCurricularPlan>();
        for (final Registration registration : student.getRegistrationsSet()) {
            if (registration.isBolonha()) {
                final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();

                for (final CycleType cycleType : getValidPrecedentCycleTypes()) {
                    if (studentCurricularPlan.hasCycleCurriculumGroup(cycleType)) {
                        final CycleCurriculumGroup cycle = studentCurricularPlan.getCycle(cycleType);

                        if (!cycle.isConclusionProcessed() && !cycle.isConcluded()) {
                            studentCurricularPlans.add(registration.getLastStudentCurricularPlan());
                            break;
                        }
View Full Code Here

        }
    }

    private void correctExecutionCourseIfNecessary(Registration registration, Shift shift) {

        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);
                }
View Full Code Here

        return getExecutionDegree().getExecutionYear();
    }

    protected void enrolStudentInCurricularCourses(final ExecutionDegree executionDegree, final Registration registration) {
        final ExecutionSemester executionSemester = getExecutionPeriod();
        final StudentCurricularPlan studentCurricularPlan =
                StudentCurricularPlan.createBolonhaStudentCurricularPlan(registration, executionDegree.getDegreeCurricularPlan(),
                        new YearMonthDay(), executionSemester);

        studentCurricularPlan.createFirstTimeStudentEnrolmentsFor(executionSemester, getCurrentUsername());
    }
View Full Code Here

public class ExecutionPeriodsForDismissalsStudentCurricularPlanProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        final List<ExecutionSemester> result = new ArrayList<ExecutionSemester>();
        final StudentCurricularPlan studentCurricularPlan = ((IStudentCurricularPlanBean) source).getStudentCurricularPlan();
        ExecutionSemester scpSemester = studentCurricularPlan.getStartExecutionPeriod();
        while (!scpSemester.isCurrent()) {
            result.add(scpSemester);
            scpSemester = scpSemester.getNextExecutionPeriod();
        }
        result.add(scpSemester); //add the current semester
View Full Code Here

        degreeCurricularPlanLink.setText(studentCurriculumGroupBean.getCurriculumModule().getName().getContent());
        degreeCurricularPlanLink.setModuleRelative(false);
        degreeCurricularPlanLink.setTarget("_blank");
        degreeCurricularPlanLink.setUrl("/publico/degreeSite/showDegreeCurricularPlanBolonha.faces");

        final StudentCurricularPlan studentCurricularPlan = getBolonhaStudentEnrollmentBean().getStudentCurricularPlan();
        degreeCurricularPlanLink.setParameter("organizeBy", "groups");
        degreeCurricularPlanLink.setParameter("showRules", "false");
        degreeCurricularPlanLink.setParameter("hideCourses", "false");
        degreeCurricularPlanLink.setParameter("degreeID", studentCurricularPlan.getDegree().getExternalId());
        degreeCurricularPlanLink.setParameter("degreeCurricularPlanID", studentCurricularPlan.getDegreeCurricularPlan()
                .getExternalId());
        degreeCurricularPlanLink.setParameter("executionPeriodOID", getBolonhaStudentEnrollmentBean().getExecutionPeriod()
                .getExternalId());
        return degreeCurricularPlanLink;
    }
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 {
                    this.enrolmentsWithinExecutionPeriod.add(newEnrolment);
View Full Code Here

        }
        return false;
    }

    public boolean hasPropaeudeuticsOrExtraEntriesApproved() {
        final StudentCurricularPlan scp = getProcess().getRegistration().getLastStudentCurricularPlan();

        for (final PhdStudyPlanEntry entry : getEntriesSet()) {

            if ((entry.isPropaedeutic() || entry.isExtraCurricular()) && entry.isInternalEntry()) {
View Full Code Here

    }

    @Override
    public Object provide(final Object source, final Object currentValue) {
        final DocumentRequestCreateBean documentRequestCreateBean = (DocumentRequestCreateBean) source;
        final StudentCurricularPlan scp = documentRequestCreateBean.getRegistration().getLastStudentCurricularPlan();

        final List<CycleType> result = new ArrayList<CycleType>();
        for (final CycleCurriculumGroup group : scp.getInternalCycleCurriculumGrops()) {
            result.add(group.getCycleType());
        }
        return result;
    }
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.