Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.SchoolClass


        if (definedWidth) {
            strBuffer.append("width='90%'");
        }
        strBuffer.append(">");

        final SchoolClass schoolClass = (SchoolClass) pageContext.getRequest().getAttribute("schoolClass");

        if (schoolClass != null) {
            final String className = schoolClass.getNome();
            strBuffer.append("<caption>");
            final String captionPrefix =
                    getMessageResource(pageContext, "public.degree.information.title.class.timetable", locale);
            strBuffer.append(captionPrefix);
            strBuffer.append(' ');
View Full Code Here


        if (classIdString == null) {
            return mapping.getInputForward();
        }

        final SchoolClass schoolClass = FenixFramework.getDomainObject(classIdString);
        InfoExecutionDegree infoExecutionDegree =
                ReadExecutionDegreesByExecutionYearAndDegreeInitials.getInfoExecutionDegree(schoolClass.getExecutionDegree());
        // try {
        // infoExecutionDegree = (InfoExecutionDegree)
        // ReadExecutionDegreesByExecutionYearAndDegreeInitials
        // .run(infoExecutionPeriod
        // .getInfoExecutionYear(), degreeInitials, nameDegreeCurricularPlan);
View Full Code Here

        String classIdString = request.getParameter("classId");
        if (degreeInitials == null && classIdString == null) {
            return mapping.getInputForward();
        }

        final SchoolClass schoolClass = FenixFramework.getDomainObject(classIdString);
        final InfoExecutionDegree infoExecutionDegree =
                ReadExecutionDegreesByExecutionYearAndDegreeInitials.getInfoExecutionDegree(schoolClass.getExecutionDegree());
        request.setAttribute("exeDegree", infoExecutionDegree);
        return mapping.findForward("Sucess");
    }
View Full Code Here

    public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        InfoClass infoClass = (InfoClass) request.getAttribute(PresentationConstants.CLASS_VIEW);
        final SchoolClass schoolClass = FenixFramework.getDomainObject(infoClass.getExternalId());
        request.setAttribute("schoolClass", schoolClass);

        // Fill out the form with the name of the class
        DynaActionForm classForm = (DynaActionForm) form;
        classForm.set("className", schoolClass.getEditablePartOfName());

        // Get list of shifts and place them in request

        List<InfoShift> infoShifts = (List<InfoShift>) ReadShiftsByClass.run(infoClass);
View Full Code Here

        if (schoolClassesToEnrol.isEmpty()) {
            return mapping.findForward("prepareShiftEnrollment");
        }

        final SchoolClass schoolClass = setSelectedSchoolClass(request, classIdSelected, schoolClassesToEnrol);

        final List<InfoShowOccupation> infoClasslessons =
                ReadClassTimeTableByStudent.runReadClassTimeTableByStudent(registration, schoolClass, executionCourse);

        request.setAttribute("infoClasslessons", infoClasslessons);
View Full Code Here

    }

    private SchoolClass setSelectedSchoolClass(HttpServletRequest request, final String classIdSelected,
            final List<SchoolClass> schoolClassesToEnrol) {

        final SchoolClass schoolClass =
                (classIdSelected != null) ? searchSchoolClassFrom(schoolClassesToEnrol, classIdSelected) : schoolClassesToEnrol
                        .iterator().next();
        request.setAttribute("selectedSchoolClass", schoolClass);

        return schoolClass;
View Full Code Here

                errorLog.add(new StringBuilder("Erro ao ler o curso com o nome: '")
                        .append(shiftDistributionDTO.getDegreeCurricularPlanName()).append("' ignorando informação.").toString());
                continue;
            }

            final SchoolClass schoolClass = readSchoolClassFrom(degreeCurricularPlan, shiftDistributionDTO.getSchoolClassName());
            if (schoolClass == null) {
                errorLog.add(new StringBuilder("Erro ao ler aula com o nome: '")
                        .append(shiftDistributionDTO.getSchoolClassName()).append("' ignorando informação.").toString());
                continue;
            }
View Full Code Here

    public static Object run(InfoClass infoClass) {
        check(RolePredicates.RESOURCE_ALLOCATION_MANAGER_PREDICATE);

        List infoShifts = null;

        SchoolClass schoolClass = FenixFramework.getDomainObject(infoClass.getExternalId());
        Set<Shift> shifts = schoolClass.findAvailableShifts();

        infoShifts = (List) CollectionUtils.collect(shifts, new Transformer() {
            @Override
            public Object transform(Object arg0) {
                Shift shift = (Shift) arg0;
View Full Code Here

    public static Object run(final String className, final Integer curricularYear, final InfoExecutionDegree infoExecutionDegree,
            final AcademicInterval academicInterval) throws ExistingServiceException {

        final ExecutionDegree executionDegree = FenixFramework.getDomainObject(infoExecutionDegree.getExternalId());

        final SchoolClass schoolClass = new SchoolClass(executionDegree, academicInterval, className, curricularYear);
        return InfoClass.newInfoFromDomain(schoolClass);
    }
View Full Code Here

        check(RolePredicates.RESOURCE_ALLOCATION_MANAGER_PREDICATE);
        final Shift shift = FenixFramework.getDomainObject(infoShift.getExternalId());
        if (shift == null) {
            return Boolean.FALSE;
        }
        final SchoolClass schoolClass = (SchoolClass) CollectionUtils.find(shift.getAssociatedClassesSet(), new Predicate() {
            @Override
            public boolean evaluate(Object arg0) {
                final SchoolClass schoolClass = (SchoolClass) arg0;
                return schoolClass.getExternalId().equals(infoClass.getExternalId());
            }
        });
        if (schoolClass == null) {
            return Boolean.FALSE;
        }
View Full Code Here

TOP

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

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.