Examples of Degree


Examples of org.fenixedu.academic.domain.Degree

    public MobilityQuota determineMobilityQuota() {
        MobilityApplicationPeriod period = (MobilityApplicationPeriod) getCandidacyProcess().getCandidacyPeriod();
        MobilityAgreement agreement = getMobilityStudentDataBean().getMobilityAgreement();

        Degree selectedDegree = null;

        if (getDegree() == null) {
            if (getSelectedCurricularCourses() != null && !getSelectedCurricularCourses().isEmpty()) {
                selectedDegree = getMostDominantDegreeFromCourses();
            } else {
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

    protected void fillInstitution() {
        addParameter("institutionName", neverNull(Bennu.getInstance().getInstitutionUnit().getName()).toUpperCase());
    }

    protected void fillDegree() {
        final Degree degree = thesis.getDegree();
        addParameter("studentDegreeName", neverNull(degree.getNameI18N(thesis.getExecutionYear()).toString()));
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

    }

    final private String getDiplomaDescription() {
        final StringBuilder res = new StringBuilder();

        final Degree degree = getDocumentRequest().getDegree();
        final DegreeType degreeType = degree.getDegreeType();
        if (degreeType.getQualifiesForGraduateTitle()) {
            res.append(", ");
            if (getDocumentRequest().getRegistryCode() != null) {
                res.append(BundleUtil.getString(Bundle.ACADEMIC, getDocumentRequest().getLanguage(),
                        "documents.DegreeFinalizationCertificate.registryNumber"));
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

            country = person.getCountry().getCountryNationality().getContent(getLanguage()).toLowerCase();
        } else {
            throw new DomainException("error.personWithoutParishOfBirth");
        }

        Degree degree = ((RegistryDiplomaRequest) getDocumentRequest()).getDegree();
        ExecutionYear year = ((RegistryDiplomaRequest) getDocumentRequest()).getConclusionYear();

        addParameter(
                "secondParagraph",
                MessageFormat.format(secondParagraph, studentGender,
                        BundleUtil.getString(Bundle.ENUMERATION, getLocale(), person.getIdDocumentType().getName()),
                        person.getDocumentIdNumber(), country, getCycleDescription(), degree.getFilteredName(year, getLocale())));
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

    protected String getCycleDescription() {

        final StringBuilder res = new StringBuilder();
        RegistryDiplomaRequest request = (RegistryDiplomaRequest) getDocumentRequest();
        CycleType cycle = request.getRequestedCycle();
        Degree degree = request.getDegree();
        final DegreeType degreeType = request.getDegreeType();
        if (degreeType.hasAnyCycleTypes()) {
            res.append(cycle.getDescription(getLocale()));
            res.append(" ").append(BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.of.both")).append(" ");
        }
        if (!degree.isEmpty()) {
            res.append(degreeType.getFilteredName(getLocale()));
        }
        return res.toString();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

        final MessageResources messages = MessageResources.getMessageResources(Bundle.DEGREE);

        final List<LabelValueBean> executionDegreeLabelValueBeans = new ArrayList<LabelValueBean>();
        for (final ExecutionDegree executionDegree : ExecutionDegree.filterByAcademicInterval(academicInterval)) {
            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            final Degree degree = degreeCurricularPlan.getDegree();
            String part =
                    addAnotherInfoToLabel(executionDegree, academicInterval) ? " - "
                            + executionDegree.getDegreeCurricularPlan().getName() : "";
            executionDegreeLabelValueBeans.add(new LabelValueBean(enumMessages.getMessage(getLocale(request), degree
                    .getDegreeType().toString())
                    + " "
                    + messages.getMessage(getLocale(request), "public.degree.information.label.in")
                    + " "
                    + degree.getNameFor(academicInterval).getContent() + part, executionDegree.getExternalId().toString()));
        }
        Collections.sort(executionDegreeLabelValueBeans, new BeanComparator("label"));
        request.setAttribute("executionDegreeLabelValueBeans", executionDegreeLabelValueBeans);

        return mapping.findForward("showForm");
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

        return mapping.findForward("showForm");
    }

    private boolean addAnotherInfoToLabel(ExecutionDegree executionDegreeToTest, AcademicInterval academicInterval) {
        Degree degreeToTest = executionDegreeToTest.getDegree();
        for (ExecutionDegree executionDegree : ExecutionDegree.filterByAcademicInterval(academicInterval)) {
            if (degreeToTest.equals(executionDegree.getDegree()) && !(executionDegreeToTest.equals(executionDegree))) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

        final Map<ExecutionDegree, Map<Integer, Set<ExecutionCourse>>> executionCoursesByCurricularYearByExecutionDegree =
                new TreeMap<ExecutionDegree, Map<Integer, Set<ExecutionCourse>>>(new Comparator<ExecutionDegree>() {
                    @Override
                    public int compare(ExecutionDegree executionDegree1, ExecutionDegree executionDegree2) {
                        final Degree degree1 = executionDegree1.getDegreeCurricularPlan().getDegree();
                        final Degree degree2 = executionDegree2.getDegreeCurricularPlan().getDegree();
                        return (degree1.getDegreeType() == degree2.getDegreeType()) ? degree1.getNome().compareTo(
                                degree2.getNome()) : degree1.getDegreeType().compareTo(degree2.getDegreeType());
                    }
                });
        for (final ExecutionDegree executionDegree : ExecutionDegree.filterByAcademicInterval(academicInterval)) {
            if (executionDegreeID == null || executionDegreeID.length() == 0
                    || executionDegreeID.equals(executionDegree.getExternalId().toString())) {
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

                                Collectors.toSet());
        Set<DegreeType> accessibleDegreeTypes =
                AcademicAccessRule.getDegreeTypesAccessibleToFunction(AcademicOperationType.SERVICE_REQUESTS,
                        Authenticate.getUser()).collect(Collectors.toSet());

        final Degree chosenDegree = degreeSearchBean.getDegree();
        final DegreeType chosenDegreeType = degreeSearchBean.getDegreeType();
        final ExecutionYear chosenExecutionYear = degreeSearchBean.getExecutionYear();

        final AcademicServiceRequestType chosenServiceRequestType = requestSearchBean.getAcademicServiceRequestType();
        final DocumentRequestType chosenDocumentRequestType = requestSearchBean.getChosenDocumentRequestType();
View Full Code Here

Examples of org.fenixedu.academic.domain.Degree

        final Set<RegistrationAcademicServiceRequest> requestList = search(degreeSearchBean, requestSearchBean);

        try {
            String filename = getResourceMessage("label.requests");

            Degree degree = degreeSearchBean.getDegree();
            DegreeType degreeType = degreeSearchBean.getDegreeType();
            ExecutionYear executionYear = degreeSearchBean.getExecutionYear();
            if (degree != null) {
                filename += "_" + degree.getNameFor(executionYear).getContent().replace(' ', '_');
            } else if (degreeType != null) {
                filename += "_" + degreeType.getLocalizedName().replace(' ', '_');
            }
            filename += "_" + executionYear.getYear();
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.