Examples of MobilityIndividualApplicationProcess


Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

            logger.error(e.getMessage(), e);
            return mapping.findForward("stork-error-authentication-failed");
        }

        String eidentifier = attrManagement.getEIdentifier();
        MobilityIndividualApplicationProcess process =
                ((MobilityApplicationProcess) getCurrentOpenParentProcess()).getOpenProcessByEIdentifier(eidentifier);

        if (process == null) {
            return mapping.findForward("open-candidacy-processes-not-found");
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

        return mapping.findForward("edit-candidacy-degree-and-courses");
    }

    public ActionForward retrieveLearningAgreement(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        MobilityIndividualApplicationProcess process = (MobilityIndividualApplicationProcess) getProcess(request);

        final LearningAgreementDocument document = new LearningAgreementDocument(process);
        byte[] data = ReportsUtils.exportMultipleToPdfAsByteArray(document);

        response.setContentLength(data.length);
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

    public ActionForward retrieveApprovedLearningAgreement(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final ApprovedLearningAgreementDocumentFile file = getDomainObject(request, "agreementId");
        final String hash = request.getParameter("hash");

        final MobilityIndividualApplicationProcess process = file.getProcess();
        final DegreeOfficePublicCandidacyHashCode candidacyHashCode = process.getCandidacyHashCode();
        if (candidacyHashCode.getValue().equals(hash)) {
            final byte[] content = file.getContent();
            response.setContentLength(content.length);
            response.setContentType("application/pdf");
            response.addHeader("Content-Disposition", "attachment; filename=" + file.getFilename());
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

            logger.error(e.getMessage(), e);
            return mapping.findForward("stork-error-authentication-failed");
        }

        String eidentifier = attrManagement.getEIdentifier();
        MobilityIndividualApplicationProcess process = (MobilityIndividualApplicationProcess) getProcess(request);

        if (process == null) {
            return mapping.findForward("open-candidacy-processes-not-found");
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

    }

    @Override
    public ActionForward viewCandidacy(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        MobilityIndividualApplicationProcess individualCandidacyProcess =
                (MobilityIndividualApplicationProcess) request.getAttribute("individualCandidacyProcess");

        if (individualCandidacyProcess == null) {
            individualCandidacyProcess = (MobilityIndividualApplicationProcess) getProcess(request);
        }

        if (request.getAttribute("individualCandidacyProcessBean") == null) {
            MobilityIndividualApplicationProcessBean bean =
                    new MobilityIndividualApplicationProcessBean(individualCandidacyProcess);
            bean.setPersonBean(new PersonBean(individualCandidacyProcess.getPersonalDetails()));
            request.setAttribute("individualCandidacyProcessBean", bean);
        }

        return mapping.findForward("show-candidacy-details");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

                    addActionMessage(request, "error.candidacy.hash.code.already.bounded");
                    return mapping.findForward("show-pre-creation-candidacy-form");
                }
            }

            MobilityIndividualApplicationProcess process = (MobilityIndividualApplicationProcess) createNewPublicProcess(bean);

            request.setAttribute("process", process);
            request.setAttribute("mappingPath", mapping.getPath());
            request.setAttribute("individualCandidacyProcess", process);
            request.setAttribute("endSubmissionDate", getFormattedApplicationSubmissionEndDate());
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

    }

    private String getAlmaMater(final Person person, final Registration registration) {
        for (IndividualCandidacyPersonalDetails shite : person.getIndividualCandidaciesSet()) {
            if (shite.getCandidacy().getCandidacyProcess() instanceof MobilityIndividualApplicationProcess) {
                MobilityIndividualApplicationProcess erasmusShite =
                        (MobilityIndividualApplicationProcess) shite.getCandidacy().getCandidacyProcess();
                return erasmusShite.getCandidacy().getMobilityStudentData().getSelectedOpening().getMobilityAgreement()
                        .getUniversityUnit().getNameI18n().toString();
            }
        }

        if (registration.getRegistrationProtocol().attemptAlmaMatterFromPrecedent()) {
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

    }

    private String getAlmaMaterCountry(final Person person, final Registration registration) {
        for (IndividualCandidacyPersonalDetails shite : person.getIndividualCandidaciesSet()) {
            if (shite.getCandidacy().getCandidacyProcess() instanceof MobilityIndividualApplicationProcess) {
                MobilityIndividualApplicationProcess erasmusShite =
                        (MobilityIndividualApplicationProcess) shite.getCandidacy().getCandidacyProcess();
                return erasmusShite.getCandidacy().getMobilityStudentData().getSelectedOpening().getMobilityAgreement()
                        .getUniversityUnit().getCountry().getLocalizedName().toString();
            }
        }

        if (registration.getRegistrationProtocol().attemptAlmaMatterFromPrecedent()) {
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

        return prepareExecuteViewApprovedLearningAgreements(mapping, actionForm, request, response);
    }

    public ActionForward retrieveLearningAgreement(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        MobilityIndividualApplicationProcess process = getProcess(request);

        final LearningAgreementDocument document = new LearningAgreementDocument(process);
        byte[] data = ReportsUtils.exportMultipleToPdfAsByteArray(document);

        response.setContentLength(data.length);
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

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

    public ActionForward enrolStudent(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        MobilityIndividualApplicationProcess process = getProcess(request);
        MobilityIndividualApplication candidacy = process.getCandidacy();
        Boolean restrictEnrollment;
        ErasmusBolonhaStudentEnrollmentBean bean;
        if (candidacy.getRegistration().getActiveStudentCurricularPlan() != null) {
            restrictEnrollment = true;
            ExecutionSemester semester = ExecutionSemester.readByYearMonthDay(new YearMonthDay());
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.