Package org.fenixedu.academic.domain.student

Examples of org.fenixedu.academic.domain.student.PrecedentDegreeInformation


            StudentCandidacy studentCandidacy = registration.getStudentCandidacy();
            if (studentCandidacy.getPrecedentDegreeInformation() == null) {
                return EMPTY;
            }

            PrecedentDegreeInformation precedentDegreeInformation = studentCandidacy.getPrecedentDegreeInformation();
            if (precedentDegreeInformation.getPrecedentInstitution() == null) {
                return EMPTY;
            }

            return precedentDegreeInformation.getPrecedentInstitution().getNameI18n().toString();
        }

        return EMPTY;
    }
View Full Code Here


            StudentCandidacy studentCandidacy = registration.getStudentCandidacy();
            if (studentCandidacy.getPrecedentDegreeInformation() == null) {
                return EMPTY;
            }

            PrecedentDegreeInformation precedentDegreeInformation = studentCandidacy.getPrecedentDegreeInformation();
            if (precedentDegreeInformation.getPrecedentCountry() == null) {
                return EMPTY;
            }

            return precedentDegreeInformation.getPrecedentCountry().getLocalizedName().toString();
        }

        return EMPTY;
    }
View Full Code Here

            setRegistration(registration);

            ExecutionYear currentYear = ExecutionYear.readCurrentExecutionYear();
            PersonalIngressionData pid = getStudent().getPersonalIngressionDataByExecutionYear(currentYear);
            pid.setCountryOfResidence(getPersonalDetails().getCountryOfResidence());
            PrecedentDegreeInformation pdi = registration.getPrecedentDegreeInformation(currentYear);
            pdi.setSchoolLevel(getMobilityStudentData().getSchoolLevel());
            pdi.setOtherSchoolLevel(getMobilityStudentData().getOtherSchoolLevel());

            return registration;
        }

        getPersonalDetails().ensurePersonInternalization();
View Full Code Here

        setRegistration(registration);

        createRaidesInformation(registration);
        PersonalIngressionData pid = getStudent().getPersonalIngressionDataByExecutionYear(registration.getStartExecutionYear());
        pid.setCountryOfResidence(getPersonalDetails().getCountryOfResidence());
        PrecedentDegreeInformation pdi = registration.getPrecedentDegreeInformation(registration.getStartExecutionYear());
        pdi.setSchoolLevel(getMobilityStudentData().getSchoolLevel());
        pdi.setOtherSchoolLevel(getMobilityStudentData().getOtherSchoolLevel());

        return registration;
    }
View Full Code Here

        }
    }

    @Atomic
    public void updatePersonalInformation(boolean isStudentEditing) {
        PrecedentDegreeInformation precedentInfo = getPrecedentDegreeInformation();
        PersonalIngressionData personalData;

        if (precedentInfo == null) {
            precedentInfo = new PrecedentDegreeInformation();
            if (hasPhdIndividualProgramProcess()) {
                precedentInfo.setPhdIndividualProgramProcess(getPhdIndividualProgramProcess());
            } else {
                precedentInfo.setRegistration(getRegistration());
            }

            ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();
            personalData = getStudent().getPersonalIngressionDataByExecutionYear(currentExecutionYear);
            if (personalData == null) {
                personalData = new PersonalIngressionData(getStudent(), currentExecutionYear, precedentInfo);
            } else {
                personalData.addPrecedentDegreesInformations(precedentInfo);
            }
        } else {
            personalData = precedentInfo.getPersonalIngressionData();
        }

        precedentInfo.edit(this, isStudentEditing);
        personalData.edit(this);
    }
View Full Code Here

        Formatter formatter = new Formatter(result);

        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.CANDIDATE, "label.process.id"), getCandidacyProcess()
                .getProcessCode());
        PrecedentDegreeInformation precedentDegreeInformation = getCandidacyProcess().getPrecedentDegreeInformation();
        formatter.format("%s: %s\n",
                BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.previous.degree"),
                precedentDegreeInformation.getDegreeDesignation());
        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.ACADEMIC, "label.conclusionDate"),
                precedentDegreeInformation.getConclusionDate());
        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.institution"),
                precedentDegreeInformation.getInstitution().getName());
        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.ACADEMIC, "label.conclusionGrade"),
                precedentDegreeInformation.getConclusionGrade());
        formatter.format("\n");
        formatter.format("%s: %f\n", BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.affinity"),
                getAffinity() != null ? getAffinity() : BigDecimal.ZERO);
        formatter.format("%s: %d\n", BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.degreeNature"),
                getDegreeNature() != null ? getDegreeNature() : 0);
View Full Code Here

                throw new DomainException("error.candidacy.already.created");
            }
        }
        setExecutionDegree(executionDegree);
        setPerson(person);
        setPrecedentDegreeInformation(new PrecedentDegreeInformation());
    }
View Full Code Here

        String[] args = {};
        if (person == null) {
            throw new DomainException("person cannot be null", args);
        }
        setPerson(person);
        setPrecedentDegreeInformation(new PrecedentDegreeInformation());
    }
View Full Code Here

    protected void init(final Person person, final ExecutionDegree executionDegree, final Person creator, Double entryGrade,
            String contigent, Ingression ingression, EntryPhase entryPhase, Integer placingOption) {
        checkParameters(person, executionDegree, creator, entryGrade, contigent, ingression, entryPhase);
        super.setExecutionDegree(executionDegree);
        super.setPerson(person);
        super.setPrecedentDegreeInformation(new PrecedentDegreeInformation());
        super.setEntryGrade(entryGrade);
        super.setContigent(contigent);
        super.setIngression(ingression);
        super.setEntryPhase(entryPhase);
        super.setPlacingOption(placingOption);
View Full Code Here

        Formatter formatter = new Formatter(result);

        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.CANDIDATE, "label.process.id"), getCandidacyProcess()
                .getProcessCode());
        PrecedentDegreeInformation precedentDegreeInformation = getCandidacyProcess().getPrecedentDegreeInformation();
        formatter.format("%s: %s\n",
                BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.previous.degree"),
                precedentDegreeInformation.getDegreeDesignation());
        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.ACADEMIC, "label.conclusionDate"),
                precedentDegreeInformation.getConclusionDate());
        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.institution"),
                precedentDegreeInformation.getInstitution().getName());
        formatter.format("%s: %s\n", BundleUtil.getString(Bundle.ACADEMIC, "label.conclusionGrade"),
                precedentDegreeInformation.getConclusionGrade());
        formatter.format("\n");
        formatter.format("%s: %s\n",
                BundleUtil.getString(Bundle.ACADEMIC, "label.SecondCycleIndividualCandidacy.professionalStatus"),
                StringUtils.isEmpty(getProfessionalStatus()) ? StringUtils.EMPTY : getProfessionalStatus());
        formatter.format("%s: %s\n",
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.student.PrecedentDegreeInformation

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.