Package org.fenixedu.academic.domain.candidacyProcess.mobility

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


        return mapping.findForward("enrol-student");
    }

    public ActionForward postBack(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws FenixServiceException {
        MobilityIndividualApplicationProcess process = getProcess(request);
        MobilityIndividualApplication candidacy = process.getCandidacy();
        ExecutionSemester semester = ((ErasmusBolonhaStudentEnrollmentBean) getRenderedObject()).getExecutionPeriod();
        RenderUtils.invalidateViewState();
        ErasmusBolonhaStudentEnrollmentBean bean =
                new ErasmusBolonhaStudentEnrollmentBean(candidacy.getRegistration().getActiveStudentCurricularPlan(), semester,
                        null, CurricularRuleLevel.ENROLMENT_NO_RULES, candidacy);
View Full Code Here


                studentCurricularPlan.removeCurriculumModulesFromNoCourseGroupCurriculumGroup(
                        Collections.<CurriculumModule> singletonList(enrolment), executionSemester,
                        NoCourseGroupCurriculumGroupType.STANDALONE);
            }
        }
        MobilityIndividualApplicationProcess process = getProcess(request);
        MobilityIndividualApplication candidacy = process.getCandidacy();
        ErasmusBolonhaStudentEnrollmentBean bean =
                new ErasmusBolonhaStudentEnrollmentBean(candidacy.getRegistration().getActiveStudentCurricularPlan(),
                        erasmusBolonhaStudentEnrollmentBean.getExecutionPeriod(), null, CurricularRuleLevel.ENROLMENT_NO_RULES,
                        candidacy);
        RenderUtils.invalidateViewState();
