Package org.fenixedu.academic.domain.thesis

Examples of org.fenixedu.academic.domain.thesis.Thesis


    public static Thesis run(DegreeCurricularPlan degreeCurricularPlan, Student student, MultiLanguageString title, String comment)
            throws NotAuthorizedException {
        final Degree degree = degreeCurricularPlan.getDegree();
        final Enrolment enrolment = student.getDissertationEnrolment(degreeCurricularPlan);

        final Thesis thesis = new Thesis(degree, enrolment, title);
        thesis.checkIsScientificCommission();
        thesis.setComment(comment);
        return thesis;
    }
View Full Code Here


        }
    }

    @Atomic
    public static void remove(final ThesisEvaluationParticipant thesisEvaluationParticipant) {
        final Thesis thesis = thesisEvaluationParticipant.getThesis();
        if (!AccessControl.getPerson().hasRole(RoleType.SCIENTIFIC_COUNCIL)) {
            thesis.checkIsScientificCommission();
        }
        thesisEvaluationParticipant.delete();

        if (!thesis.isCreditsDistributionNeeded()) {
            thesis.setCoorientatorCreditsDistribution(null);
        }
    }
View Full Code Here

        final String thesisIdString = argsMap.get("thesis");
        if (thesisIdString == null) {
            return null;
        }

        final Thesis thesis = FenixFramework.getDomainObject(thesisIdString);
        if (thesis == null) {
            return null;
        }

        final List<Person> result = new ArrayList<Person>();
        final Enrolment enrolment = thesis.getEnrolment();
        final DegreeCurricularPlan degreeCurricularPlan = enrolment.getDegreeCurricularPlanOfDegreeModule();
        final ExecutionYear executionYear = enrolment.getExecutionYear();
        final ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionYear);
        if (executionDegree != null) {
            for (ScientificCommission member : executionDegree.getScientificCommissionMembersSet()) {
View Full Code Here

    @Override
    public void setExamDateYearMonthDay(YearMonthDay evaluationDateYearMonthDay) {
        if (evaluationDateYearMonthDay != null) {
            final Enrolment enrolment = getEnrolment();
            final Thesis thesis = enrolment.getThesis();
            if (thesis != null) {
                DateTime newDateTime = evaluationDateYearMonthDay.toDateTimeAtMidnight();
                final DateTime dateTime = thesis.getDiscussed();
                if (dateTime != null) {
                    newDateTime = newDateTime.withHourOfDay(dateTime.getHourOfDay());
                    newDateTime = newDateTime.withMinuteOfHour(dateTime.getMinuteOfHour());
                }
                thesis.setDiscussed(newDateTime);
            }
        }
        super.setExamDateYearMonthDay(evaluationDateYearMonthDay);
    }
View Full Code Here

        super.setGrade(grade);

        final Enrolment enrolment = getEnrolment();
        if (enrolment != null && enrolment.getCurricularCourse().isDissertation()) {
            final Thesis thesis = enrolment.getThesis();
            if (thesis != null) {
                thesis.setMark(Integer.valueOf(grade.getValue()));
            }
        }

        // TODO remove this once we're sure migration to Grade went OK
        super.setGradeValue(grade.getValue());
View Full Code Here

    protected void deleteInformation() {

        final Iterator<Thesis> theses = getThesesSet().iterator();
        while (theses.hasNext()) {
            final Thesis thesis = theses.next();
            if (!thesis.isDeletable()) {
                throw new DomainException("error.Enrolment.cannot.delete.thesis");
            }
            thesis.delete();
        }

        final Registration registration = getRegistration();

        getStudentCurricularPlan().setIsFirstTimeToNull();
View Full Code Here

        }
        return null;
    }

    public Thesis getPossibleThesis() {
        Thesis thesis = getThesis();
        return (thesis == null /*&& getDissertationProposal() == null */) ? getPreviousYearThesis() : thesis;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.thesis.Thesis

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.