Package org.fenixedu.academic.dto.candidacy

Examples of org.fenixedu.academic.dto.candidacy.PrecedentDegreeInformationBean


        return null;
    }

    private static final PrecedentDegreeInformationBean precedentDegreeInformationBeanForSecondCycleOrForGraduatedPerson(
            IndividualCandidacy individualCandidacy) {
        PrecedentDegreeInformationBean bean = new PrecedentDegreeInformationBean();
        PrecedentDegreeInformation pid = individualCandidacy.getRefactoredPrecedentDegreeInformation();

        bean.setPrecedentDegreeInformation(pid);
        bean.setDegreeDesignation(pid.getDegreeDesignation());
        bean.setInstitution(pid.getInstitution());
        bean.setInstitutionName(pid.getInstitutionName());
        bean.setCountry(pid.getCountry());
        bean.setConclusionDate(pid.getConclusionDate());
        bean.setConclusionGrade(pid.getConclusionGrade());

        return bean;
    }
View Full Code Here


        return bean;
    }

    private static final PrecedentDegreeInformationBean precedentDegreeInformationBeanForTransferOrChange(
            IndividualCandidacy individualCandidacy) {
        PrecedentDegreeInformationBean bean = new PrecedentDegreeInformationBean();
        PrecedentDegreeInformation pid = individualCandidacy.getRefactoredPrecedentDegreeInformation();

        bean.setPrecedentDegreeInformation(pid);
        bean.setDegreeDesignation(pid.getPrecedentDegreeDesignation());
        bean.setInstitution(pid.getPrecedentInstitution());
        bean.setInstitutionName(pid.getPrecedentInstitution().getName());
        bean.setNumberOfEnroledCurricularCourses(pid.getNumberOfEnroledCurricularCourses());
        bean.setNumberOfApprovedCurricularCourses(pid.getNumberOfApprovedCurricularCourses());
        bean.setGradeSum(pid.getGradeSum());
        bean.setApprovedEcts(pid.getApprovedEcts());
        bean.setEnroledEcts(pid.getEnroledEcts());

        return bean;
    }
View Full Code Here

        return bean;
    }

    public static final PrecedentDegreeInformationBean createBean(final StudentCurricularPlan studentCurricularPlan,
            final CycleType cycleType) {
        PrecedentDegreeInformationBean bean = new PrecedentDegreeInformationBean();

        if (!studentCurricularPlan.isBolonhaDegree() || cycleType == null) {
            throw new IllegalArgumentException();
        }

        bean.setDegreeDesignation(studentCurricularPlan.getName());
        bean.setInstitutionUnitName(Bennu.getInstance().getInstitutionUnit().getUnitName());

        if (studentCurricularPlan.getConclusionDate(cycleType) != null) {
            bean.setConclusionDate(new LocalDate(studentCurricularPlan.getConclusionDate(cycleType)));
        }

        if (studentCurricularPlan.getFinalAverage(cycleType) != null) {
            bean.setConclusionGrade(studentCurricularPlan.getFinalAverage(cycleType).toString());
        }

        bean.setNumberOfEnroledCurricularCourses(calculateNumberOfEnroledCurricularCourses(studentCurricularPlan));
        bean.setNumberOfApprovedCurricularCourses(calculateNumberOfApprovedCurricularCourses(studentCurricularPlan));
        bean.setGradeSum(calculateGradeSum(studentCurricularPlan));
        bean.setApprovedEcts(calculateApprovedEcts(studentCurricularPlan));
        bean.setEnroledEcts(calculateEnroledEcts(studentCurricularPlan));

        return bean;
    }
