Package org.fenixedu.academic.domain.phd

Examples of org.fenixedu.academic.domain.phd.PhdIndividualProgramProcess


        return (PhdFinalizationCertificateRequest) super.getDocumentRequest();
    }

    @Override
    protected String getDegreeDescription() {
        PhdIndividualProgramProcess phdIndividualProgramProcess = getDocumentRequest().getPhdIndividualProgramProcess();
        return phdIndividualProgramProcess.getPhdProgram().getName().getContent(getLanguage());
    }
View Full Code Here


    }

    private void setFooter(PhdFinalizationCertificateRequest documentRequest) {

        PhdIndividualProgramProcess phdIndividualProgramProcess = getDocumentRequest().getPhdIndividualProgramProcess();
        String student;

        if (phdIndividualProgramProcess.getStudent().getPerson().isMale()) {
            student = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.declaration.maleStudent");
        } else {
            student = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.declaration.femaleStudent");
        }
        StringBuilder studentNumber = new StringBuilder();
        String stringTemplate =
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.declaration.footer.studentNumber");
        studentNumber.append(MessageFormat.format(stringTemplate, student, phdIndividualProgramProcess.getStudent().getNumber()
                .toString()));
        studentNumber.append("/D");
        addParameter("studentNumber", studentNumber.toString());

        StringBuilder documentNumber = new StringBuilder();
View Full Code Here

        addParameter("certificate",
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "message.phd.finalization.certificate.certifies.that"));
    }

    private void addProgrammeInfo() {
        PhdIndividualProgramProcess phdIndividualProgramProcess = getDocumentRequest().getPhdIndividualProgramProcess();
        String stringTemplate =
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.phd.finalization.certificate.concluded.in");
        String conclusionDate =
                MessageFormat.format(stringTemplate, phdIndividualProgramProcess.getConclusionDate().toString("dd/MM/yyyy"));
        addParameter("conclusionDate", conclusionDate);

        StringBuilder thesisTitle = new StringBuilder();
        thesisTitle.append("\"");
        thesisTitle.append(getThesisTitle(phdIndividualProgramProcess));
        thesisTitle.append("\"");
        addParameter("thesisTitle", thesisTitle.toString());

        StringBuilder builder = new StringBuilder();
        builder.append(
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
                        "message.phd.finalization.certificate.made.thesis.presentation.on.doctoral.grade")).append(":")
                .append(SINGLE_SPACE);

        builder.append(phdIndividualProgramProcess.getPhdProgram().getName().getContent(getLanguage()).toUpperCase());

        addParameter("phdProgram", customMultipleLineRightPad(builder.toString(), LINE_LENGTH, END_CHAR));
        addParameter("finalizationInfo", buildFinalizationInfo());

    }
View Full Code Here

        return phdIndividualProgramProcess.getThesisTitle();
    }

    private String buildFinalizationInfo() {
        PhdIndividualProgramProcess phdIndividualProgramProcess = getDocumentRequest().getPhdIndividualProgramProcess();
        String thesisFinalGrade = phdIndividualProgramProcess.getFinalGrade().getLocalizedName(getLocale());

        if (phdIndividualProgramProcess.isBolonha() && phdIndividualProgramProcess.hasRegistryDiplomaRequest()) {
            return String.format(BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
                    "message.phd.finalization.info.thesis.grade.approved.by.jury.registry.diploma"), thesisFinalGrade,
                    phdIndividualProgramProcess.getRegistryDiplomaRequest().getRegistryCode().getCode());
        } else {
            return String.format(BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
                    "message.phd.finalization.info.thesis.grade.approved.by.jury"), thesisFinalGrade);
        }
    }
