Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Teacher


    }

    protected MarkSheet getExistingMarkSheet() {
        CurricularCourse curricularCourse = getEnrolment().getCurricularCourse();

        Teacher teacher = getResponsibleTeacher();

        for (MarkSheet markSheet : curricularCourse.getMarkSheetsSet()) {
            if (getEnrolment().getExecutionPeriod() != markSheet.getExecutionPeriod()) {
                continue;
            }
View Full Code Here


        return null;
    }

    private Teacher getResponsibleTeacher() {
        Teacher responsible = getExecutionCourseTeacher();

        if (responsible == null) {
            responsible = AccessControl.getPerson().getTeacher();
        }
View Full Code Here

    }

    protected MarkSheet createMarkSheet() {
        CurricularCourse curricularCourse = getEnrolment().getCurricularCourse();
        ExecutionSemester executionSemester = getEnrolment().getExecutionPeriod();
        Teacher responsible = getExecutionCourseTeacher();
        Date evaluationDate = getDiscussed().toDate();
        MarkSheetType type = MarkSheetType.SPECIAL_AUTHORIZATION;

        if (responsible == null) {
            responsible = AccessControl.getPerson().getTeacher();
        }

        List<MarkSheetEnrolmentEvaluationBean> evaluations = getStudentEvalutionBean();

        return curricularCourse.createNormalMarkSheet(executionSemester, responsible, evaluationDate, type, true, evaluations,
                responsible.getPerson());
    }
View Full Code Here

            HttpServletResponse response) throws Exception {
        String teacherId = request.getParameter("teacherId");
        teacherId = teacherId == null ? (String) request.getAttribute("teacherId") : teacherId;
        Person person = Person.readPersonByUsername(teacherId);
        if (person != null) {
            Teacher teacher = person.getTeacher();
            if (teacher != null) {
                request.setAttribute("infoPerson", new InfoPerson(person));
                return mapping.findForward("list-one");
            }
        }
View Full Code Here

    }

    protected Teacher getLoggedTeacher() {
        final Person person = AccessControl.getPerson();
        if (person != null) {
            final Teacher teacher = person.getTeacher();
            return teacher;
        }
        return null;
    }
View Full Code Here

        MarkSheetManagementCreateBean createBean =
                (MarkSheetManagementCreateBean) RenderUtils.getViewState().getMetaObject().getObject();
        request.setAttribute("edit", createBean);

        Teacher teacher = Teacher.readByIstId(createBean.getTeacherId());
        createBean.setTeacher(teacher);

        ActionMessages actionMessages = createActionMessages();
        checkIfTeacherIsResponsibleOrCoordinator(createBean.getCurricularCourse(), createBean.getExecutionPeriod(),
                createBean.getTeacherId(), teacher, request, createBean.getMarkSheetType(), actionMessages);
View Full Code Here

                    } else {
                        responsibleForStringBuilder.append("; ");
                        responsibleForEmailsStringBuilder.append("; ");
                    }

                    final Teacher teacher = professorship.getTeacher();
                    responsibleForStringBuilder.append(teacher.getPerson().getUsername());

                    responsibleForStringBuilder.append(" ");

                    final Person person = teacher.getPerson();
                    responsibleForStringBuilder.append(person.getName());
                    responsibleForEmailsStringBuilder.append(person.getEmail());
                }
            }
            row.setCell(responsibleForStringBuilder.toString());
View Full Code Here

        MarkSheetManagementCreateBean createBean =
                (MarkSheetManagementCreateBean) RenderUtils.getViewState().getMetaObject().getObject();
        request.setAttribute("edit", createBean);

        Teacher teacher = Teacher.readByIstId(createBean.getTeacherId());
        createBean.setTeacher(teacher);

        ActionMessages actionMessages = createActionMessages();

        prepareCreateEnrolmentEvaluationsForMarkSheet(createBean, request, actionMessages);
View Full Code Here

            executionCourse = readAndSaveExecutionCourse(request);
        }

        String teacherId = request.getParameter("teacherId_");

        Teacher loggedTeacher;
        Professorship loggedProfessorship;
        if (!StringUtils.isEmpty(teacherId)) {
            loggedTeacher = Teacher.readByIstId(teacherId);
            loggedProfessorship = loggedTeacher.getProfessorshipByExecutionCourse(executionCourse);
        } else {
            loggedProfessorship = AccessControl.getPerson().getProfessorshipByExecutionCourse(executionCourse);
        }

        if (loggedProfessorship == null) {
View Full Code Here

            bean.setTeacherName(dynaActionForm.getString("teacherName"));
            bean.setTeacher(null);
            bean.setProfessorship(null);

        } else if (dynaActionForm.getString("teacher").equals("0") && !StringUtils.isEmpty(dynaActionForm.getString("teacherId"))) {
            Teacher teacher = null;
            try {
                teacher = Teacher.readByIstId(dynaActionForm.getString("teacherId"));
            } catch (NumberFormatException e) {
                addActionMessage(request, "error.summary.teacherNumber.invalid");
            }
View Full Code Here

TOP

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

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.