Package org.fenixedu.academic.domain.candidacy

Examples of org.fenixedu.academic.domain.candidacy.CandidacySituation


        if (getUserView(request).getPerson().getCandidaciesSet().size() == 1) {
            final Candidacy candidacy = getUserView(request).getPerson().getCandidaciesSet().iterator().next();

            if (candidacy instanceof DegreeCandidacy || candidacy instanceof IMDCandidacy) {
                request.setAttribute("candidacyID", candidacy.getExternalId());
                final CandidacySituation activeCandidacySituation = candidacy.getActiveCandidacySituation();
                if (activeCandidacySituation != null
                        && CandidacySituationType.STAND_BY == activeCandidacySituation.getCandidacySituationType()) {
                    request.setAttribute("operationType", CandidacyOperationType.FILL_PERSONAL_DATA.toString());
                    return mapping.findForward("fillData");
                } else {
                    return mapping.findForward("showCandidacyDetails");
                }
View Full Code Here


        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);
            break;
        case STAND_BY_WITH_MISSING_INFORMATION:
        case STAND_BY_WITH_COMPLETE_INFORMATION:
            situation = new StandByCandidacySituation(candidacy);
            break;
        case CONCLUDED:
            situation = new AdmittedCandidacySituation(candidacy);
            break;
        case REJECTED:
            situation = new NotAdmittedCandidacySituation(candidacy);
            break;
        default:
        }

        if (situation != null) {
            situation.setSituationDate(this.getStateDate());
        }
    }
View Full Code Here

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

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

        switch (this.getType()) {
        case WORK_DEVELOPMENT:
            situation = new RegisteredCandidacySituation(candidacy);
            break;
        case NOT_ADMITTED:
            situation = new NotAdmittedCandidacySituation(candidacy);
            break;
        case CANCELLED:
            situation = new CancelledCandidacySituation(candidacy);
            break;
        default:
        }

        if (situation != null) {
            situation.setSituationDate(this.getStateDate());
        }
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.candidacy.CandidacySituation

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.