Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Lesson


        return li.getShift().getExecutionCourse().getSiteUrl();
    }

    @Override
    public String getInfo() {
        Lesson theLesson = getLessonInstancesSet().iterator().next().getLesson();
        String asd = theLesson.getShift().getCourseLoadsSet().iterator().next().getType().getFullNameTipoAula();
        for (YearMonthDay ymd : theLesson.getAllLessonDates()) {
            asd += "\n" + ymd.toString();
        }
        return asd;
    }
View Full Code Here


        return null;
    }

    @Override
    public boolean isOccupiedByExecutionCourse(final ExecutionCourse executionCourse, final DateTime start, final DateTime end) {
        final Lesson lesson = getLesson();
        if (lesson.getExecutionCourse() == executionCourse) {
            final List<Interval> intervals =
                    getEventSpaceOccupationIntervals(start.toYearMonthDay(), end.toYearMonthDay().plusDays(1));
            for (final Interval interval : intervals) {
                if (start.isBefore(interval.getEnd()) && end.isAfter(interval.getStart())) {
                    return true;
View Full Code Here

        return false;
    }

    @Override
    public String getUrl() {
        Lesson li = getLesson();
        if (li == null) {
            return "";
        }

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

    public static List<Lesson> getAssociatedLessons(final Space space, final ExecutionSemester executionSemester) {
        final List<Lesson> lessons = new ArrayList<Lesson>();
        for (Occupation spaceOccupation : space.getOccupationSet()) {
            if (spaceOccupation instanceof LessonSpaceOccupation) {
                LessonSpaceOccupation roomOccupation = (LessonSpaceOccupation) spaceOccupation;
                final Lesson lesson = roomOccupation.getLesson();
                if (lesson.getExecutionPeriod() == executionSemester) {
                    lessons.add(lesson);
                }
            }
        }
        return lessons;
View Full Code Here

    public static List<Lesson> getAssociatedLessons(Space space, AcademicInterval academicInterval) {
        final List<Lesson> lessons = new ArrayList<Lesson>();
        for (Occupation spaceOccupation : space.getOccupationSet()) {
            if (spaceOccupation instanceof LessonSpaceOccupation) {
                LessonSpaceOccupation roomOccupation = (LessonSpaceOccupation) spaceOccupation;
                final Lesson lesson = roomOccupation.getLesson();
                if (lesson.getAcademicInterval().equals(academicInterval)) {
                    lessons.add(lesson);
                }
            }
        }
        return lessons;
View Full Code Here

TOP

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

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.