Examples of PhdProgramCandidacyProcess


Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

    }

    @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()) : "");

        addParameter("insuranceFee", getInsuranceFee(individualProgramProcess));
        addParameter("registrationFee", getRegistrationFee(individualProgramProcess, whenRatified));
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

     * Edit personal data
     */

    public ActionForward prepareEditPersonalData(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        final PhdProgramCandidacyProcessBean bean = new PhdProgramCandidacyProcessBean(process);
        Person person = process.getPerson();
        PersonBean personBean = new PersonBean(person);
        bean.setPersonBean(personBean);

        /* TODO: UGLY HACK DUE TO PENDING VALIDATION DATA FOR PERSON */
        initPersonBeanUglyHack(personBean, person);

        canEditCandidacy(request, process.getCandidacyHashCode());
        canEditPersonalInformation(request, person);

        request.setAttribute("candidacyBean", bean);
        return mapping.findForward("editPersonalData");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

        return mapping.findForward("editPersonalData");
    }

    public ActionForward editPersonalDataInvalid(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        PhdProgramCandidacyProcessBean candidacyBean = getCandidacyBean();
        request.setAttribute("candidacyBean", candidacyBean);

        canEditCandidacy(request, process.getCandidacyHashCode());
        canEditPersonalInformation(request, process.getPerson());

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

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

        addSharedDocumentTypeNames(request);
        return mapping.findForward("manageFeedbackRequest");
    }

    private void addSharedDocumentTypeNames(HttpServletRequest request) {
        final PhdProgramCandidacyProcess process = getProcess(request);

        if (process.getFeedbackRequest() != null) {

            final StringBuilder builder = new StringBuilder();
            final Iterator<PhdIndividualProgramDocumentType> iter =
                    process.getFeedbackRequest().getSortedSharedDocumentTypes().iterator();

            while (iter.hasNext()) {
                builder.append(iter.next().getLocalizedName()).append(iter.hasNext() ? ", " : "");
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

    }

    public ActionForward downloadSubmittedCandidacyFeedbackDocuments(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws IOException {

        final PhdProgramCandidacyProcess process = getProcess(request);

        writeFile(response, getZipDocumentsFilename(process.getIndividualProgramProcess()), PhdDocumentsZip.ZIP_MIME_TYPE,
                createZip(process.getFeedbackRequest().getSubmittedCandidacyFeedbackDocuments()));

        return null;
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

    public ActionForward editSharedDocuments(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        try {
            final PhdProgramCandidacyProcess process = getProcess(request);

            if (process.getFeedbackRequest() == null) {
                CreateNewProcess.run(PhdCandidacyFeedbackRequestProcess.class, getRenderedObject("feedbackRequestBean"));
            } else {
                ExecuteProcessActivity.run(getProcess(request).getFeedbackRequest(), EditSharedDocumentTypes.class,
                        getRenderedObject("feedbackRequestBean"));
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

    @Override
    public ActionForward manageCandidacyDocuments(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final PhdProgramCandidacyProcess process = getProcess(request);

        if (process.getFeedbackRequest() != null) {

            final PhdCandidacyFeedbackRequestElement element = process.getFeedbackRequest().getElement(getLoggedPerson(request));
            if (element != null) {
                request.setAttribute("element", element);
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

    public ActionForward editPersonalData(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        PhdProgramCandidacyProcess process = getProcess(request);

        canEditCandidacy(request, process.getCandidacyHashCode());
        canEditPersonalInformation(request, process.getPerson());

        try {
            ExecuteProcessActivity
                    .run(process.getIndividualProgramProcess(), EditPersonalInformation.class, bean.getPersonBean());
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            request.setAttribute("candidacyBean", bean);
            return mapping.findForward("editPersonalData");
        }

        return viewCandidacy(mapping, form, request, response, process.getCandidacyHashCode());
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

    /*
     * Edit phd information data
     */
    public ActionForward prepareEditPhdInformationData(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        final PhdProgramCandidacyProcessBean candidacyBean = new PhdProgramCandidacyProcessBean(process);

        request.setAttribute("candidacyBean", candidacyBean);
        request.setAttribute("individualProcessBean", new PhdIndividualProgramProcessBean(process.getIndividualProgramProcess()));

        canEditCandidacy(request, process.getCandidacyHashCode());

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

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcess

        return mapping.findForward("editPhdInformationData");
    }

    public ActionForward prepareEditPhdInformationDataFocusAreaPostback(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);

        PhdProgramCandidacyProcessBean candidacyBean = getCandidacyBean();
        final PhdIndividualProgramProcessBean bean = getIndividualProcessBean();

        request.setAttribute("candidacyBean", candidacyBean);
        request.setAttribute("individualProcessBean", bean);

        canEditCandidacy(request, process.getCandidacyHashCode());

        return mapping.findForward("editPhdInformationData");
    }
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.