View Full Code Here

    @Override
    protected void fillReport() {

        final PhdProgramCandidacyProcess candidacyProcess = getNotification().getCandidacyProcess();
        final Person person = candidacyProcess.getPerson();
        final PhdIndividualProgramProcess individualProgramProcess = candidacyProcess.getIndividualProgramProcess();

        addParameter("administrativeOfficeCoordinator", individualProgramProcess.getPhdProgram().getAdministrativeOffice()
                .getCoordinator().getProfile().getDisplayName());

        addParameter("name", person.getName());
        addParameter("address", person.getAddress());
        addParameter("areaCode", person.getAreaCode());
        addParameter("areaOfAreaCode", person.getAreaOfAreaCode());
        addParameter("programName", individualProgramProcess.getPhdProgram().getName().getContent(getLanguage()));

        addParameter("processNumber", individualProgramProcess.getProcessNumber());

        final LocalDate whenRatified = candidacyProcess.getWhenRatified();

        addParameter("ratificationDate", whenRatified != null ? whenRatified.toString(getDateFormat()) : "");
View Full Code Here

        if (PhdProgramPublicCandidacyHashCode.getPhdProgramCandidacyHashCode(bean.getCandidacyHashCode().getEmail(),
                bean.getProgram()) != null) {
            addErrorMessage(request, "error.PhdProgramPublicCandidacyHashCode.already.has.candidacy");
            return fillPersonalDataInvalid(mapping, form, request, response);
        }
        PhdIndividualProgramProcess process =
                (PhdIndividualProgramProcess) CreateNewProcess.run(PublicPhdIndividualProgramProcess.class, bean);
        sendApplicationSuccessfullySubmitedEmail(bean.getCandidacyHashCode(), request);

        request.setAttribute("phdIndividualProgramProcess", process);
        request.setAttribute("candidacyHashCode", bean.getCandidacyHashCode());

        PhdProgramPublicCandidacyHashCode candidacyProcessHashCode = process.getCandidacyProcessHashCode();
        String processLink =
                InstitutionPhdCandidacyProcessProperties.getPublicCandidacyAccessLink(candidacyProcessHashCode, I18N.getLocale());

        request.setAttribute("processLink", processLink);
View Full Code Here

        if (hashCode == null || !hashCode.hasCandidacyProcess()) {
            return prepareFillPersonalData(mapping, form, request, response);
        }

        PhdIndividualProgramProcess individualProgramProcess = hashCode.getIndividualProgramProcess();
        request.setAttribute("process", individualProgramProcess.getCandidacyProcess());

        canEditCandidacy(request, hashCode);
        canEditPersonalInformation(request, hashCode.getPerson());

        PersonBean personBean = new PersonBean(individualProgramProcess.getPerson());
        initPersonBeanUglyHack(personBean, individualProgramProcess.getPerson());
        request.setAttribute("personBean", personBean);

        validateProcess(request, individualProgramProcess);

        return mapping.findForward("view");
View Full Code Here

    }

    @Override
    public ActionForward prepareCreateNewRequest(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdIndividualProgramProcess process = getPhdIndividualProgramProcess(request);
        PhdDocumentRequestCreateBean phdDocumentRequestCreateBean = new PhdDocumentRequestCreateBean(process);
        request.setAttribute("phdAcademicServiceRequestCreateBean", phdDocumentRequestCreateBean);

        return mapping.findForward("createNewDocumentRequest");
    }
View Full Code Here

        page.photo(photoUrl);
    }

    private static void drawPhdIndividualProgramInformation(final Page page, final PhdProgramPublicCandidacyHashCode hashCode)
            throws IOException {
        final PhdIndividualProgramProcess process = hashCode.getIndividualProgramProcess();

        page.h(3, "Application information");
        page.tableStart("tstyle2 thwhite thnowrap thlight thleft thtop ulnomargin ");
        page.rowStart().headerStartWithStyle("width: 125px;").write("Candidacy Date:").headerEnd()
                .column(process.getCandidacyDate().toString("dd/MM/yyyy")).rowEnd();
        page.rowStart().header("Area:").column(process.getPhdProgramFocusArea().getName().getContent()).rowEnd();
        page.rowStart().header(Unit.getInstitutionAcronym() + " Phd Program:")
                .column(process.getPhdProgram().getName().getContent(MultiLanguageString.en)).rowEnd();
        if (process.getExternalPhdProgram() != null) {
            page.rowStart().header("EPFL Phd Program:")
                    .column(process.getExternalPhdProgram().getName().getContent(MultiLanguageString.en));
        }
        page.rowStart().header("Title:").column(string(process.getThesisTitle())).rowEnd();
        page.rowStart().header("Collaboration:").column(process.getCollaborationTypeName()).rowEnd();
        page.rowStart().header("Year:").column(process.getExecutionYear().getYear()).rowEnd();
        page.tableEnd();
    }
View Full Code Here

    private static void drawDocuments(final Page page, final PhdProgramPublicCandidacyHashCode hashCode, final String folderName)
            throws IOException {

        page.h(3, "Documents", "mtop2");

        final PhdIndividualProgramProcess process = hashCode.getIndividualProgramProcess();
        if (!process.getCandidacyProcessDocuments().isEmpty()) {

            final String documentName = folderName + "-documents.zip";
            final String url =
                    APPLICATION_PREFIX_LINK + "/phd/epfl/applications/candidateDocuments?candidateOid="
                            + hashCode.getExternalId();
            page.pStart("mbottom0").link(url, documentName).pEnd();

            page.tableStart("tstyle2 thwhite thnowrap thlight thleft thtop ulnomargin ");
            page.rowStart().header("Document type").header("Upload time").header("Filename").rowEnd();

            for (final PhdProgramProcessDocument document : process.getCandidacyProcessDocuments()) {
                page.rowStart().column(document.getDocumentType().getLocalizedName());
                page.column(document.getUploadTime().toString("dd/MM/yyyy HH:mm"));
                page.column(document.getFilename()).rowEnd();
            }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.PhdIndividualProgramProcess

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.