Examples of SummaryTeacherBean


Examples of org.fenixedu.academic.dto.teacher.executionCourse.SummaryTeacherBean

        Professorship professorshipLogged = (Professorship) request.getAttribute("loggedTeacherProfessorship");
        Set<Summary> teacherSummaries = new TreeSet<Summary>(Summary.COMPARATOR_BY_DATE_AND_HOUR);
        teacherSummaries.addAll(professorshipLogged.getAssociatedSummariesSet());

        readAndSaveNextPossibleSummaryLessonsAndDates(request, executionCourse);
        request.setAttribute("showSummariesBean", new ShowSummariesBean(new SummaryTeacherBean(professorshipLogged),
                executionCourse, ListSummaryType.ALL_CONTENT, professorshipLogged));
        if (professorshipLogged.getTeacher() != null) {
            request.setAttribute("teacherId", professorshipLogged.getTeacher().getPerson().getUsername());
        }
        request.setAttribute("summaries", teacherSummaries);
View Full Code Here

Examples of org.fenixedu.academic.dto.teacher.executionCourse.SummaryTeacherBean

        ExecutionCourse executionCourse = bean.getExecutionCourse();
        ShiftType shiftType = bean.getShiftType();
        Shift shift = bean.getShift();

        SummaryTeacherBean summaryTeacher = bean.getSummaryTeacher();
        Professorship teacher = (summaryTeacher != null) ? summaryTeacher.getProfessorship() : null;
        Boolean otherTeachers = (summaryTeacher != null) ? summaryTeacher.getOthers() : null;
        SummariesOrder summariesOrder = bean.getSummariesOrder();

        Set<Summary> summariesToShow =
                summariesOrder == null || summariesOrder.equals(SummariesOrder.DECREASING) ? new TreeSet<Summary>(
                        Summary.COMPARATOR_BY_DATE_AND_HOUR) : new TreeSet<Summary>(new ReverseComparator(
View Full Code Here

Examples of org.fenixedu.academic.dto.teacher.executionCourse.SummaryTeacherBean

    public Object provide(Object source, Object currentValue) {
        ExecutionCourse executionCourse = ((ShowSummariesBean) source).getExecutionCourse();
        Professorship professorshipLogged = ((ShowSummariesBean) source).getProfessorshipLogged();
        List<SummaryTeacherBean> teachers = new ArrayList<SummaryTeacherBean>();
        if (executionCourse != null && professorshipLogged != null) {
            teachers.add(teachers.size(), new SummaryTeacherBean(professorshipLogged));
            teachers.add(teachers.size(), new SummaryTeacherBean(Boolean.TRUE));
        }
        return teachers;
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.teacher.executionCourse.SummaryTeacherBean

        List<SummaryTeacherBean> teachers = new ArrayList<SummaryTeacherBean>();
        Set<Professorship> professorships = new TreeSet<Professorship>(Professorship.COMPARATOR_BY_PERSON_NAME);
        if (executionCourse != null) {
            professorships.addAll(executionCourse.getProfessorshipsSet());
            for (Professorship professorship : professorships) {
                teachers.add(teachers.size(), new SummaryTeacherBean(professorship));
            }
            teachers.add(teachers.size(), new SummaryTeacherBean(Boolean.TRUE));
        }
        return teachers;
    }
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.