Package org.fenixedu.academic.domain.curricularPeriod

Examples of org.fenixedu.academic.domain.curricularPeriod.CurricularPeriod


        courseGroup.addContext(curricularCourse, curricularPeriod, beginExecutionPeriod, endExecutionPeriod);
    }

    private static CurricularPeriod getCurricularPeriod(final DegreeCurricularPlan degreeCurricularPlan, final Integer year,
            final Integer semester) {
        CurricularPeriod curricularPeriod = degreeCurricularPlan.getCurricularPeriodFor(year, semester);
        if (curricularPeriod == null) {
            curricularPeriod = degreeCurricularPlan.createCurricularPeriodFor(year, semester);
        }
        return curricularPeriod;
    }
View Full Code Here


    private static CurricularPeriod readCurricularPeriod(CurricularCourseArgs curricularCourseArgs,
            DegreeCurricularPlan degreeCurricularPlan) {
        // TODO this is not generic thinking... must find a way to abstract from
        // years/semesters
        CurricularPeriod curricularPeriod =
                degreeCurricularPlan.getCurricularPeriodFor(curricularCourseArgs.getYear(), curricularCourseArgs.getSemester());
        if (curricularPeriod == null) {
            curricularPeriod =
                    degreeCurricularPlan.createCurricularPeriodFor(curricularCourseArgs.getYear(),
                            curricularCourseArgs.getSemester());
View Full Code Here

    @Atomic
    public static void run(CurricularCourse curricularCourse, CourseGroup courseGroup, String beginExecutionPeriodID,
            String endExecutionPeriodID, Integer year, Integer semester) throws FenixServiceException {

        CurricularPeriod degreeCurricularPeriod = courseGroup.getParentDegreeCurricularPlan().getDegreeStructure();

        // ********************************************************
        /*
         * TODO: Important - change this code (must be generic to support
         * several curricularPeriodInfoDTOs, instead of year and semester)
         */
        CurricularPeriod curricularPeriod = null;
        CurricularPeriodInfoDTO curricularPeriodInfoYear = null;
        if (courseGroup.getParentDegreeCurricularPlan().getDegree().getDegreeType().getYears() > 1) {
            curricularPeriodInfoYear = new CurricularPeriodInfoDTO(year, AcademicPeriod.YEAR);
        }
        final CurricularPeriodInfoDTO curricularPeriodInfoSemester =
View Full Code Here

    @Atomic
    public static void run(CurricularCourse curricularCourse, Context context, CourseGroup courseGroup, Integer year,
            Integer semester, String beginExecutionPeriodID, String endExecutionPeriodID) {

        final CurricularPeriod degreeCurricularPeriod =
                context.getParentCourseGroup().getParentDegreeCurricularPlan().getDegreeStructure();

        // ********************************************************
        /*
         * TODO: Important - change this code (must be generic to support
         * several curricularPeriodInfoDTOs, instead of year and semester)
         */
        CurricularPeriod curricularPeriod = null;
        CurricularPeriodInfoDTO curricularPeriodInfoYear = null;
        if (courseGroup.getParentDegreeCurricularPlan().getDegree().getDegreeType().getYears() > 1) {
            curricularPeriodInfoYear = new CurricularPeriodInfoDTO(year, AcademicPeriod.YEAR);
        }
        final CurricularPeriodInfoDTO curricularPeriodInfoSemester =
View Full Code Here

    private void fillStudiesPlan(List<Context> contextsWithCurricularCourses, final Spreadsheet spreadsheet)
            throws FenixServiceException {
        for (final Context contextWithCurricularCourse : contextsWithCurricularCourses) {
            CurricularCourse curricularCourse = (CurricularCourse) contextWithCurricularCourse.getChildDegreeModule();
            CurricularPeriod curricularPeriod = contextWithCurricularCourse.getCurricularPeriod();
            String parentCourseGroupName = getContextPaths().get(contextWithCurricularCourse);

            fillCurricularCourse(spreadsheet, curricularCourse, curricularPeriod, parentCourseGroupName);
            if (curricularCourse.isAnual()) {
                fillCurricularCourse(spreadsheet, curricularCourse, curricularPeriod.getNext(), parentCourseGroupName);
            }
        }
    }
View Full Code Here

    @Atomic
    public static void run(CreateCurricularCourseArgs curricularCourseArgs) throws FenixServiceException {

        DegreeCurricularPlan degreeCurricularPlan = readDegreeCurricularPlan(curricularCourseArgs);
        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) {
View Full Code Here

    @Atomic
    public static void run(CreateOptionalCurricularCourseArgs curricularCourseArgs) throws FenixServiceException {

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

        degreeCurricularPlan.createOptionalCurricularCourse(parentCourseGroup, curricularCourseArgs.getName(),
                curricularCourseArgs.getNameEn(), CurricularStage.DRAFT, curricularPeriod, beginExecutionPeriod,
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.curricularPeriod.CurricularPeriod

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.