Package org.fenixedu.academic.domain.phd.thesis

Examples of org.fenixedu.academic.domain.phd.thesis.PhdThesisProcessBean


        return new EnumConverter();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        PhdThesisProcessBean bean = (PhdThesisProcessBean) source;
        return bean.getThesisProcess().getPossibleNextStates();
    }
View Full Code Here


    // jury report feedback operations

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

        final PhdThesisProcessBean bean = new PhdThesisProcessBean();
        bean.addDocument(new PhdProgramDocumentUploadBean(PhdIndividualProgramDocumentType.JURY_REPORT_FEEDBACK));
        bean.setJuryElement(getProcess(request).getThesisJuryElement(AccessControl.getPerson()));

        request.setAttribute("thesisProcessBean", bean);
        request.setAttribute("thesisDocuments", getProcess(request).getThesisDocumentsToFeedback());

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

    // Schedule thesis meeting

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

        final PhdThesisProcessBean bean = new PhdThesisProcessBean();
        final PhdThesisProcess thesisProcess = getProcess(request);

        bean.setThesisProcess(thesisProcess);
        setDefaultMeetingMailInformation(bean, thesisProcess);

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

    // Begin thesis jury elements management

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

        final PhdThesisProcessBean bean = new PhdThesisProcessBean();
        bean.setWhenJuryDesignated(new LocalDate());
        bean.setGenerateAlert(true);
        bean.addDocument(new PhdProgramDocumentUploadBean(PhdIndividualProgramDocumentType.JURY_ELEMENTS));
        request.setAttribute("thesisProcessBean", bean);

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

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

    public ActionForward addStateInvalid(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdThesisProcessBean bean = getRenderedObject("thesisProcessBean");

        request.setAttribute("thesisProcessBean", bean);

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

    }

    @Override
    protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {

        final PhdThesisProcessBean thesisBean = (PhdThesisProcessBean) object;

        process.setWhenJuryDesignated(process.getIndividualProgramProcess().getCandidacyDate());
        LocalDate candidacyDate = process.getIndividualProgramProcess().getCandidacyDate();
        process.setWhenJuryValidated(candidacyDate);

        process.createState(PhdThesisProcessStateType.WAITING_FOR_JURY_REPORTER_FEEDBACK, userView.getPerson(),
                thesisBean.getRemarks());

        if (process.getMeetingProcess() == null) {
            Process.createNewProcess(userView, PhdMeetingSchedulingProcess.class, thesisBean);
        }
View Full Code Here

    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess individualProcess, User userView,
            Object object) {

        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;
        bean.setProcess(individualProcess);

        Process.createNewProcess(userView, PhdThesisProcess.class, bean);
        individualProcess.createState(PhdIndividualProgramProcessState.THESIS_DISCUSSION, userView.getPerson(), "");

        return individualProcess;
View Full Code Here

        }

        @Override
        protected PhdMeetingSchedulingProcess executeActivity(PhdMeetingSchedulingProcess process, User userView, Object object) {

            final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;
            final PhdMeetingSchedulingProcess result = new PhdMeetingSchedulingProcess(bean.getThesisProcess());

            result.createState(PhdMeetingSchedulingProcessStateType.WAITING_FIRST_THESIS_MEETING_REQUEST, userView.getPerson(),
                    bean.getRemarks());

            return result;
        }
View Full Code Here

                ExecuteProcessActivity.run(individualProcess, AddAssistantGuidingInformation.class.getSimpleName(),
                        assistantGuidingBean);
            }
        }

        final PhdThesisProcessBean thesisBean = new PhdThesisProcessBean(individualProcess);
        thesisBean.setWhenThesisDiscussionRequired(getProcessBean().getRequirementDate());
        thesisBean.setGenerateAlert(false);
        thesisBean.setToNotify(false);
        ExecuteProcessActivity.run(individualProcess, RequestPublicThesisPresentation.class.getSimpleName(), thesisBean);
    }
View Full Code Here

        // + guidingNumber);
    }

    private void skipJuryActivities(final User userView, final PhdIndividualProgramProcess individualProcess) {
        final PhdThesisProcess thesisProcess = individualProcess.getThesisProcess();
        final PhdThesisProcessBean thesisBean = new PhdThesisProcessBean();
        thesisBean.setThesisProcess(thesisProcess);
        thesisBean.setToNotify(false);
        thesisBean.setGenerateAlert(false);
        ExecuteProcessActivity.run(individualProcess.getThesisProcess(), SkipThesisJuryActivities.class.getSimpleName(),
                thesisBean);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.thesis.PhdThesisProcessBean

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.