Examples of PhdThesisProcessBean


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

                thesisBean);
    }

    private void manageMeetingsAndFinalThesis(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);
        final PhdMeetingSchedulingProcess meetingProcess = thesisProcess.getMeetingProcess();
        ExecuteProcessActivity.run(meetingProcess, ScheduleFirstThesisMeetingRequest.class, thesisBean);

        thesisBean.setScheduledDate(getMeetingDate());
        thesisBean.setScheduledPlace("");
        ExecuteProcessActivity.run(meetingProcess, SkipScheduleFirstThesisMeeting.class, thesisBean);

        thesisBean.setScheduledDate(getMostAccurateDiscussionDateTime());
        thesisBean.setScheduledPlace("");
        ExecuteProcessActivity.run(thesisProcess, SkipScheduleThesisDiscussion.class, thesisBean);

        ExecuteProcessActivity.run(thesisProcess, SubmitThesis.class, thesisBean);
    }
View Full Code Here

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

        }
    }

    private void ratifyFinalThesis(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);
        thesisBean.setWhenFinalThesisRatified(getProcessBean().getEdictDate());
        ExecuteProcessActivity.run(thesisProcess, RatifyFinalThesis.class, thesisBean);

        thesisBean.setConclusionDate(getProcessBean().getEdictDate());
        thesisBean.setFinalGrade(getProcessBean().getClassification());
        ExecuteProcessActivity.run(thesisProcess, SetFinalGrade.class, thesisBean);
    }
View Full Code Here

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

        }
    }

    @Override
    protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {
        PhdThesisProcessBean bean = (PhdThesisProcessBean) object;
        process.setPhdJuryElementsRatificationEntity(bean.getPhdJuryElementsRatificationEntity());

        if (PhdJuryElementsRatificationEntity.CUSTOM.equals(bean.getPhdJuryElementsRatificationEntity())) {
            process.setRatificationEntityCustomMessage(bean.getRatificationEntityCustomMessage());
        }

        process.setPresidentTitle(bean.getPresidentTitle());

        return process;

    }
View Full Code Here

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

        }
    }

    @Override
    protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {
        PhdThesisProcessBean bean = (PhdThesisProcessBean) object;

        PhdThesisProcessState.createWithGivenStateDate(process, bean.getProcessState(), userView.getPerson(), bean.getRemarks(),
                bean.getStateDate().toDateTimeAtStartOfDay());

        return process;
    }
View Full Code Here

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

    }

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

        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;

        if (bean.isToNotify()) {

            // Alert president jury element
            AlertService.alertParticipants(process.getIndividualProgramProcess(), AlertMessage
                    .create("message.phd.request.schedule.meeting.president.notification.subject"), AlertMessage
                    .create("message.phd.request.schedule.meeting.president.notification.body"), process
                    .getPresidentJuryElement().getParticipant());

            AlertService.alertResponsibleCoordinators(process.getIndividualProgramProcess(), AlertMessage
                    .create("message.phd.request.schedule.meeting.coordinator.notification.subject"), AlertMessage.create(
                    "message.phd.request.schedule.meeting.coordinator.notification.body", process.getPresidentJuryElement()
                            .getNameWithTitle()));

        }

        process.createState(PhdThesisProcessStateType.WAITING_FOR_THESIS_MEETING_SCHEDULING, userView.getPerson(),
                bean.getRemarks());

        return process;
    }
View Full Code Here

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

    }

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

        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;

        process.setDiscussionDate(bean.getScheduledDate());
        process.setDiscussionPlace(bean.getScheduledPlace());

        process.createState(PhdThesisProcessStateType.THESIS_DISCUSSION_DATE_SCHECULED, userView.getPerson(), bean.getRemarks());

        return process;
    }
View Full Code Here

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

    }

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

        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;

        if (bean.isToNotify()) {
            notifyJuryElements(process, bean);
            alertAcademicOfficeAndCoordinatorAndGuiders(process, bean);
        }

        checkMeetingInformation(bean);

        process.setMeetingDate(bean.getScheduledDate());
        process.setMeetingPlace(bean.getScheduledPlace());

        process.createState(PhdThesisProcessStateType.WAITING_FOR_THESIS_DISCUSSION_DATE_SCHEDULING, userView.getPerson(),
                bean.getRemarks());

        return process;
    }
View Full Code Here

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

        }
    }

    @Override
    protected PhdMeetingSchedulingProcess executeActivity(PhdMeetingSchedulingProcess process, User userView, Object object) {
        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;
        final PhdThesisProcess thesisProcess = process.getThesisProcess();

        if (bean.isToNotify()) {
            // Alert president jury element
            AlertService.alertParticipants(thesisProcess.getIndividualProgramProcess(), AlertMessage
                    .create("message.phd.request.schedule.meeting.president.notification.subject"), AlertMessage
                    .create("message.phd.request.schedule.meeting.president.notification.body"), thesisProcess
                    .getPresidentJuryElement().getParticipant());

            AlertService.alertResponsibleCoordinators(thesisProcess.getIndividualProgramProcess(), AlertMessage
                    .create("message.phd.request.schedule.meeting.coordinator.notification.subject"), AlertMessage.create(
                    "message.phd.request.schedule.meeting.coordinator.notification.body", thesisProcess.getPresidentJuryElement()
                            .getNameWithTitle()));

        }

        process.createState(PhdMeetingSchedulingProcessStateType.WAITING_THESIS_MEETING_SCHEDULE, userView.getPerson(),
                bean.getRemarks());

        return process;
    }
View Full Code Here

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

    }

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

        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;

        if (bean.isToNotify()) {
            notifyJuryElements(process, bean);
            alertStudent(process, bean);
        }

        checkDiscussionInformation(bean);

        process.setDiscussionDate(bean.getScheduledDate());
        process.setDiscussionPlace(bean.getScheduledPlace());

        process.createState(PhdThesisProcessStateType.THESIS_DISCUSSION_DATE_SCHECULED, userView.getPerson(), bean.getRemarks());

        return process;
    }
View Full Code Here

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

        }
    }

    @Override
    protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {
        final PhdThesisProcessBean bean = (PhdThesisProcessBean) object;
        process.setWhenJuryValidated(bean.getWhenJuryValidated());

        process.createState(PhdThesisProcessStateType.JURY_VALIDATED, userView.getPerson(), "");

        if (bean.isToNotify()) {
            /*
             * TODO: SEND ALERT after create!!!!!!!!!!!!
             */
        }

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.