Package org.fenixedu.academic.domain.curricularPeriod

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


        }
        return stringBuilder.toString();
    }

    private ExecutionSemester getExecutionSemester(final Context context, final ExecutionYear executionYear) {
        final CurricularPeriod curricularPeriod = context.getCurricularPeriod();
        if (curricularPeriod.getAcademicPeriod().getName().equals("SEMESTER")) {
            return (curricularPeriod.getChildOrder().intValue() == 1) ? executionYear.getFirstExecutionPeriod() : executionYear
                    .getLastExecutionPeriod();
        } else {
            return executionYear.getFirstExecutionPeriod();
        }
    }
View Full Code Here


            return executionYear.getFirstExecutionPeriod();
        }
    }

    private void setSemesterAndDuration(final Row row, final Context context) {
        final CurricularPeriod curricularPeriod = context.getCurricularPeriod();
        if (curricularPeriod.getAcademicPeriod().getName().equals("SEMESTER")) {
            row.setCell(curricularPeriod.getChildOrder());
            row.setCell("Semestral");
        } else {
            row.setCell(" ");
            row.setCell("Anual");
        }
View Full Code Here

    public void setOrder(Integer order) {
        super.setChildOrder(order);
    }

    public boolean containsCurricularYear(final Integer curricularYear) {
        final CurricularPeriod firstCurricularPeriod = getCurricularPeriod().getParent();
        final int firstCurricularPeriodOrder = firstCurricularPeriod.getAbsoluteOrderOfChild();
        return curricularYear.intValue() == firstCurricularPeriodOrder;
    }
View Full Code Here

        final int firstCurricularPeriodOrder = firstCurricularPeriod.getAbsoluteOrderOfChild();
        return curricularYear.intValue() == firstCurricularPeriodOrder;
    }

    public boolean containsSemester(final Integer semester) {
        final CurricularPeriod firstCurricularPeriod = getCurricularPeriod();
        final int firstCurricularPeriodOrder = firstCurricularPeriod.getChildOrder();
        return semester.intValue() == firstCurricularPeriodOrder;
    }
View Full Code Here

    public boolean containsSemesterAndCurricularYear(final Integer semester, final Integer curricularYear,
            final RegimeType regimeType) {

        final int argumentOrder = (curricularYear - 1) * 2 + semester.intValue();
        final CurricularPeriod firstCurricularPeriod = getCurricularPeriod();
        final int firstCurricularPeriodOrder = firstCurricularPeriod.getAbsoluteOrderOfChild();
        final int duration;
        if (regimeType == RegimeType.ANUAL) {
            duration = 2;
        } else if (regimeType == RegimeType.SEMESTRIAL) {
            duration = 1;
View Full Code Here

    }

    @Override
    protected void draw(DegreeCurricularPlan degreeCurricularPlan, HtmlTable mainTable) {

        final CurricularPeriod degreeStructure = degreeCurricularPlan.getDegreeStructure();

        for (final CurricularPeriod curricularPeriod : degreeStructure.getSortedChilds()) {
            /*
             * NOTE: Assuming structure Year - Semesters, and all courses are
             * connected to semesters apart from course regime
             */
            drawTopCurricularPeriods(curricularPeriod, mainTable, 0);
View Full Code Here

                drawRegime(curricularCourse, row);
                drawCourseLoad(curricularCourse, context.getCurricularPeriod(), row);
                drawEctsCredits(curricularCourse, context.getCurricularPeriod(), row);
            } else {

                final CurricularPeriod firstCP = context.getCurricularPeriod();
                final ExecutionSemester firstES = getExecutionInterval().getExecutionSemesterFor(firstCP.getChildOrder());

                drawCurricularCourseName(curricularCourse, row, isCurricularCourseLinkable(), level);
                drawContextInformation(firstCP, row);
                drawRegime(curricularCourse, row);
                drawCourseLoad(curricularCourse, firstCP, firstES, row);
                drawEctsCredits(curricularCourse, firstCP, firstES, row);

                final CurricularPeriod secondCP = context.getCurricularPeriod().getNext();
                final ExecutionSemester secondES = getExecutionInterval().getExecutionSemesterFor(secondCP.getChildOrder());

                drawCurricularCourseName(curricularCourse, row, false, level);
                drawContextInformation(secondCP, row);
                drawRegime(curricularCourse, row);
                drawCourseLoad(curricularCourse, secondCP, secondES, row);
View Full Code Here

            }
            if (!creator.hasRole(RoleType.BOLONHA_MANAGER)) {
                RoleType.grant(RoleType.BOLONHA_MANAGER, creator.getUser());
            }

            CurricularPeriod curricularPeriod = new CurricularPeriod(this.getDegreeType().getAcademicPeriod());

            return new DegreeCurricularPlan(this, name, gradeScale, creator, curricularPeriod);
        } else {
            throw new DomainException("DEGREE.calling.bolonha.method.to.non.bolonha.degree");
        }
View Full Code Here

        this.writer = facesContext.getResponseWriter();

        if (dcp.getRoot().getChildContextsSet().isEmpty()) {
            encodeEmptyCurricularPlanInfo();
        } else {
            CurricularPeriod degreeStructure = dcp.getDegreeStructure();
            if (degreeStructure == null || degreeStructure.getChildsSet().isEmpty()) {
                encodeEmptyDegreeStructureInfo();
            } else {
                for (CurricularPeriod child : degreeStructure.getSortedChilds()) {
                    encodePeriodTable(child);
                }
            }
        }
    }
View Full Code Here

        curricularCourse.setCredits(credits);
        curricularCourse.setEctsCredits(ectsCredits);
        curricularCourse.setType(CurricularCourseType.NORMAL_COURSE);
        curricularCourse.setGradeScale(gradeScale);

        final CurricularPeriod curricularPeriod = getCurricularPeriod(degreeCurricularPlan, year, semester);
        final ExecutionSemester beginExecutionPeriod = FenixFramework.getDomainObject(beginExecutionPeriodId);
        final ExecutionSemester endExecutionPeriod = FenixFramework.getDomainObject(endExecutionPeriodId);

        courseGroup.addContext(curricularCourse, curricularPeriod, beginExecutionPeriod, endExecutionPeriod);
    }
View Full Code Here

TOP

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

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.