Package org.fenixedu.academic.dto

Examples of org.fenixedu.academic.dto.InfoSiteTimetable


        // throw new FenixActionException(e1);
        // }
        InfoDegreeCurricularPlan infoDegreeCurricularPlan = infoExecutionDegree.getInfoDegreeCurricularPlan();
        request.setAttribute(PresentationConstants.INFO_DEGREE_CURRICULAR_PLAN, infoDegreeCurricularPlan);

        InfoSiteTimetable component = getInfoSiteTimetable(schoolClass);

        request.setAttribute("component", component);
        request.setAttribute("className", className);
        request.setAttribute("schoolClass", schoolClass);
        return mapping.findForward("Sucess");
View Full Code Here


        request.setAttribute("schoolClass", schoolClass);
        return mapping.findForward("Sucess");
    }

    private static InfoSiteTimetable getInfoSiteTimetable(SchoolClass domainClass) {
        InfoSiteTimetable component = new InfoSiteTimetable();
        List infoLessonList = null;

        Collection<Shift> shiftList = domainClass.getAssociatedShiftsSet();
        infoLessonList = new ArrayList();

        ExecutionSemester executionSemester = domainClass.getExecutionPeriod();
        InfoExecutionPeriod infoExecutionPeriod = InfoExecutionPeriod.newInfoFromDomain(executionSemester);

        for (Object element : shiftList) {
            Shift shift = (Shift) element;
            infoLessonList.addAll(InfoLessonInstanceAggregation.getAggregations(shift));
        }
        component.setInfoExecutionPeriod(infoExecutionPeriod);

        component.setLessons(infoLessonList);

        return component;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.InfoSiteTimetable

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.