Package org.fenixedu.academic.domain.thesis

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


        super(thesis);
    }

    @Override
    public void fillGeneric() {
        Thesis thesis = getThesis();
        String discussed;

        if (thesis.getDiscussed() != null) {
            DateTime discussedTime = thesis.getDiscussed();
            discussed = discussedTime.getDayOfMonth() + " / " + discussedTime.getMonthOfYear() + " / " + discussedTime.getYear();
        } else {
            discussed = EMPTY_STR;
        }
View Full Code Here


    @Override
    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);
        addParameter("date", date);
View Full Code Here

        addParameter("ccDate", ccDate);
    }

    @Override
    public String getReportFileName() {
        Thesis thesis = getThesis();
        return "pedido-homologacao-aluno-" + thesis.getStudent().getNumber();
    }
View Full Code Here

        super(thesis);
    }

    @Override
    protected void fillThesisInfo() {
        Thesis thesis = getThesis();

        ThesisFile file = thesis.getDissertation();
        if (file != null) {
            addParameter("thesisTitle", file.getTitle());
            addParameter("thesisSubtitle", neverNull(file.getSubTitle()));
            addParameter("thesisLanguage", getLanguage(file));
        } else {
            addParameter("thesisTitle", thesis.getTitle().getContent());
            addParameter("thesisSubtitle", EMPTY_STR);
            addParameter("thesisLanguage", EMPTY_STR);
        }

        String date = null;

        DateTime discussion = thesis.getDiscussed();
        if (discussion != null) {
            date = String.format(new Locale("pt"), "%1$td/%1$tm/%1$tY", discussion.toDate());
        }

        addParameter("discussion", neverNull(date));

        int index = 0;
        for (String keyword : splitKeywords(thesis.getKeywordsPt())) {
            addParameter("keywordPt" + index++, keyword);
        }

        while (index < 6) {
            addParameter("keywordPt" + index++, EMPTY_STR);
        }

        index = 0;
        for (String keyword : splitKeywords(thesis.getKeywordsEn())) {
            addParameter("keywordEn" + index++, keyword);
        }

        while (index < 6) {
            addParameter("keywordEn" + index++, EMPTY_STR);
        }

        addParameter("keywordsPt", thesis.getKeywordsPt());
        addParameter("keywordsEn", thesis.getKeywordsEn());

        addParameter("abstractPt", neverNull(thesis.getThesisAbstractPt()));
        addParameter("abstractEn", neverNull(thesis.getThesisAbstractEn()));
    }
View Full Code Here

        return result;
    }

    @Override
    public String getReportFileName() {
        Thesis thesis = getThesis();
        return "identificacao-aluno-" + thesis.getStudent().getNumber();
    }
View Full Code Here

    private void setState(Thesis thesis) {
        this.state = ThesisPresentationState.getThesisPresentationState(thesis);
    }

    public String getThesisId() {
        final Thesis thesis = getThesis();

        return thesis == null ? null : thesis.getExternalId();
    }
View Full Code Here

    }

    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final Thesis thesis = getThesis(request);
        request.setAttribute("thesis", thesis);

        if (thesis != null) {
            final ThesisPresentationState thesisPresentationState = ThesisPresentationState.getThesisPresentationState(thesis);
            request.setAttribute("thesisPresentationState", thesisPresentationState);
            request.setAttribute("degreeID", thesis.getDegree().getExternalId());
            request.setAttribute("executionYearID", thesis.getExecutionYear().getExternalId());
        }

        Degree degree = getDegree(request);
        ExecutionYear executionYear = getExecutionYear(request);
View Full Code Here

        return mapping.findForward("review-proposal");
    }

    public ActionForward approveProposal(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        Thesis thesis = getThesis(request);

        if (thesis != null) {
            try {
                ApproveThesisProposal.runApproveThesisProposal(thesis);
                final ThesisPresentationState thesisPresentationState =
View Full Code Here

        return reviewThesis(mapping, actionForm, request, response);
    }

    public ActionForward approveThesis(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        Thesis thesis = getThesis(request);

        if (thesis != null) {
            try {
                ApproveThesisDiscussion.runApproveThesisDiscussion(thesis);
                addActionMessage("mail", request, "thesis.evaluated.mail.sent");
View Full Code Here

        setDocumentAvailability(request);
        return mapping.findForward("view-thesis");
    }

    private void setDocumentAvailability(final HttpServletRequest request) {
        final Thesis thesis = getThesis(request);
        if (thesis.areThesisFilesReadable()) {
            request.setAttribute("containsThesisFileReadersGroup", Boolean.TRUE);
        }
    }
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.