Examples of PhdProgramCandidacyProcess


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

        return individualProcess;
    }

    private void sendCandidacyToCoordinator(final User userView, final PhdIndividualProgramProcess individualProcess) {
        final PhdProgramCandidacyProcess candidacyProcess = individualProcess.getCandidacyProcess();

        final PhdProgramCandidacyProcessStateBean reviewBean =
                new PhdProgramCandidacyProcessStateBean(candidacyProcess.getIndividualProgramProcess());
        reviewBean.setState(PhdProgramCandidacyProcessState.PENDING_FOR_COORDINATOR_OPINION);
        reviewBean.setGenerateAlert(false);
        ExecuteProcessActivity.run(candidacyProcess,
                org.fenixedu.academic.domain.phd.candidacy.activities.RequestCandidacyReview.class.getSimpleName(), reviewBean);
View Full Code Here

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

                org.fenixedu.academic.domain.phd.candidacy.activities.RequestRatifyCandidacy.class.getSimpleName(),
                requestRatifyBean);
    }

    private void ratifyCandidacyProcess(final User userView, final PhdIndividualProgramProcess individualProcess) {
        final PhdProgramCandidacyProcess candidacyProcess = individualProcess.getCandidacyProcess();
        final RatifyCandidacyBean ratifyBean = new RatifyCandidacyBean(candidacyProcess);
        ratifyBean.setWhenRatified(getProcessBean().getRatificationDate());
        ExecuteProcessActivity.run(candidacyProcess,
                org.fenixedu.academic.domain.phd.candidacy.activities.RatifyCandidacy.class.getSimpleName(), ratifyBean);
    }
View Full Code Here

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

        final PhdStudyPlanBean planBean = new PhdStudyPlanBean(individualProcess);
        planBean.setExempted(true);
        ExecuteProcessActivity.run(individualProcess, AddStudyPlan.class.getSimpleName(), planBean);

        final PhdProgramCandidacyProcess candidacyProcess = individualProcess.getCandidacyProcess();
        final RegistrationFormalizationBean formalizationBean = new RegistrationFormalizationBean(candidacyProcess);
        formalizationBean.setWhenStartedStudies(getMostAccurateStartDevelopmentDate());
        formalizationBean.setSelectRegistration(false);
        ExecuteProcessActivity.run(candidacyProcess,
                org.fenixedu.academic.domain.phd.candidacy.activities.RegistrationFormalization.class.getSimpleName(),
View Full Code Here

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

        updateSituationOnPHDCandidacy();
    }

    public void updateSituationOnPHDCandidacy() {
        PhdProgramCandidacyProcess process = getProcess();

        if (this.getStateDate() == null) {
            throw new DomainException("state.date.null");
        }

        PHDProgramCandidacy candidacy = process.getCandidacy();
        CandidacySituation situation = null;

        switch (this.getType()) {
        case PRE_CANDIDATE:
            situation = new PreCandidacySituation(candidacy);
View Full Code Here

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

        if (!process.isAllowedToManageProcess(userView)) {
            throw new PreConditionNotValidException();
        }

        final PhdProgramCandidacyProcess candidacyProcess = process.getCandidacyProcess();

        if (candidacyProcess.hasState(PhdProgramCandidacyProcessState.PENDING_FOR_COORDINATOR_OPINION)) {
            return;
        }

        throw new PreConditionNotValidException();
    }
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.