Package org.fenixedu.academic.domain.degreeStructure

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


    @Override
    protected void checkInitConstraints(CurriculumGroup parent, CourseGroup courseGroup) {
        super.checkInitConstraints(parent, courseGroup);

        final BranchCourseGroup branchCourseGroup = (BranchCourseGroup) courseGroup;

        final CycleCurriculumGroup cycle = parent.getParentCycleCurriculumGroup();
        if (cycle != null && cycle.hasBranchCurriculumGroup(branchCourseGroup.getBranchType())) {
            throw new DomainException("error.BranchCurriculumGroup.parent.cycle.cannot.have.another.branch.with.same.type");
        }
    }
View Full Code Here


        return new CourseGroup(parentCourseGroup, name, nameEn, begin, end);
    }

    public BranchCourseGroup createBranchCourseGroup(final CourseGroup parentCourseGroup, final String name, final String nameEn,
            final BranchType branchType, final ExecutionSemester begin, final ExecutionSemester end) {
        return new BranchCourseGroup(parentCourseGroup, name, nameEn, branchType, begin, end);
    }
View Full Code Here

TOP

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

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.