Examples of PhdParticipantBean


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

        final PhdProgramCandidacyProcessBean bean = new PhdProgramCandidacyProcessBean(process);

        canEditCandidacy(request, process.getCandidacyHashCode());

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

        PhdProgramDocumentUploadBean guidingAcceptanceLetter = new PhdProgramDocumentUploadBean();
        guidingAcceptanceLetter.setType(PhdIndividualProgramDocumentType.GUIDER_ACCEPTANCE_LETTER);
        guidingBean.setGuidingAcceptanceLetter(guidingAcceptanceLetter);

        request.setAttribute("guidingBean", guidingBean);

        PhdParticipantBean assistantGuidingBean = new PhdParticipantBean();
        assistantGuidingBean.setParticipantType(PhdParticipantType.EXTERNAL);

        PhdProgramDocumentUploadBean assistantGuidingAcceptanceLetter = new PhdProgramDocumentUploadBean();
        assistantGuidingAcceptanceLetter.setType(PhdIndividualProgramDocumentType.ASSISTENT_GUIDER_ACCEPTANCE_LETTER);
        assistantGuidingBean.setGuidingAcceptanceLetter(assistantGuidingAcceptanceLetter);

        request.setAttribute("assistantGuidingBean", assistantGuidingBean);

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

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

    }

    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));
View Full Code Here

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

    }

    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");
View Full Code Here

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

    }

    private List<PhdParticipantBean> createGuidingsMinimumList(final PhdIndividualProgramProcess process) {
        final List<PhdParticipantBean> result = new ArrayList<PhdParticipantBean>();

        final PhdParticipantBean g1 = new PhdParticipantBean(process);
        g1.setParticipantType(PhdParticipantType.EXTERNAL);
        g1.setWorkLocation(Unit.getInstitutionAcronym());

        final PhdParticipantBean g2 = new PhdParticipantBean(process);
        g2.setParticipantType(PhdParticipantType.EXTERNAL);
        // TODO: change this according to collaboration type acronym
        g2.setWorkLocation("EPFL");

        result.add(g1);
        result.add(g2);

        return result;
View Full Code Here

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

    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();
View Full Code Here

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

        if (bean.getCandidacyHashCode().getIndividualProgramProcess().getGuidingsSet().isEmpty()) {
            bean.setGuidings(createGuidingsMinimumList(bean.getIndividualProgramProcess()));
        } else {
            bean.setGuidings(new ArrayList<PhdParticipantBean>());
            bean.addGuiding(new PhdParticipantBean(bean.getIndividualProgramProcess()));
        }

        RenderUtils.invalidateViewState();
        return mapping.findForward("editCandidacyGuidings");
    }
View Full Code Here

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

    }

    public ActionForward prepareAddGuidingInformation(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        addGuidingsContextInformation(mapping, request);
        request.setAttribute("guidingBean", new PhdParticipantBean(getProcess(request)));
        return mapping.findForward("manageGuidingInformation");
    }
View Full Code Here

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

    }

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

        final PhdParticipantBean bean = getRenderedObject("guidingBean");
        try {
            ExecuteProcessActivity.run(getProcess(request), AddGuidingInformation.class.getSimpleName(), bean);
            addSuccessMessage(request, "message.guiding.created.with.success");

        } catch (DomainException e) {
View Full Code Here

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

    }

    public ActionForward prepareAddAssistantGuidingInformation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        addGuidingsContextInformation(mapping, request);
        request.setAttribute("assistantGuidingBean", new PhdParticipantBean(getProcess(request)));
        return mapping.findForward("manageGuidingInformation");
    }
View Full Code Here

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

    }

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

        final PhdParticipantBean bean = getRenderedObject("assistantGuidingBean");
        try {
            ExecuteProcessActivity.run(getProcess(request), AddAssistantGuidingInformation.class.getSimpleName(), bean);
            addSuccessMessage(request, "message.assistant.guiding.created.with.success");

        } catch (DomainException e) {
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.