Examples of CurricularYear


Examples of org.fenixedu.academic.domain.CurricularYear

        //TODO: check and clean up unneeded attributes
        //informative and destination attributes
        String executionCoursesNotLinked = RequestUtils.getAndSetStringToRequest(request, "executionCoursesNotLinked");
        if (StringUtils.isEmpty(executionCoursesNotLinked) || !Boolean.valueOf(executionCoursesNotLinked)) {
            String curricularYearId = RequestUtils.getAndSetStringToRequest(request, "curricularYearId");
            CurricularYear curYear = FenixFramework.getDomainObject(curricularYearId);
            request.setAttribute("curYear", curYear.getYear().toString());
            String originExecutionDegreeId = RequestUtils.getAndSetStringToRequest(request, "originExecutionDegreeId");
            ExecutionDegree executionDegree = FenixFramework.getDomainObject(originExecutionDegreeId);
            request.setAttribute("originExecutionDegreeName", executionDegree.getPresentationName());
        }
        String executionPeriodId = RequestUtils.getAndSetStringToRequest(request, "executionPeriodId");
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

//        EmptyDegreeCurricularPlan.init();

    }

    private static void createCurricularYearsAndSemesters() {
        new CurricularYear(Integer.valueOf(1), 2);
        new CurricularYear(Integer.valueOf(2), 2);
        new CurricularYear(Integer.valueOf(3), 2);
        new CurricularYear(Integer.valueOf(4), 2);
        new CurricularYear(Integer.valueOf(5), 2);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

        final ExecutionCourse selectedExecutionCourse =
                setDomainObjectInRequest(dynaActionForm, request, "executionCourseID", "executionCourse");
        request.setAttribute("selectedExecutionCourse", selectedExecutionCourse);

        final String curricularYearID = getCurricularYearID(dynaActionForm);
        final CurricularYear selecctedCurricularYear =
                setDomainObjectInRequest(dynaActionForm, request, "curricularYearID", "selecctedCurricularYear");

        final DegreeCurricularPlan degreeCurricularPlan =
                setDomainObjectInRequest(dynaActionForm, request, "degreeCurricularPlanID", "executionCourse");
        if (degreeCurricularPlan != null) {
            request.setAttribute("degreeCurricularPlanID", degreeCurricularPlan.getExternalId());
            for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
                for (final DegreeModuleScope degreeCourseScope : curricularCourse.getDegreeModuleScopes()) {
                    final CurricularYear curricularYear = CurricularYear.readByYear(degreeCourseScope.getCurricularYear());
                    curricularYears.add(curricularYear);

                    if (curricularYearID == null || curricularYear.getExternalId().equals(curricularYearID)) {
                        for (final ExecutionCourse executionCourse : curricularCourse
                                .getExecutionCoursesByExecutionPeriod(selectedExecutionPeriod)) {
                            executionCourses.add(executionCourse);
                        }
                    }
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

    protected Grade convertGradeToEcts(Degree degree, CurriculumLine curriculumLine, Grade grade) {
        if (curriculumLine.getParentCycleCurriculumGroup() == null) {
            return convertGradeToEcts(Bennu.getInstance().getInstitutionUnit(), curriculumLine, grade);
        }
        CurricularYear curricularYear =
                CurricularYear.readByYear(curriculumLine.getParentCycleCurriculumGroup()
                        .getCurriculum(curriculumLine.getExecutionYear()).getCurricularYear());
        EctsConversionTable table = getEnrolmentTableBy(degree, curricularYear);
        if (table != null) {
            return table.convert(grade);
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

        } else if (request.getAttribute(PresentationConstants.CONTEXT_SELECTION_BEAN) != null) {
            context = (ContextSelectionBean) request.getAttribute(PresentationConstants.CONTEXT_SELECTION_BEAN);
        } else {
            AcademicInterval academicInterval = null;
            ExecutionDegree executionDegree = null;
            CurricularYear curricularYear = null;
            String courseName = null;
            if (request.getAttribute(PresentationConstants.ACADEMIC_INTERVAL) != null) {
                String academicIntervalStr = (String) request.getAttribute(PresentationConstants.ACADEMIC_INTERVAL);
                academicInterval = AcademicInterval.getAcademicIntervalFromResumedString(academicIntervalStr);
            } else if (request.getParameter(PresentationConstants.ACADEMIC_INTERVAL) != null) {
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanID);
        if (degreeCurricularPlan == null) {
            throw new FenixServiceException("error.coordinator.noDegreeCurricularPlan");
        }

        CurricularYear curricularYear = null;
        if (curricularYearID != null) {
            curricularYear = FenixFramework.getDomainObject(curricularYearID);
            if (curricularYear == null) {
                throw new FenixServiceException("error.no.curYear");
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

    public List<ExecutionCourse> getExecutionCourses() throws FenixServiceException {
        final List<ExecutionCourse> executionCourses = new ArrayList<ExecutionCourse>();
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan();
        final ExecutionSemester executionSemester = getExecutionPeriod();
        final CurricularYear curricularYear = getCurricularYear();

        for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
            if (isActiveInExecutionPeriodAndYear(curricularCourse, executionSemester, curricularYear)) {
                for (final ExecutionCourse executionCourse : curricularCourse.getAssociatedExecutionCoursesSet()) {
                    if (executionCourse.getExecutionPeriod() == executionSemester) {
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

    public Map<ExecutionCourse, Set<Evaluation>> getExecutionCoursesMap() throws FenixServiceException {
        final Map<ExecutionCourse, Set<Evaluation>> executionCourseEvaluationsMap =
                new TreeMap<ExecutionCourse, Set<Evaluation>>(executionCourseComparator);
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan();
        final ExecutionSemester executionSemester = getExecutionPeriod();
        final CurricularYear curricularYear = getCurricularYear();

        for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
            if (isActiveInExecutionPeriodAndYear(curricularCourse, executionSemester, curricularYear)) {
                for (final ExecutionCourse executionCourse : curricularCourse.getAssociatedExecutionCoursesSet()) {
                    if (executionCourse.getExecutionPeriod() == executionSemester) {
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

    @Atomic
    public static InfoCurricularYear run(String oid) throws FenixServiceException {
        InfoCurricularYear result = null;

        CurricularYear curricularYear = FenixFramework.getDomainObject(oid);
        if (curricularYear != null) {
            result = InfoCurricularYear.newInfoFromDomain(curricularYear);
        } else {
            throw new UnexistingCurricularYearException();
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.CurricularYear

        ExecutionDegree executionDegree = null;
        if (infoExecutionDegree != null) {
            executionDegree = FenixFramework.getDomainObject(infoExecutionDegree.getExternalId());
        }

        CurricularYear curricularYear = null;
        if (infoCurricularYear != null) {
            curricularYear = FenixFramework.getDomainObject(infoCurricularYear.getExternalId());
        }

        List<ExecutionCourse> executionCourses = new ArrayList<ExecutionCourse>();
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.