Package org.fenixedu.academic.domain.phd.conclusion

Examples of org.fenixedu.academic.domain.phd.conclusion.PhdConclusionProcessBean


    }

    public ActionForward prepareCreateConclusionProcess(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdIndividualProgramProcess individualProgramProcess = getProcess(request).getIndividualProgramProcess();
        PhdConclusionProcessBean bean = new PhdConclusionProcessBean(individualProgramProcess);

        LocalDate conclusionDate = null;
        if (!individualProgramProcess.getStudyPlan().isExempted()) {
            conclusionDate = individualProgramProcess.getRegistration().getConclusionDateForBolonha().toLocalDate();
        } else {
            conclusionDate = bean.getConclusionDate();
        }

        PhdProgramInformation phdProgramInformation =
                getProcess(request).getIndividualProgramProcess().getPhdProgram().getPhdProgramInformationByDate(conclusionDate);
View Full Code Here


        return mapping.findForward("createConclusionProcess");
    }

    public ActionForward createConclusionProcess(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdConclusionProcessBean bean = getRenderedObject("phdConclusionProcessBean");
        try {
            ExecuteProcessActivity.run(getProcess(request), ConcludePhdProcess.class, bean);
        } catch (DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            return createConclusionProcessInvalid(mapping, form, request, response);
View Full Code Here

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

    public ActionForward createConclusionProcessInvalid(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdConclusionProcessBean bean = getRenderedObject("phdConclusionProcessBean");
        PhdIndividualProgramProcess individualProgramProcess = getProcess(request).getIndividualProgramProcess();

        LocalDate conclusionDate = null;
        if (!individualProgramProcess.getStudyPlan().isExempted()) {
            conclusionDate = individualProgramProcess.getRegistration().getConclusionDateForBolonha().toLocalDate();
        } else {
            conclusionDate = bean.getConclusionDate();
        }

        PhdProgramInformation phdProgramInformation =
                getProcess(request).getIndividualProgramProcess().getPhdProgram().getPhdProgramInformationByDate(conclusionDate);
View Full Code Here

        }
    }

    @Override
    protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {
        PhdConclusionProcessBean bean = (PhdConclusionProcessBean) object;
        PhdConclusionProcess.create(bean, userView.getPerson());

        PhdIndividualProgramProcess individualProgramProcess = process.getIndividualProgramProcess();

        if (!PhdIndividualProgramProcessState.CONCLUDED.equals(individualProgramProcess.getActiveState())) {
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.conclusion.PhdConclusionProcessBean

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.