Package org.fenixedu.academic.domain.phd.candidacy

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


        return mapping.findForward("createCandidacyStepTwo");
    }

    public ActionForward returnCreateCandidacyStepTwo(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        request.setAttribute("candidacyBean", bean);
        clearDocumentsInformation(bean);
        RenderUtils.invalidateViewState();
        return mapping.findForward("createCandidacyStepTwo");
    }
View Full Code Here


    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        final PhdParticipantBean guiding = new PhdParticipantBean(bean.getIndividualProgramProcess());
        guiding.setParticipantType(PhdParticipantType.EXTERNAL);

        bean.addGuiding(guiding);

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();

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

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        bean.removeGuiding(getIntegerFromRequest(request, "removeIndex").intValue());

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();

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

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        bean.addQualification(new QualificationBean());

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();

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

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        bean.removeQualification(getIntegerFromRequest(request, "removeIndex").intValue());

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();

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

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        bean.addCandidacyReferee(new PhdCandidacyRefereeBean());

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();

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

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        if (bean.getCandidacyReferees().size() > MINIMUM_CANDIDACY_REFEREES) {
            bean.removeCandidacyReferee(getIntegerFromRequest(request, "removeIndex").intValue());
        }

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();
View Full Code Here

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        try {
            CreateNewProcess.run(PublicPhdIndividualProgramProcess.class, bean);
            sendApplicationSuccessfullySubmitedEmail(bean.getCandidacyHashCode(), request);
        } catch (final DomainException e) {
            if ("error.person.existent.docIdAndType".equals(e.getKey())) {
                addErrorMessage(request, "error.phd.public.candidacy.fill.personal.information.and.institution.id", e.getArgs());
            } else {
                addErrorMessage(request, e.getKey(), e.getArgs());
            }
            bean.clearPerson();

            // clearDocumentsInformation(bean);
            return createCandidacyStepOneInvalid(mapping, form, request, response);
        }

        final String url = EPFLPhdCandidacyProcessProperties.getPublicCandidacyAccessLink(bean.getCandidacyHashCode());
        return new FenixActionForward(request, new ActionForward(url, true));
    }
View Full Code Here

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        final PhdProgramDocumentUploadBean document =
                createDocumentBean(PhdIndividualProgramDocumentType.HABILITATION_CERTIFICATE_DOCUMENT);
        bean.addHabilitationCertificateDocument(document);

        request.setAttribute("candidacyBean", bean);
        RenderUtils.invalidateViewState();

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

    }

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

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
        if (bean.getHabilitationCertificateDocuments().size() > MINIMUM_HABILITATIONS_AND_CERTIFICATES) {
            bean.removeHabilitationCertificateDocument(getIntegerFromRequest(request, "removeIndex").intValue());
        }
        request.setAttribute("candidacyBean", bean);
        clearDocumentsInformation(bean);
        RenderUtils.invalidateViewState();
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.candidacy.PhdProgramCandidacyProcessBean

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.