Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.CompetenceCourse


        competenceCourse.changeCurricularStage(curricularStage);
    }

    protected void run(String competenceCourseID, String year, String title, String authors, String reference,
            BibliographicReferenceType bibliographicReferenceType, String url) throws FenixServiceException {
        final CompetenceCourse competenceCourse = readCompetenceCourse(competenceCourseID);
        competenceCourse.createBibliographicReference(year, title, authors, reference, buildUrl(url), bibliographicReferenceType);
    }
View Full Code Here


    }

    protected void run(String competenceCourseID, Integer bibliographicReferenceID, String year, String title, String authors,
            String reference, BibliographicReferenceType bibliographicReferenceType, String url) throws FenixServiceException {

        final CompetenceCourse competenceCourse = readCompetenceCourse(competenceCourseID);
        competenceCourse.editBibliographicReference(bibliographicReferenceID, year, title, authors, reference, buildUrl(url),
                bibliographicReferenceType);
    }
View Full Code Here

        competenceCourse.editBibliographicReference(bibliographicReferenceID, year, title, authors, reference, buildUrl(url),
                bibliographicReferenceType);
    }

    protected void run(String competenceCourseID, Integer bibliographicReferenceID) throws FenixServiceException {
        final CompetenceCourse competenceCourse = readCompetenceCourse(competenceCourseID);
        competenceCourse.deleteBibliographicReference(bibliographicReferenceID);
    }
View Full Code Here

        final CompetenceCourse competenceCourse = readCompetenceCourse(competenceCourseID);
        competenceCourse.deleteBibliographicReference(bibliographicReferenceID);
    }

    protected void run(String competenceCourseID, Integer oldPosition, Integer newPosition) throws FenixServiceException {
        final CompetenceCourse competenceCourse = readCompetenceCourse(competenceCourseID);
        competenceCourse.switchBibliographicReferencePosition(oldPosition, newPosition);
    }
View Full Code Here

        final CompetenceCourse competenceCourse = readCompetenceCourse(competenceCourseID);
        competenceCourse.switchBibliographicReferencePosition(oldPosition, newPosition);
    }

    private CompetenceCourse readCompetenceCourse(String competenceCourseID) throws FenixServiceException {
        final CompetenceCourse competenceCourse = FenixFramework.getDomainObject(competenceCourseID);
        if (competenceCourse == null) {
            throw new FenixServiceException("error.noCompetenceCourse");
        }
        return competenceCourse;
    }
View Full Code Here

        CourseGroup parentCourseGroup = readParentCourseGroup(curricularCourseArgs);
        CurricularPeriod curricularPeriod = readCurricularPeriod(curricularCourseArgs, degreeCurricularPlan);
        ExecutionSemester beginExecutionPeriod = readBeginExecutionPeriod(curricularCourseArgs);
        ExecutionSemester endExecutionPeriod = readEndExecutionPeriod(curricularCourseArgs);

        final CompetenceCourse competenceCourse = FenixFramework.getDomainObject(curricularCourseArgs.getCompetenceCourseID());
        if (competenceCourse == null) {
            throw new FenixServiceException("error.noCompetenceCourse");
        }

        // TODO this is not generic thinking... must find a way to abstract from
        // years/semesters
        if (competenceCourse.isAnual()) {
            degreeCurricularPlan
                    .createCurricularPeriodFor(curricularCourseArgs.getYear(), curricularCourseArgs.getSemester() + 1);
        }

        degreeCurricularPlan.createCurricularCourse(curricularCourseArgs.getWeight(), curricularCourseArgs.getPrerequisites(),
View Full Code Here

                addErrorMessage(BundleUtil.getString(Bundle.BOLONHA, "error.mustSetCompetenceCourseType"));
            }

            if (valid) {

                final CompetenceCourse competenceCourse =
                        CreateCompetenceCourse.run(getName(), getNameEn(), null, getBasic(), RegimeType.SEMESTRIAL,
                                getEnumCompetenceCourseLevel(), getEnumCompetenceCourseType(), getCompetenceCourseGroupUnitID(),
                                getExecutionSemester());
                setCompetenceCourse(competenceCourse);
                return "setCompetenceCourseLoad";
View Full Code Here

            final Set<CompetenceCourse> competenceCourses = executionCourse.getCompetenceCourses();
            for (Registration registration : user.getPerson().getStudent().getRegistrationsSet()) {
                // students of any degree sharing the same competence of the given execution course
                for (StudentCurricularPlan studentCurricularPlan : registration.getStudentCurricularPlansSet()) {
                    for (Enrolment enrolment : studentCurricularPlan.getEnrolmentsSet()) {
                        CompetenceCourse competenceCourse = enrolment.getCurricularCourse().getCompetenceCourse();
                        if (competenceCourses.contains(competenceCourse)) {
                            return true;
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.CompetenceCourse

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.