Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.LessonInstance


                    final Row row = spreadsheet.addRow();
                    row.setCell(getExecutionYear().getYear());
                    row.setCell(executionSemester.getSemester());
                    row.setCell(executionCourse.getExternalId());
                    row.setCell(executionCourse.getName());
                    final LessonInstance lessonInstance = summary.getLessonInstance();
                    final CourseLoad courseLoad = lessonInstance == null ? null : lessonInstance.getCourseLoad();
                    final ShiftType shiftType = courseLoad == null ? null : courseLoad.getType();
                    row.setCell(shiftType == null ? "" : shiftType.getName());
                    final Shift shift = summary.getShift();
                    row.setCell(shift == null ? "" : shift.getNome());
                    row.setCell(getTeacherId(summary));
View Full Code Here


            }
        }
    }

    private String getSchedule(final Summary summary) {
        final LessonInstance lessonInstance = summary.getLessonInstance();
        if (lessonInstance != null) {
            final DateTime begin = lessonInstance.getBeginDateTime();
            final DateTime end = lessonInstance.getEndDateTime();
            return begin.toString("yyyy-MM-dd HH:mm - ") + end.toString("yyyy-MM-dd HH:mm");
        }
        final DateTime summaryDateTime = summary.getSummaryDateTime();
        return summaryDateTime.toString("yyyy-MM-dd HH:mm");
    }
View Full Code Here

            }
            return builder.toString();
        }

        Lesson lesson = getLesson();
        LessonInstance lessonInstance = lesson.getLessonInstanceFor(getDate());
        return lessonInstance != null ? lessonInstance.prettyPrint() : lesson.prettyPrint();
    }
View Full Code Here

        return false;
    }

    @Override
    public String getUrl() {
        LessonInstance lis = getLessonInstancesSet().iterator().next();
        if (lis == null) {
            return "";
        }
        Lesson li = lis.getLesson();

        return li.getShift().getExecutionCourse().getSiteUrl();
    }
View Full Code Here

TOP

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

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.