Examples of StudentCandidacy


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

        return mapping.findForward("viewStudent");
    }

    public ActionForward viewStudentCandidacy(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        StudentCandidacy studentCandidacy = getDomainObject(request, "studentCandidacyId");

        request.setAttribute("studentCandidacy", studentCandidacy);

        return mapping.findForward("viewStudentCandidacy");
    }
View Full Code Here

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

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

        final StudentNumberBean numberBean = (StudentNumberBean) getRenderedObject("student-number-bean");

        StudentCandidacy studentCandidacy = findCandidacy(numberBean.getNumber());
        request.setAttribute("candidacy", studentCandidacy);

        if (studentCandidacy != null && studentCandidacy.getSummaryFile() != null) {
            request.setAttribute("hasPDF", "true");
        }

        return mapping.findForward("prepare");
    }
View Full Code Here

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

            if (registration.getStudentCandidacy() == null) {
                return EMPTY;
            }

            StudentCandidacy studentCandidacy = registration.getStudentCandidacy();
            if (studentCandidacy.getPrecedentDegreeInformation() == null) {
                return EMPTY;
            }

            PrecedentDegreeInformation precedentDegreeInformation = studentCandidacy.getPrecedentDegreeInformation();
            if (precedentDegreeInformation.getPrecedentInstitution() == null) {
                return EMPTY;
            }

            return precedentDegreeInformation.getPrecedentInstitution().getNameI18n().toString();
View Full Code Here

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

            if (registration.getStudentCandidacy() == null) {
                return EMPTY;
            }

            StudentCandidacy studentCandidacy = registration.getStudentCandidacy();
            if (studentCandidacy.getPrecedentDegreeInformation() == null) {
                return EMPTY;
            }

            PrecedentDegreeInformation precedentDegreeInformation = studentCandidacy.getPrecedentDegreeInformation();
            if (precedentDegreeInformation.getPrecedentCountry() == null) {
                return EMPTY;
            }

            return precedentDegreeInformation.getPrecedentCountry().getLocalizedName().toString();
View Full Code Here

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

            if (candidacy instanceof StudentCandidacy && candidacy.isActive()) {
                if (candidacy instanceof PHDProgramCandidacy) {
                    continue;
                }

                final StudentCandidacy studentCandidacy = (StudentCandidacy) candidacy;
                if (studentCandidacy.getExecutionDegree().equals(executionDegree)) {
                    return studentCandidacy;
                }
            }
        }
        return null;
View Full Code Here

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

            if (candidacy instanceof StudentCandidacy) {
                if (candidacy instanceof PHDProgramCandidacy) {
                    continue;
                }

                final StudentCandidacy studentCandidacy = (StudentCandidacy) candidacy;
                if (studentCandidacy.getExecutionDegree().equals(executionDegree)) {
                    return studentCandidacy;
                }
            }
        }
        return null;
View Full Code Here

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

    protected void createRaidesInformation(Registration registration) {
        Degree degree = registration.getDegree();
        ExecutionYear startExecutionYear = registration.getStartExecutionYear();
        ExecutionDegree executionDegree =
                ExecutionDegree.getAllByDegreeAndExecutionYear(degree, startExecutionYear.getName()).iterator().next();
        StudentCandidacy studentCandidacy = null;

        if (registration.getDegree().getDegreeType().isIntegratedMasterDegree()) {
            studentCandidacy = new IMDCandidacy(registration.getPerson(), executionDegree);
        } else if (registration.getDegree().getDegreeType().isDegree()) {
            studentCandidacy = new DegreeCandidacy(registration.getPerson(), executionDegree);
        } else if (registration.getDegree().getDegreeType().isMasterDegree()) {
            studentCandidacy = new MDCandidacy(registration.getPerson(), executionDegree);
        }

        studentCandidacy.getPrecedentDegreeInformation().delete();
        PrecedentDegreeInformation refactoredPrecedentDegreeInformation = getRefactoredPrecedentDegreeInformation();
        refactoredPrecedentDegreeInformation.setRegistration(registration);
        studentCandidacy.setPrecedentDegreeInformation(refactoredPrecedentDegreeInformation);
        studentCandidacy.setRegistration(registration);

        PersonalIngressionData personalIngressionDataByExecutionYear =
                registration.getStudent().getPersonalIngressionDataByExecutionYear(startExecutionYear);
        if (personalIngressionDataByExecutionYear != null) {
            personalIngressionDataByExecutionYear.addPrecedentDegreesInformations(refactoredPrecedentDegreeInformation);
View Full Code Here

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

    }

    public ActionForward showCandidacyDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixActionException, FenixServiceException {

        final StudentCandidacy candidacy = getCandidacy(request);
        request.setAttribute("candidacy", candidacy);

        final SortedSet<Operation> operations = new TreeSet<Operation>();
        operations.addAll(candidacy.getActiveCandidacySituation().getOperationsForPerson(getLoggedPerson(request)));
        request.setAttribute("operations", operations);

        request.setAttribute("person", getUserView(request).getPerson());
        return mapping.findForward("showCandidacyDetails");
    }
View Full Code Here

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

        if (operation.hasMoreForms()) {
            request.setAttribute("currentForm", operation.moveToNextForm());
            return mapping.findForward("fillData");
        } else {
            final StudentCandidacy candidacy = getCandidacy(request);
            if (candidacy.isConcluded()) {
                request.setAttribute("candidacyID", candidacy.getExternalId());

                addActionMessage(request, "warning.candidacy.process.is.already.concluded");

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

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

        } else if (candidacyOperation.getType() == CandidacyOperationType.PRINT_MEASUREMENT_TEST_DATE) {
            request.setAttribute("registration", getCandidacy(request).getRegistration());
            return mapping.findForward("printMeasurementTestDate");

        } else if (candidacyOperation.getType() == CandidacyOperationType.PRINT_ALL_DOCUMENTS) {
            StudentCandidacy candidacy = getCandidacy(request);
            request.setAttribute("candidacy", candidacy);
            request.setAttribute("registration", candidacy.getRegistration());
            request.setAttribute("executionYear", candidacy.getExecutionDegree().getExecutionYear());
            request.setAttribute("person", candidacy.getRegistration().getPerson());
            request.setAttribute("campus", candidacy.getRegistration().getCampus().getName());
            request.setAttribute("administrativeOfficeFeeAndInsurancePaymentCode",
                    administrativeOfficeFeeAndInsurancePaymentCode(candidacy.getAvailablePaymentCodesSet()));
            request.setAttribute("installmentPaymentCodes", installmmentPaymentCodes(candidacy.getAvailablePaymentCodesSet()));
            request.setAttribute("totalGratuityPaymentCode", totalGratuityPaymentCode(candidacy.getAvailablePaymentCodesSet()));
            request.setAttribute(
                    "firstInstallmentEndDate",
                    calculateFirstInstallmentEndDate(candidacy.getRegistration(), getCandidacy(request)
                            .getAvailablePaymentCodesSet()));
            request.setAttribute("sibsEntityCode", FenixEduAcademicConfiguration.getConfiguration().getSibsEntityCode());

            final List<InfoShowOccupation> infoLessons = ReadStudentTimeTable.run(candidacy.getRegistration(), null);
            request.setAttribute("infoLessons", infoLessons);

//            FIXME: Cannot continue to be supported this way, tutorship is an optional dependency
//            List<Tutorship> activeTutorships = Tutorship.getActiveTutorships(candidacy.getRegistration().getStudent());
//            if (!activeTutorships.isEmpty()) {
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.