Package org.fenixedu.academic.domain.degreeStructure

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


    static public CurriculumGroup createGroup(final CurriculumGroup parentGroup, final CourseGroup courseGroup,
            final ExecutionSemester executionSemester) {

        if (courseGroup.isCycleCourseGroup()) {
            final CycleCourseGroup cycleCourseGroup = (CycleCourseGroup) courseGroup;

            if (isExternalCycle(parentGroup, cycleCourseGroup)) {
                return (executionSemester != null) ?

                new ExternalCurriculumGroup((RootCurriculumGroup) parentGroup, cycleCourseGroup, executionSemester) :
View Full Code Here


    }

    private void checkIfCycleCourseGroupIsInDestinationAffinitiesOfSource(final StudentCurricularPlan studentCurricularPlan,
            final CourseGroup courseGroup) {

        final CycleCourseGroup cycleCourseGroup = (CycleCourseGroup) courseGroup;
        final CycleCourseGroup sourceAffinityCycleCourseGroup =
                studentCurricularPlan.getDegreeCurricularPlan().getCycleCourseGroup(
                        cycleCourseGroup.getCycleType().getSourceCycleAffinity());

        if (!sourceAffinityCycleCourseGroup.getDestinationAffinitiesSet().contains(cycleCourseGroup)) {
            throw new DomainException(
                    "error.studentCurriculum.ExternalCurriculumGroup.cycle.course.group.does.not.belong.to.afinity.of.source");
        }
    }
View Full Code Here

        }
    }

    protected IDegreeModuleToEvaluate buildDegreeModuleToEnrolForCycle(StudentCurricularPlan scp, CycleType cycleType,
            ExecutionSemester semester) {
        final CycleCourseGroup cycleCourseGroup = scp.getCycleCourseGroup(cycleType);
        final Context context = cycleCourseGroup.getParentContextsByExecutionSemester(semester).iterator().next();
        return new DegreeModuleToEnrol(scp.getRoot(), context, semester);
    }
View Full Code Here

        return result;
    }

    public Collection<CycleCourseGroup> getDestinationAffinities(final CycleType sourceCycleType) {
        if (getRoot() != null) {
            final CycleCourseGroup cycleCourseGroup = getRoot().getCycleCourseGroup(sourceCycleType);
            if (cycleCourseGroup != null) {
                return cycleCourseGroup.getDestinationAffinitiesSet();
            }
        }
        return Collections.emptyList();
    }
View Full Code Here

    public CycleCourseGroup getCourseGroup(String courseGroupID) {
        return (CycleCourseGroup) FenixFramework.getDomainObject(courseGroupID);
    }

    public List<CycleCourseGroupInformation> getCycleCourseGroupInformationList() {
        CycleCourseGroup courseGroup = getCourseGroup(getCourseGroupID());
        return courseGroup.getCycleCourseGroupInformationOrderedByExecutionYear();
    }
View Full Code Here

            CycleCourseGroupInformation information = getInformation();

            if (information != null) {
                information.edit(getInformationExecutionYear(), getGraduateTitleSuffix(), getGraduateTitleSuffixEn());
            } else {
                CycleCourseGroup courseGroup = getCourseGroup(getCourseGroupID());
                courseGroup.createCycleCourseGroupInformation(getInformationExecutionYear(), getGraduateTitleSuffix(),
                        getGraduateTitleSuffixEn());
            }

            this.addInfoMessage(BundleUtil.getString(Bundle.BOLONHA, "cycleCourseGroupInformationEdit"));
View Full Code Here

        CycleType cycleType = getRequestedCycle();
        List<DegreeCurricularPlan> degreeCurricularPlansForYear =
                getDegree().getDegreeCurricularPlansForYear(getConclusionYear());
        if (degreeCurricularPlansForYear.size() == 1) {
            DegreeCurricularPlan dcp = degreeCurricularPlansForYear.iterator().next();
            CycleCourseGroup cycleCourseGroup = dcp.getCycleCourseGroup(cycleType);
            if (cycleCourseGroup != null) {
                return cycleCourseGroup.getGraduateTitle(getConclusionYear(), getLanguage());
            }
        }

        StringBuilder result = new StringBuilder();
        Degree degree = getDegree();
View Full Code Here

        ExecutionYear conclusionYear = registrationConclusionBean.getConclusionYear();

        List<DegreeCurricularPlan> degreeCurricularPlansForYear = getDegree().getDegreeCurricularPlansForYear(conclusionYear);
        if (degreeCurricularPlansForYear.size() == 1) {
            DegreeCurricularPlan dcp = degreeCurricularPlansForYear.iterator().next();
            CycleCourseGroup cycleCourseGroup = dcp.getCycleCourseGroup(cycleType);
            if (cycleCourseGroup != null) {
                return cycleCourseGroup.getGraduateTitle(conclusionYear, getLanguage());
            }
        }

        StringBuilder result = new StringBuilder();
        Degree degree = getDegree();
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.degreeStructure.CycleCourseGroup

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.