Examples of ThesisEvaluationParticipant


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

    protected void fillGeneric() {
        super.fillGeneric();

        Thesis thesis = getThesis();

        final ThesisEvaluationParticipant thesisEvaluationParticipant = thesis.getProposalApprover();
        final String author;
        final String date;
        final String ccAuthor;
        final String ccDate;
        if (thesisEvaluationParticipant == null) {
            author = date = ccAuthor = ccDate = StringUtils.EMPTY;
        } else {
            final Person person = thesisEvaluationParticipant.getPerson();
            if (person.hasRole(RoleType.SCIENTIFIC_COUNCIL)) {
                author = date = StringUtils.EMPTY;
                ccAuthor = thesisEvaluationParticipant.getPerson().getName();
                ccDate = String.format(new Locale("pt"), "%1$td de %1$tB de %1$tY", thesis.getApproval().toDate());
            } else {
                ccAuthor = ccDate = StringUtils.EMPTY;
                author = thesisEvaluationParticipant.getPerson().getName();
                date = String.format(new Locale("pt"), "%1$td de %1$tB de %1$tY", thesis.getApproval().toDate());
            }
        }

        addParameter("author", author);
View Full Code Here

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

    protected void fillThesisInfo() {
        addParameter("thesisTitle", thesis.getTitle().getContent());
    }

    protected void fillOrientation() {
        final ThesisEvaluationParticipant orientator = thesis.getOrientator();
        addParameter("orientatorName", orientator.getPerson().getName());
        addParameter("orientatorCategory", participantCategoryName(orientator));
        addParameter("orientatorAffiliation", neverNull(orientator.getAffiliation()));

        final ThesisEvaluationParticipant coorientator = thesis.getCoorientator();
        if (coorientator != null) {
            addParameter("coorientatorName", coorientator.getPerson().getName());
            addParameter("coorientatorCategory", participantCategoryName(coorientator));
            addParameter("coorientatorAffiliation", neverNull(coorientator.getAffiliation()));
        } else {
            addParameter("coorientatorName", EMPTY_STR);
            addParameter("coorientatorCategory", EMPTY_STR);
            addParameter("coorientatorAffiliation", EMPTY_STR);
        }
View Full Code Here

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

            addParameter("coorientatorAffiliation", EMPTY_STR);
        }
    }

    protected void fillJury() {
        final ThesisEvaluationParticipant juryPresident = thesis.getPresident();
        addParameter("juryPresidentName", juryPresident.getPerson().getName());
        addParameter("juryPresidentCategory", participantCategoryName(juryPresident));
        addParameter("juryPresidentAffiliation", neverNull(juryPresident.getAffiliation()));

        final Set<ThesisEvaluationParticipant> vowels =
                new TreeSet<ThesisEvaluationParticipant>(ThesisEvaluationParticipant.COMPARATOR_BY_PERSON_NAME);
        vowels.addAll(thesis.getVowels());

        Iterator<ThesisEvaluationParticipant> iterator = vowels.iterator();
        int guidanceVowel = 0;
        for (int i = 1; i <= 4; i++) {
            final String vowelPrefix = "vowel" + i;

            if (iterator.hasNext()) {
                ThesisEvaluationParticipant vowel = iterator.next();
                if (guidanceVowel == 0 && isGuidanceVowel(vowel)) {
                    guidanceVowel = i;
                }
                addParameter(vowelPrefix + "Name", vowel.getPerson().getName());
                addParameter(vowelPrefix + "Category", participantCategoryName(vowel));
                addParameter(vowelPrefix + "Affiliation", neverNull(vowel.getAffiliation()));
            } else {
                addParameter(vowelPrefix + "Name", EMPTY_STR);
                addParameter(vowelPrefix + "Category", EMPTY_STR);
                addParameter(vowelPrefix + "Affiliation", EMPTY_STR);
            }
View Full Code Here

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

        if (target == null) {
            return editProposal(mapping, actionForm, request, response);
        }

        Thesis thesis = getThesis(request);
        ThesisEvaluationParticipant participant;

        PersonTarget targetType = PersonTarget.valueOf(target);
        switch (targetType) {
        case orientator:
            participant = thesis.getOrientator();
View Full Code Here

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

        PersonTarget targetType = PersonTarget.valueOf(target);
        bean.setTargetType(targetType);

        if (targetType.equals(PersonTarget.vowel)) {
            ThesisEvaluationParticipant targetVowel = getVowel(request);

            if (targetVowel != null) {
                bean.setTarget(targetVowel);
            } else {
                bean.setTarget(null);
View Full Code Here

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

        return mapping.findForward("showThesisDetails");
    }

    public ActionForward editThesisEvaluationParticipant(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws Exception {
        final ThesisEvaluationParticipant thesisEvaluationParticipant =
                getDomainObject(request, "thesisEvaluationParticipantOid");
        request.setAttribute("thesisEvaluationParticipant", thesisEvaluationParticipant);
        return mapping.findForward("editThesisEvaluationParticipant");
    }
View Full Code Here

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

        return mapping.findForward("editThesisEvaluationParticipant");
    }

    public ActionForward removeThesisEvaluationParticipant(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws Exception {
        final ThesisEvaluationParticipant thesisEvaluationParticipant =
                getDomainObject(request, "thesisEvaluationParticipantOid");
        final Thesis thesis = thesisEvaluationParticipant.getThesis();

        ChangeThesisPerson.remove(thesisEvaluationParticipant);

        return showThesisDetails(mapping, request, thesis);
    }
View Full Code Here

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

        if (target == null) {
            return editProposal(mapping, actionForm, request, response);
        }

        Thesis thesis = getThesis(request);
        ThesisEvaluationParticipant participant;

        PersonTarget targetType = PersonTarget.valueOf(target);
        switch (targetType) {
        case orientator:
            participant = thesis.getOrientator();
View Full Code Here

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

        PersonTarget targetType = PersonTarget.valueOf(target);
        bean.setTargetType(targetType);

        if (targetType.equals(PersonTarget.vowel)) {
            ThesisEvaluationParticipant targetVowel = getVowel(request);

            if (targetVowel != null) {
                bean.setTarget(targetVowel);
            } else {
                bean.setTarget(null);
View Full Code Here

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

        if (person != null) {
            if (!AccessControl.getPerson().hasRole(RoleType.SCIENTIFIC_COUNCIL)) {
                thesis.checkIsScientificCommission();
            }

            new ThesisEvaluationParticipant(thesis, person, thesisParticipationType);

            if (!thesis.isCreditsDistributionNeeded()) {
                thesis.setCoorientatorCreditsDistribution(null);
            }
        }
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.