View Full Code Here

        return bean;
    }

    public static final PrecedentDegreeInformationBean createBean(final StudentCurricularPlan studentCurricularPlan) {
        PrecedentDegreeInformationBean bean = new PrecedentDegreeInformationBean();

        if (studentCurricularPlan.isBolonhaDegree()
                || !studentCurricularPlan.getRegistration().isRegistrationConclusionProcessed()) {
            throw new IllegalArgumentException("error.studentCurricularPlan.must.be.pre.bolonha.and.concluded");
        }

        bean.setDegreeDesignation(studentCurricularPlan.getName());
        bean.setConclusionDate(new LocalDate(studentCurricularPlan.getRegistration().getConclusionDate()));
        bean.setConclusionGrade(studentCurricularPlan.getRegistration().getFinalAverage().toString());
        bean.setInstitution(Bennu.getInstance().getInstitutionUnit());
        bean.setInstitutionName(Bennu.getInstance().getInstitutionUnit().getName());
        bean.setInstitutionUnitName(Bennu.getInstance().getInstitutionUnit().getUnitName());

        bean.setNumberOfEnroledCurricularCourses(calculateNumberOfEnroledCurricularCourses(studentCurricularPlan));
        bean.setNumberOfApprovedCurricularCourses(calculateNumberOfApprovedCurricularCourses(studentCurricularPlan));
        bean.setGradeSum(calculateGradeSum(studentCurricularPlan));
        bean.setApprovedEcts(calculateApprovedEcts(studentCurricularPlan));
        bean.setEnroledEcts(calculateEnroledEcts(studentCurricularPlan));

        return bean;
    }
View Full Code Here

         * 21/07/2009 - Now we create a person to process the payments
         * imediately
         */
        bean.setChoosePersonBean(new ChoosePersonBean());
        bean.setPersonBean(new PersonBean());
        bean.setPrecedentDegreeInformation(new PrecedentDegreeInformationBean());

        /*
         * 06/05/2009 - Also we mark the bean as an external candidacy.
         */
        bean.setInternalPersonCandidacy(Boolean.TRUE);
View Full Code Here

         * 21/07/2009 - Now we create a person to process the payments
         * imediately
         */
        bean.setChoosePersonBean(new ChoosePersonBean());
        bean.setPersonBean(new PersonBean());
        bean.setPrecedentDegreeInformation(new PrecedentDegreeInformationBean());

        /*
         * 06/05/2009 - Also we mark the bean as an external candidacy.
         */
        bean.setInternalPersonCandidacy(Boolean.TRUE);
View Full Code Here

    }

    @Override
    protected void createCandidacyPrecedentDegreeInformation(IndividualCandidacyProcessWithPrecedentDegreeInformationBean bean,
            StudentCurricularPlan studentCurricularPlan) {
        final PrecedentDegreeInformationBean info =
                PrecedentDegreeInformationBeanFactory.createBean(studentCurricularPlan, CycleType.FIRST_CYCLE);

        bean.setPrecedentDegreeInformation(info);
    }
View Full Code Here

            return mapping.findForward("open-candidacy-processes-not-found");
        }

        DegreeCandidacyForGraduatedPersonIndividualProcessBean bean =
                new DegreeCandidacyForGraduatedPersonIndividualProcessBean();
        bean.setPrecedentDegreeInformation(new PrecedentDegreeInformationBean());
        bean.setPersonBean(new PersonBean());
        bean.setCandidacyProcess(candidacyProcess);
        bean.setPublicCandidacyHashCode(candidacyHashCode);

        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
View Full Code Here

    }

    @Override
    protected void createCandidacyPrecedentDegreeInformation(IndividualCandidacyProcessWithPrecedentDegreeInformationBean bean,
            StudentCurricularPlan studentCurricularPlan) {
        final PrecedentDegreeInformationBean info =
                PrecedentDegreeInformationBeanFactory.createBean(studentCurricularPlan, CycleType.FIRST_CYCLE);

        bean.setPrecedentDegreeInformation(info);
    }
View Full Code Here

                && candidacyHashCode.getIndividualCandidacyProcess().getCandidacyProcess() != candidacyProcess) {
            return mapping.findForward("open-candidacy-processes-not-found");
        }

        DegreeChangeIndividualCandidacyProcessBean bean = new DegreeChangeIndividualCandidacyProcessBean();
        bean.setPrecedentDegreeInformation(new PrecedentDegreeInformationBean());
        bean.setPersonBean(new PersonBean());
        bean.setCandidacyProcess(candidacyProcess);
        bean.setPublicCandidacyHashCode(candidacyHashCode);

        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.candidacy.PrecedentDegreeInformationBean

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.