Examples of PhdProgramCandidacyProcess


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

        return mapping.findForward("editReferees");
    }

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

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), AddCandidacyReferees.class,
                    Collections.singletonList(getRenderedObject("refereeBean")));

            addSuccessMessage(request, "message.referee.information.create.success");
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
View Full Code Here

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

        return prepareEditReferees(mapping, form, request, response);
    }

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

        request.setAttribute("candidacyBean", getCandidacyBean());
        request.setAttribute("refereeBean", getPhdCandidacyReferee());

        canEditCandidacy(request, process.getCandidacyHashCode());

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

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

        return mapping.findForward("createRefereeLetterSuccess");
    }

    public ActionForward removeReferee(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        final PhdCandidacyReferee referee = getDomainObject(request, "candidacyRefereeId");

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), RemoveCandidacyReferee.class, referee);

            addSuccessMessage(request, "message.referee.information.remove.success");
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            return editRefereesInvalid(mapping, form, request, response);
View Full Code Here

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

     * Edit Phd Guidings
     */

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

        canEditCandidacy(request, process.getCandidacyHashCode());

        request.setAttribute("candidacyBean", bean);
        PhdParticipantBean guidingBean = new PhdParticipantBean();
        guidingBean.setParticipantType(PhdParticipantType.EXTERNAL);

View Full Code Here

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

        return mapping.findForward("editGuidings");
    }

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

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), AddGuidingsInformation.class,
                    Collections.singletonList(bean));

            addSuccessMessage(request, "message.guiding.created.with.success");
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
View Full Code Here

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

        return prepareEditCandidacyGuidings(mapping, form, request, response);
    }

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

        request.setAttribute("candidacyBean", getCandidacyBean());
        request.setAttribute("guidingBean", getGuidingBean());
        request.setAttribute("assistantGuidingBean", getAssistantGuidingBean());

        canEditCandidacy(request, process.getCandidacyHashCode());

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

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

        return mapping.findForward("editGuidings");
    }

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

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), AddAssistantGuidingInformation.class, bean);

            addSuccessMessage(request, "message.assistant.guiding.created.with.success");
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            return addGuidingInvalid(mapping, form, request, response);
View Full Code Here

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

        return prepareEditCandidacyGuidings(mapping, form, request, response);
    }

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

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), DeleteGuiding.class,
                    getDomainObject(request, "guidingId"));
            addSuccessMessage(request, "message.guiding.deleted.with.success");
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
        }
View Full Code Here

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

        return prepareEditCandidacyGuidings(mapping, form, request, response);
    }

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

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), DeleteAssistantGuiding.class,
                    getDomainObject(request, "guidingId"));
            addSuccessMessage(request, "message.guiding.deleted.with.success");
        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
        }
View Full Code Here

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

     * Validate application
     */

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

        canEditCandidacy(request, process.getCandidacyHashCode());
        validateProcess(request, process.getIndividualProgramProcess());

        request.setAttribute("candidacyBean", bean);

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