Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Exam


        return result;
    }

    private void fillSpecialSeasonExam(final ExamDateCertificateRequest request, final Enrolment enrolment,
            final ExamDateEntry entry) {
        final Exam specialSeasonExam = request.getExamFor(enrolment, Season.SPECIAL_SEASON_OBJ);
        if (specialSeasonExam != null) {
            entry.setSpecialSeasonDate(specialSeasonExam.getDayDateYearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
            entry.setSpecialSeasonHour(specialSeasonExam.getBeginningDateHourMinuteSecond().toString("HH:mm"));
        }
    }
View Full Code Here


        }
    }

    private void fillSecondSeasonExam(final ExamDateCertificateRequest request, final Enrolment enrolment,
            final ExamDateEntry entry) {
        final Exam secondSeasonExam = request.getExamFor(enrolment, Season.SEASON2_OBJ);
        if (secondSeasonExam != null) {
            entry.setSecondSeasonDate(secondSeasonExam.getDayDateYearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
            entry.setSecondSeasonHour(secondSeasonExam.getBeginningDateHourMinuteSecond().toString("HH:mm"));
        }
    }
View Full Code Here

        }
    }

    private void fillFirstSeasonExam(final ExamDateCertificateRequest request, final Enrolment enrolment,
            final ExamDateEntry entry) {
        final Exam firstSeasonExam = request.getExamFor(enrolment, Season.SEASON1_OBJ);
        if (firstSeasonExam != null) {
            entry.setFirstSeasonDate(firstSeasonExam.getDayDateYearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
            entry.setFirstSeasonHour(firstSeasonExam.getBeginningDateHourMinuteSecond().toString("HH:mm"));
        }
    }
View Full Code Here

                final YearMonthDay evaluationDate = writtenEvaluation.getDayDateYearMonthDay();

                if (!evaluationDate.isBefore(weekStartYearMonthDay) && !evaluationDate.isAfter(weekEndYearMonthDay)) {

                    if (writtenEvaluation instanceof Exam) {
                        final Exam exam = (Exam) writtenEvaluation;
                        infoShowOccupations.add(InfoExam.newInfoFromDomain(exam));

                    } else if (writtenEvaluation instanceof WrittenTest) {
                        final WrittenTest writtenTest = (WrittenTest) writtenEvaluation;
                        infoShowOccupations.add(InfoWrittenTest.newInfoFromDomain(writtenTest));
View Full Code Here

                        constructCalendarLink(calendarLinks, writtenTest, executionCourse);
                    } else if (evaluation instanceof Project) {
                        final Project project = (Project) evaluation;
                        constructCalendarLink(calendarLinks, project, executionCourse);
                    } else if (evaluation instanceof Exam) {
                        final Exam exam = (Exam) evaluation;
                        if (exam.isExamsMapPublished()) {
                            constructEmptyCalendarLink(calendarLinks, exam, executionCourse);
                        }
                    }
                }
            }
View Full Code Here

        Signal.emit("academic.writtenevaluation.deleted", new DomainObjectEvent<>(writtenEvaluationToDelete));
        writtenEvaluationToDelete.delete();
    }

    private void disconnectExamCertificateRequests(WrittenEvaluation writtenEvaluationToDelete) {
        Exam examToDelete = (Exam) writtenEvaluationToDelete;
        for (ExamDateCertificateRequest examDateCertificateRequest : examToDelete.getExamDateCertificateRequestsSet()) {
            examDateCertificateRequest.removeExams(examToDelete);
        }
    }
View Full Code Here

        // creating the new written evaluation, according to the service
        // arguments
        WrittenEvaluation eval = null;
        if (examSeason != null) {
            eval =
                    new Exam(writtenEvaluationDate, writtenEvaluationStartTime, writtenEvaluationEndTime,
                            executionCoursesToAssociate, degreeModuleScopesToAssociate, roomsToAssociate, gradeScale, examSeason);
        } else if (writtenTestDescription != null) {
            eval =
                    new WrittenTest(writtenEvaluationDate, writtenEvaluationStartTime, writtenEvaluationEndTime,
                            executionCoursesToAssociate, degreeModuleScopesToAssociate, roomsToAssociate, gradeScale,
View Full Code Here

            if (executionCourse.getExecutionPeriod() == executionSemester
                    && (getExecutionCourseID() == null || getExecutionCourseID().equals(executionCourse.getExternalId()))) {
                for (final Evaluation evaluation : executionCourse.getAssociatedEvaluationsSet()) {
                    if (evaluation instanceof WrittenEvaluation) {
                        if (evaluation instanceof Exam) {
                            final Exam exam = (Exam) evaluation;
                            if (!exam.isExamsMapPublished()) {
                                continue;
                            }
                        }

                        final WrittenEvaluation writtenEvaluation = (WrittenEvaluation) evaluation;
View Full Code Here

                continue;
            }

            for (final WrittenEvaluation writtenEvaluation : registration.getWrittenEvaluations(getExecutionPeriod())) {
                if (writtenEvaluation instanceof Exam) {
                    final Exam exam = (Exam) writtenEvaluation;
                    if (!exam.isExamsMapPublished()) {
                        continue;
                    }
                }

                if (writtenEvaluation.getClass().getName().equals(evaluationType)) {
View Full Code Here

    public String getSeason() throws FenixServiceException {
        if (season == null) {
            final Evaluation evaluation = getEvaluation();
            if (evaluation != null && evaluation instanceof Exam) {
                final Exam exam = (Exam) evaluation;
                season = exam.getSeason().toString();
            }
        }
        if (this.getViewState().getAttribute("season") != null && !this.getViewState().getAttribute("season").equals("")) {
            this.season = (String) this.getViewState().getAttribute("season");
        }
View Full Code Here

TOP

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

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.