Examples of PhdProgramCandidacyProcess


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

    }

    public ActionForward validateApplication(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final PhdProgramCandidacyProcess process = getProcess(request);

        if (!validateProcess(request, process.getIndividualProgramProcess())) {
            return prepareValidateApplication(mapping, form, request, response);
        }

        try {
            ExecuteProcessActivity.run(process.getIndividualProgramProcess(), ValidatedByCandidate.class, null);
            addSuccessMessage(request, "message.validation.with.success");

        } catch (final DomainException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            return prepareValidateApplication(mapping, form, request, response);
        }

        return viewCandidacy(mapping, form, request, response, process.getCandidacyHashCode());

    }
View Full Code Here

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

     *
     * Upload photo
     */
    public ActionForward prepareUploadPhoto(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        final PhdProgramCandidacyProcessBean bean = new PhdProgramCandidacyProcessBean(process);

        request.setAttribute("candidacyBean", bean);
        request.setAttribute("uploadPhotoBean", new PhotographUploadBean());
        return mapping.findForward("uploadPhoto");
View Full Code Here

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

    }

    public ActionForward removeDocument(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramProcessDocument document = getDomainObject(request, "documentId");
        final PhdProgramCandidacyProcess process = (PhdProgramCandidacyProcess) document.getPhdProgramProcess();
        final PhdProgramCandidacyProcessBean bean = new PhdProgramCandidacyProcessBean(process);
        try {
            ExecuteProcessActivity.run(process,
                    org.fenixedu.academic.domain.phd.candidacy.activities.RemoveCandidacyDocument.class, document);
            addSuccessMessage(request, "message.documents.uploaded.with.success");
View Full Code Here

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

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

        try {
            final PhdProgramCandidacyProcess process = getProcess(request);
            ExecuteProcessActivity.run(process,
                    org.fenixedu.academic.domain.phd.candidacy.activities.RequestRatifyCandidacy.class,
                    getRenderedObject("stateBean"));
            return viewIndividualProgramProcess(request, process);
View Full Code Here

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

     */

    public ActionForward candidacyFeedbackDocumentsDownload(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws IOException {

        final PhdProgramCandidacyProcess process = getProcess(request);
        final Set<PhdProgramProcessDocument> documents = process.getFeedbackRequest().getSharedDocumentsContent();

        if (!documents.isEmpty()) {
            writeFile(response, getZipDocumentsFilename(process.getIndividualProgramProcess()), PhdDocumentsZip.ZIP_MIME_TYPE,
                    createZip(documents));
            return null;
        }

        return prepareUploadCandidacyFeedbackInvalid(mapping, actionForm, request, response);
View Full Code Here

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

        return (List<PhdProgramDocumentUploadBean>) getObjectFromViewState("documentsToUpload");
    }

    public ActionForward prepareRequestCandidacyReview(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        final PhdProgramCandidacyProcessStateBean bean =
                new PhdProgramCandidacyProcessStateBean(process.getIndividualProgramProcess());
        bean.setState(PhdProgramCandidacyProcessState.PENDING_FOR_COORDINATOR_OPINION);
        request.setAttribute("stateBean", bean);
        return mapping.findForward("requestCandidacyReview");
    }
View Full Code Here

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

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

        try {
            final PhdProgramCandidacyProcess process = getProcess(request);
            ExecuteProcessActivity.run(process,
                    org.fenixedu.academic.domain.phd.candidacy.activities.RequestCandidacyReview.class.getSimpleName(),
                    getRenderedObject("stateBean"));
            return viewIndividualProgramProcess(request, process);
View Full Code Here

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

        request.setAttribute("registrationFormalizationBean", bean);
        return mapping.findForward("registrationFormalization");
    }

    private void checkCandidacyPreConditions(final HttpServletRequest request) {
        final PhdProgramCandidacyProcess process = getProcess(request);
        final Person person = process.getPerson();

        request.setAttribute("idDocument", process.hasAnyDocuments(PhdIndividualProgramDocumentType.ID_DOCUMENT));
        request.setAttribute("personalPhoto", process.getPerson().getPersonalPhoto() != null);
        request.setAttribute("healthBulletin", process.hasAnyDocuments(PhdIndividualProgramDocumentType.HEALTH_BULLETIN));
        request.setAttribute("habilitationsCertificates", person.getAssociatedQualificationsSet().size() == process
                .getDocumentsCount(PhdIndividualProgramDocumentType.HABILITATION_CERTIFICATE_DOCUMENT));

        if (!process.hasStudyPlan()) {
            addWarningMessage(request,
                    "error.phd.candidacy.PhdProgramCandidacyProcess.registrationFormalization.must.create.study.plan");
        } else if (process.isStudyPlanExempted()) {
            addWarningMessage(request, "message.phd.candidacy.registration.formalization.study.plan.is.exempted");
        }
    }
View Full Code Here

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

    }

    // End of RegistrationFormalization

    private boolean mustSelectFirstAnyRegistratiom(HttpServletRequest request) {
        final PhdProgramCandidacyProcess process = getProcess(request);

        return process.hasStudyPlan() && process.hasPhdProgram()
                && process.hasActiveRegistrationFor(process.getPhdProgramLastActiveDegreeCurricularPlan());
    }
View Full Code Here

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

    }

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

        final PhdProgramCandidacyProcess process = getProcess(request);
        final RegistrationFormalizationBean bean = new RegistrationFormalizationBean(process);
        bean.setWhenStartedStudies(process.getWhenStartedStudies());

        request.setAttribute("registrationFormalizationBean", bean);
        return mapping.findForward("associateRegistration");
    }
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.