View Full Code Here

        } else {
            return new Predicate<IndividualCandidacyProcess>() {
                @Override
                public boolean apply(IndividualCandidacyProcess process) {

                    MobilityIndividualApplicationProcess mobilityProcess = (MobilityIndividualApplicationProcess) process;

                    if (mobilityProgram != null && !mobilityProcess.getMobilityProgram().equals(mobilityProgram)) {
                        return false;
                    }

                    return ((MobilityIndividualApplicationProcess) process).getCandidacy().getSelectedDegree() == selectedDegree;
                }
View Full Code Here

    private static void editForErasmus(IndividualCandidacyProcessBean processBean) {
        MobilityIndividualApplicationProcessBean bean = (MobilityIndividualApplicationProcessBean) processBean;
        MobilityStudentDataBean erasmusStudentDataBean = bean.getMobilityStudentDataBean();

        MobilityIndividualApplicationProcess erasmusIndividualCandidacyProcess =
                (MobilityIndividualApplicationProcess) processBean.getIndividualCandidacyProcess();
        MobilityIndividualApplication erasmusCandidacy = erasmusIndividualCandidacyProcess.getCandidacy();

        PrecedentDegreeInformation pid = erasmusCandidacy.getRefactoredPrecedentDegreeInformation();

        pid.setPrecedentCountry(erasmusStudentDataBean.getSelectedCountry());
        pid.setPrecedentInstitution(erasmusStudentDataBean.getSelectedUniversity());
View Full Code Here

        return mapping.findForward("prepare-create-registration");
    }

    public ActionForward executeCreateRegistration(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        MobilityIndividualApplicationProcess erasmusIndividualCandidacyProcess = getProcess(request);
        executeActivity(erasmusIndividualCandidacyProcess, "CreateRegistration");

        return listProcessAllowedActivities(mapping, form, request, response);
    }
View Full Code Here

        return mapping.findForward("prepare-enrol-on-modules");
    }

    public ActionForward executeEnrolOnFirstSemester(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        MobilityIndividualApplicationProcess erasmusIndividualCandidacyProcess = getProcess(request);
        executeActivity(erasmusIndividualCandidacyProcess, "EnrolOnModules");

        return listProcessAllowedActivities(mapping, form, request, response);
    }
View Full Code Here

            photocopy = false;
            agree = false;
            cv = false;
            transcript = false;
            englishLevel = false;
            MobilityIndividualApplicationProcess erasmusIndividualCandidacyProcess =
                    (MobilityIndividualApplicationProcess) individualCandidacyProcess;
            if (individualCandidacyProcess.isCandidacyCancelled()) {
                continue;
            }

            if (individualCandidacyProcess.isCandidacyRejected()) {
                continue;
            }

            IndividualCandidacyPersonalDetails personalDetails = erasmusIndividualCandidacyProcess.getPersonalDetails();

            Row row = spreadsheet.addRow();

            row.setCell(0, erasmusIndividualCandidacyProcess.getProcessCode());
            if (personalDetails.getPerson() != null && personalDetails.getPerson().getUsername() != null) {
                row.setCell(1, personalDetails.getPerson().getUsername());
            } else {
                row.setCell(1, "");
            }
            row.setCell(2, erasmusIndividualCandidacyProcess.getPersonalDetails().getName());
            row.setCell(3, personalDetails.getDateOfBirthYearMonthDay() != null ? personalDetails.getDateOfBirthYearMonthDay()
                    .toString("dd/MM/yyyy") : "N/A");
            row.setCell(4, erasmusIndividualCandidacyProcess.getPersonalDetails().getCountry().getCountryNationality()
                    .getContent());
            row.setCell(5, erasmusIndividualCandidacyProcess.getCandidacy().getMobilityStudentData().getSelectedOpening()
                    .getMobilityAgreement().getUniversityUnit().getName());
            row.setCell(6, erasmusIndividualCandidacyProcess.getMobilityProgram().getRegistrationProtocol().getDescription()
                    .getContent());
            row.setCell(7, erasmusIndividualCandidacyProcess.getCandidacyHashCode().getEmail());
            row.setCell(8, erasmusIndividualCandidacyProcess.getCandidacy().getSelectedDegree().getNameI18N().getContent());
            row.setCell(
                    9,
                    erasmusIndividualCandidacyProcess.getCandidacy().getMobilityStudentData().getDateOfArrival()
                            .toString("dd/MM/yyyy"));
            row.setCell(10, erasmusIndividualCandidacyProcess.getCandidacy().getMobilityStudentData().getDateOfDeparture()
                    .toString("dd/MM/yyyy"));
            row.setCell(11, erasmusIndividualCandidacyProcess.getErasmusCandidacyStateDescription());
            if (erasmusIndividualCandidacyProcess.getPhoto() != null) {
                row.setCell(13, "Sim");
                photo = true;
            } else {
                row.setCell(13, "Não");
            }
            if (getUploadedDocumentByType(erasmusIndividualCandidacyProcess.getCandidacy().getDocumentsSet(),
                    IndividualCandidacyDocumentFileType.DOCUMENT_IDENTIFICATION) != null) {
                row.setCell(14, "Sim");
                photocopy = true;
            } else {
                row.setCell(14, "Não");
            }
            if (getUploadedDocumentByType(erasmusIndividualCandidacyProcess.getCandidacy().getDocumentsSet(),
                    IndividualCandidacyDocumentFileType.LEARNING_AGREEMENT) != null) {
                row.setCell(15, "Sim");
                agree = true;
            } else {
                row.setCell(15, "Não");
            }
            if (getUploadedDocumentByType(erasmusIndividualCandidacyProcess.getCandidacy().getDocumentsSet(),
                    IndividualCandidacyDocumentFileType.CV_DOCUMENT) != null) {
                row.setCell(16, "Sim");
                cv = true;
            } else {
                row.setCell(16, "Não");
            }
            if (getUploadedDocumentByType(erasmusIndividualCandidacyProcess.getCandidacy().getDocumentsSet(),
                    IndividualCandidacyDocumentFileType.TRANSCRIPT_OF_RECORDS) != null) {
                row.setCell(17, "Sim");
                transcript = true;
            } else {
                row.setCell(17, "Não");
            }
            if (getUploadedDocumentByType(erasmusIndividualCandidacyProcess.getCandidacy().getDocumentsSet(),
                    IndividualCandidacyDocumentFileType.ENGLISH_LEVEL_DECLARATION) != null) {
                row.setCell(18, "Sim");
                englishLevel = true;
            } else {
                row.setCell(18, "Não");
View Full Code Here

    public void retrieveProcesses() {
        subjectProcesses = new ArrayList<MobilityIndividualApplicationProcess>();

        for (IndividualCandidacyProcess child : mobilityApplicationProcess.getChildProcessesSet()) {
            MobilityIndividualApplicationProcess individualCandidacyProcess = (MobilityIndividualApplicationProcess) child;

            if (!individualCandidacyProcess.isStudentAcceptedAndNotified()) {
                continue;
            }

            if (includeOnlyProcessWithNoReceptionEmail && individualCandidacyProcess.isStudentNotifiedWithReceptionEmail()) {
                continue;
            }

            if (individualCandidacyProcess.getMobilityProgram() != mobilityProgram) {
                continue;
            }

            subjectProcesses.add(individualCandidacyProcess);
        }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityIndividualApplicationProcess

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.