Examples of DegreeType


Examples of org.fenixedu.academic.domain.degree.DegreeType

        final Curriculum curriculum = Curriculum.createEmpty(this, executionYear);
        if (!wasCreated(when)) {
            return curriculum;
        }

        final DegreeType degreeType = getDegreeType();
        if (degreeType.hasAnyCycleTypes()) {
            for (final CycleCurriculumGroup cycleCurriculumGroup : getInternalCycleCurriculumGroups()) {
                curriculum.add(cycleCurriculumGroup.getCurriculum(when, executionYear));
            }
        } else {
            curriculum.add(super.getCurriculum(when, executionYear));
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        return result;
    }

    public boolean isMasterDegreeDFAOrDEAOnly() {
        for (final CurricularCourse curricularCourse : getAssociatedCurricularCoursesSet()) {
            DegreeType degreeType = curricularCourse.getDegreeCurricularPlan().getDegree().getDegreeType();
            if (!degreeType.equals(DegreeType.MASTER_DEGREE) && !degreeType.equals(DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA)
                    && !degreeType.equals(DegreeType.BOLONHA_SPECIALIZATION_DEGREE)
                    && !degreeType.equals(DegreeType.BOLONHA_ADVANCED_SPECIALIZATION_DIPLOMA)) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    public String getDegreeName() {
        return getDegree().getNameFor(getStartExecutionYear()).getContent();
    }

    final public String getDegreeDescription() {
        final DegreeType degreeType = getDegreeType();
        return getDegreeDescription(degreeType.hasExactlyOneCycleType() ? degreeType.getCycleType() : getLastConcludedCycleType());
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    final public String getDegreeDescription(ExecutionYear executionYear, final CycleType cycleType, final Locale locale) {
        final StringBuilder res = new StringBuilder();

        final Degree degree = getDegree();
        final DegreeType degreeType = degree.getDegreeType();
        if (getDegreeType() != DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA && cycleType != null) {
            res.append(cycleType.getDescription(locale)).append(",");
            res.append(" ").append(BundleUtil.getString(Bundle.ACADEMIC, locale, "label.of.the.male")).append(" ");
        }

        if (!isEmptyDegree() && !degreeType.isEmpty()) {
            res.append(degreeType.getPrefix(locale));
            res.append(degreeType.getFilteredName(locale).toUpperCase());

            if (getDegreeType() == DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA && cycleType != null) {
                res.append(" (").append(cycleType.getDescription(locale)).append(")");
            }
            res.append(" ").append(BundleUtil.getString(Bundle.ACADEMIC, locale, "label.in")).append(" ");
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    final public DegreeType getDegreeType() {
        return getDegree() == null ? null : getDegree().getDegreeType();
    }

    final public boolean isBolonha() {
        DegreeType degreeType = getDegreeType();
        return degreeType != null && degreeType.isBolonhaType();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    final public boolean isDegreeOrBolonhaDegreeOrBolonhaIntegratedMasterDegree() {
        return getDegreeType().isDegreeOrBolonhaDegreeOrBolonhaIntegratedMasterDegree();
    }

    final public boolean isMasterDegreeOrBolonhaMasterDegree() {
        final DegreeType degreeType = getDegreeType();
        return (degreeType == DegreeType.MASTER_DEGREE || degreeType == DegreeType.BOLONHA_MASTER_DEGREE);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    public StudentReportPredicate setBean(HttpServletRequest request) {
        final String executionYearIDString = request.getParameter("executionYearID");
        final ExecutionYear executionYear = FenixFramework.getDomainObject(executionYearIDString);

        final String degreeTypeString = request.getParameter("degreeType");
        final DegreeType degreeType = degreeTypeString == null ? null : DegreeType.valueOf(degreeTypeString);

        final String concludedString = request.getParameter("concluded");
        final boolean concluded = Boolean.parseBoolean(concludedString);

        final String activeString = request.getParameter("active");
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

                        @Override
                        public Object transform(Object input) {
                            CurricularCourse curricularCourse = (CurricularCourse) input;
                            InfoCurricularCourse infoCurricularCourse = InfoCurricularCourse.newInfoFromDomain(curricularCourse);
                            DegreeType degreeType = curricularCourse.getDegreeCurricularPlan().getDegree().getDegreeType();
                            if (degreeType.equals(DegreeType.DEGREE)) {
                                detailedProfessorship.setMasterDegreeOnly(Boolean.FALSE);
                            }
                            return infoCurricularCourse;
                        }
                    });
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        final HasExecutionYear hasExecutionYear = (HasExecutionYear) source;
        final HasDegreeType hasDegreeType = (HasDegreeType) source;
        final ExecutionYear executionYear = hasExecutionYear.getExecutionYear();
        if (executionYear != null) {
            final DegreeType degreeType = hasDegreeType.getDegreeType();
            for (final ExecutionDegree executionDegree : executionYear.getExecutionDegreesSet()) {
                if (degreeType == null || match(degreeType, executionDegree)) {
                    executionDegrees.add(executionDegree);
                }
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

                .filter(DegreesToCreateRegistration::canCreateStudent).sorted(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID)
                .collect(Collectors.toSet());
    }

    protected static boolean canCreateStudent(Degree degree) {
        final DegreeType degreeType = degree.getDegreeType();
        return degreeType.canCreateStudent() && !degreeType.canCreateStudentOnlyWithCandidacy();
    }
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.