Examples of CycleType


Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

                case REGISTRY_DIPLOMA_REQUEST:
                    addCell("Ciclo", BundleUtil.getString(Bundle.ENUMERATION, ((IRegistryDiplomaRequest) document)
                            .getRequestedCycle().name()));
                    break;
                case DIPLOMA_REQUEST:
                    CycleType cycle = ((IDiplomaRequest) document).getWhatShouldBeRequestedCycle();
                    addCell("Ciclo", cycle != null ? BundleUtil.getString(Bundle.ENUMERATION, cycle.name()) : null);
                    break;
                case DIPLOMA_SUPPLEMENT_REQUEST:
                    addCell("Ciclo", BundleUtil.getString(Bundle.ENUMERATION, ((IDiplomaSupplementRequest) document)
                            .getRequestedCycle().name()));
                    break;
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

        final SortedSet<CycleType> concludedCycles = new TreeSet<CycleType>(getConcludedCycles(executionYear));

        if (concludedCycles.isEmpty()) {
            return getLastStudentCurricularPlan().getFirstOrderedCycleCurriculumGroup().getCycleType();
        } else {
            CycleType result = null;
            for (CycleType cycleType : concludedCycles) {
                final CycleCurriculumGroup group = getLastStudentCurricularPlan().getCycle(cycleType);
                if (group.hasEnrolment(executionYear)) {
                    result = cycleType;
                }
            }

            if (result != null) {
                return result;
            }

            final CycleType last = concludedCycles.last();
            return last.hasNext() && getDegreeType().hasCycleTypes(last.getNext()) ? last.getNext() : last;
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

    protected void createCandidacyPrecedentDegreeInformation(
            final IndividualCandidacyProcessWithPrecedentDegreeInformationBean bean,
            final StudentCurricularPlan studentCurricularPlan) {

        if (studentCurricularPlan.isBolonhaDegree()) {
            final CycleType cycleType;

            if (studentCurricularPlan.hasConcludedAnyInternalCycle()) {
                cycleType = studentCurricularPlan.getLastConcludedCycleCurriculumGroup().getCycleType();
            } else {
                cycleType = studentCurricularPlan.getLastOrderedCycleCurriculumGroup().getCycleType();
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

        return aprovedEnrolments;
    }

    private void filter(final SortedSet<Enrolment> aprovedEnrolments, DocumentRequestCreateBean documentRequestCreateBean) {
        final CycleType cycleType = documentRequestCreateBean.getRequestedCycle();
        if (cycleType != null) {
            final Iterator<Enrolment> elements = aprovedEnrolments.iterator();
            while (elements.hasNext()) {
                final Enrolment enrolment = elements.next();
                if (!hasCycleType(enrolment, cycleType) && !isSourceInAnyCycleGroup(enrolment, cycleType)) {
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

        for (Registration registration : student.getConcludedRegistrations()) {
            if (!registration.getDegreeType().isEmpty() && registration.isBolonha()
                    && registration.isAllowedToManageRegistration()) {
                RegistrationConclusionBean conclusionBean = null;
                CycleType cycleType = registration.getDegreeType().getLastOrderedCycleType();
                if (cycleType != null) {
                    conclusionBean = new RegistrationConclusionBean(registration, cycleType);
                } else {
                    conclusionBean = new RegistrationConclusionBean(registration);
                }
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

                        }
                    }
                }
            } else {
                final CurriculumGroup group = (CurriculumGroup) module;
                final CycleType cycleForChild =
                        group.isCycleCurriculumGroup() ? ((CycleCurriculumGroup) group).getCycleType() : cycleType;
                for (final CurriculumModule child : group.getCurriculumModulesSet()) {
                    calculateGrade(cycleForChild, child);
                }
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

            return;
        }
        CycleCurriculumGroup sgroup =
                Collections.min(getStudentCurricularPlan().getCycleCurriculumGroups(),
                        CycleCurriculumGroup.COMPARATOR_BY_CYCLE_TYPE_AND_ID);
        CycleType cycleIter = sgroup.getCycleType().getPrevious();
        while (cycleIter != null) {
            if (getStudentCurricularPlan().getDegreeCurricularPlan().getCycleCourseGroup(cycleIter) != null) {
                sumEctsCredits = sumEctsCredits.add(new BigDecimal(cycleIter.getEctsCredits()));
            }
            cycleIter = cycleIter.getPrevious();
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

        if (!hasCurriculumModule() || !isBolonha()) {
            return null;
        }

        final CurriculumModule module = getCurriculumModule();
        final CycleType cycleType = module.isCycleCurriculumGroup() ? ((CycleCurriculumGroup) module).getCycleType() : null;
        return cycleType;
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

    }

    @Override
    final public String getDescription() {
        final DegreeType degreeType = getDegreeType();
        final CycleType requestedCycle = getRequestedCycle();

        return getDescription(getAcademicServiceRequestType(),
                getDocumentRequestType().getQualifiedName() + "." + degreeType.name()
                        + (degreeType.isComposite() ? "." + requestedCycle.name() : ""));
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.CycleType

    }

    @Override
    final public String getDescription() {
        final DegreeType degreeType = getDegreeType();
        final CycleType requestedCycle = getRequestedCycle();

        return getDescription(getAcademicServiceRequestType(),
                getDocumentRequestType().getQualifiedName() + "." + degreeType.name()
                        + (degreeType.isComposite() ? "." + requestedCycle.name() : ""));
    }
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.