Examples of CourseGroup


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

        protected void generateCourseGroupCycles(final HtmlBlockContainer blockContainer,
                final StudentCurricularPlan studentCurricularPlan, final ExecutionSemester executionSemester) {
            if (studentCurricularPlan.isBolonhaDegree()) {
                for (final CycleType cycleType : studentCurricularPlan.getDegreeType().getSupportedCyclesToEnrol()) {
                    final CourseGroup courseGroup = getCourseGroupWithCycleType(studentCurricularPlan, cycleType);
                    if (courseGroup != null) {
                        generateCourseGroups(blockContainer, studentCurricularPlan, courseGroup, executionSemester, 0);
                    }
                }
            } else {
View Full Code Here

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

    private Object readParentCourseGroups(String selectedCurricularRuleType) {
        final List<SelectItem> result = new ArrayList<SelectItem>();
        if (selectedCurricularRuleType != null && !selectedCurricularRuleType.equals(NO_SELECTION_STRING)) {
            for (final Context context : getDegreeModule().getParentContextsSet()) {
                final CourseGroup courseGroup = context.getParentCourseGroup();
                if (!courseGroup.isRoot()) {
                    result.add(new SelectItem(courseGroup.getExternalId(), courseGroup.getName()));
                }
            }
            Collections.sort(result, new BeanComparator("label"));
        }
        result.add(0, new SelectItem(NO_SELECTION_STRING, BundleUtil.getString(Bundle.BOLONHA, "all")));
View Full Code Here

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

        return resultLabels;
    }

    @Override
    protected ExecutionSemester getMinimumExecutionPeriod() {
        CourseGroup courseGroup = getCourseGroup(getParentCourseGroupID());;
        if (courseGroup == null) {
            final Context context = getContext(getContextID());
            if (context != null) {
                courseGroup = context.getParentCourseGroup();
            }
        }
        return (courseGroup == null) ? null : courseGroup.getMinimumExecutionPeriod();
    }
View Full Code Here

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

    }

    private static CurricularRule createMinimumNumberOfCreditsToEnrol(DegreeModule toApplyRule, ExecutionSemester begin,
            ExecutionSemester end, CurricularRuleParametersDTO parametersDTO) {

        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());

        return new MinimumNumberOfCreditsToEnrol(toApplyRule, contextCourseGroup, begin, end, parametersDTO.getMinimumCredits());
    }
View Full Code Here

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

    }

    private static CurricularRule createEvenOdd(DegreeModule toApplyRule, ExecutionSemester begin, ExecutionSemester end,
            CurricularRuleParametersDTO parametersDTO) {

        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());

        return new EvenOddRule(toApplyRule, contextCourseGroup, parametersDTO.getCurricularPeriodInfoDTO().getOrder(),
                parametersDTO.getCurricularPeriodInfoDTO().getPeriodType(), parametersDTO.getEven(), begin, end);
View Full Code Here

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

    }

    private static CurricularRule createAnyCurricularCourse(DegreeModule toApplyRule, ExecutionSemester begin,
            ExecutionSemester end, CurricularRuleParametersDTO parametersDTO) {

        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());
        final Degree degree = FenixFramework.getDomainObject(parametersDTO.getSelectedDegreeID());
        final DepartmentUnit departmentUnit =
                (DepartmentUnit) FenixFramework.getDomainObject(parametersDTO.getSelectedDepartmentUnitID());
View Full Code Here

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

    private static CurricularRule createExclusiveness(DegreeModule firstExclusiveDegreeModule, ExecutionSemester begin,
            ExecutionSemester end, CurricularRuleParametersDTO parametersDTO) {

        final DegreeModule secondExclusiveDegreeModule =
                FenixFramework.getDomainObject(parametersDTO.getSelectedDegreeModuleID());
        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());

        final Exclusiveness firstRule =
                new Exclusiveness(firstExclusiveDegreeModule, secondExclusiveDegreeModule, contextCourseGroup, begin, end);
View Full Code Here

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

    private static CurricularRule createRestrictionBetweenDegreeModules(DegreeModule toApplyRule, ExecutionSemester begin,
            ExecutionSemester end, CurricularRuleParametersDTO parametersDTO) {

        final DegreeModule precedenceDegreeModule = FenixFramework.getDomainObject(parametersDTO.getSelectedDegreeModuleID());
        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());

        return new RestrictionBetweenDegreeModules(toApplyRule, precedenceDegreeModule, parametersDTO.getMinimumCredits(),
                contextCourseGroup, begin, end);
    }
View Full Code Here

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

    }

    private static CurricularRule createEnrolmentToBeApprovedByCoordinator(DegreeModule toApplyRule, ExecutionSemester begin,
            ExecutionSemester end, CurricularRuleParametersDTO parametersDTO) {

        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());

        return new EnrolmentToBeApprovedByCoordinator((CurricularCourse) toApplyRule, contextCourseGroup, begin, end);
    }
View Full Code Here

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

    }

    private static CurricularRule createCreditsLimit(DegreeModule toApplyRule, ExecutionSemester begin, ExecutionSemester end,
            CurricularRuleParametersDTO parametersDTO) {

        final CourseGroup contextCourseGroup =
                (CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());

        return new CreditsLimit(toApplyRule, contextCourseGroup, begin, end, parametersDTO.getMinimumCredits(),
                parametersDTO.getMaximumCredits());
    }
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.