Package org.fenixedu.academic.domain.student

Examples of org.fenixedu.academic.domain.student.Student


    private boolean isOrWasEnrolledInInstitution(final DegreeTransferIndividualCandidacyProcessBean bean) {
        if (StringUtils.isEmpty(bean.getPersonNumber())) {
            return false;
        }

        Student student = Student.readStudentByNumber(Integer.valueOf(bean.getPersonNumber()));

        if (student == null) {
            throw new DomainException("error.degreeTransfer.person.number.is.not.empty.but.check.for.enrollment.on.institution");
        }

        ExecutionYear candidacyExecutionInterval = bean.getCandidacyExecutionInterval();

        for (Registration registration : student.getRegistrationsSet()) {
            StudentCurricularPlan lastStudentCurricularPlan = registration.getLastStudentCurricularPlan();

            if (lastStudentCurricularPlan.isActive(candidacyExecutionInterval.getPreviousExecutionYear())) {
                if ("LEIC-A 2006".equals(lastStudentCurricularPlan.getDegreeCurricularPlan().getName())
                        && "LEIC-T".equals(bean.getSelectedDegree().getSigla())) {
View Full Code Here


        }
        addParameter("professionalStatus", professionalStatus);
    }

    private void addExtraCurricularActivities() {
        Student student = getDocumentRequest().getStudent();
        if (!student.getExtraCurricularActivitySet().isEmpty()) {
            List<String> activities = new ArrayList<String>();
            Map<ExtraCurricularActivityType, List<ExtraCurricularActivity>> activityMap =
                    new HashMap<ExtraCurricularActivityType, List<ExtraCurricularActivity>>();
            for (ExtraCurricularActivity activity : student.getExtraCurricularActivitySet()) {
                if (!activityMap.containsKey(activity.getType())) {
                    activityMap.put(activity.getType(), new ArrayList<ExtraCurricularActivity>());
                }
                activityMap.get(activity.getType()).add(activity);
            }
View Full Code Here

        }
    }

    private boolean hasAnyActiveDegreeRegistration(final GratuityEvent gratuityEvent) {

        final Student student = gratuityEvent.getStudentCurricularPlan().getRegistration().getStudent();

        for (final Registration registration : student.getRegistrationsSet()) {

            if (registration.getDegree().isEmpty()) {
                continue;
            }
View Full Code Here

        final Degree degree = thesis.getDegree();
        addParameter("studentDegreeName", neverNull(degree.getNameI18N(thesis.getExecutionYear()).toString()));
    }

    protected void fillStudent() {
        final Student student = thesis.getStudent();
        addParameter("studentNumber", student.getNumber());

        final Person person = student.getPerson();
        addParameter("studentName", person.getName());
    }
View Full Code Here

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

    @Override
    protected List<Registration> getRegistrations(final HttpServletRequest request) {
        final Student student = getStudent(request);
        return student != null ? student.getTransitionRegistrations() : Collections.<Registration> emptyList();
    }
View Full Code Here

    public int getNumberOfStudentsWithFirstEnrolmentIn(ExecutionSemester executionSemester) {

        Map<Student, List<Enrolment>> students = new HashMap<Student, List<Enrolment>>();
        for (Enrolment enrolment : getAllEnrolmentsUntil(executionSemester)) {
            Student student = enrolment.getStudentCurricularPlan().getRegistration().getStudent();
            if (!students.containsKey(student)) {
                List<Enrolment> enrolments = new ArrayList<Enrolment>();
                enrolments.add(enrolment);
                students.put(student, enrolments);
            } else {
View Full Code Here

        final User user = User.findByUsername(id);
        if (user != null) {
            person = user.getPerson();
        } else {
            try {
                final Student student = Student.readStudentByNumber(Integer.valueOf(id));
                if (student != null) {
                    person = student.getPerson();
                }
            } catch (NumberFormatException e) {
            }
        }
        ExecutionCourse executionCourse = FenixFramework.getDomainObject(request.getParameter("executionCourseID"));
View Full Code Here

            }
        }
    }

    private boolean studentAlreadyHasNewRegistration(final StudentCurricularPlan studentCurricularPlan) {
        final Student student = studentCurricularPlan.getRegistration().getStudent();
        return student.hasRegistrationFor(studentCurricularPlan.getSecondCycle().getDegreeCurricularPlanOfDegreeModule());
    }
View Full Code Here

    }

    private boolean hasExternalSecondCycleAndNewRegistration(final StudentCurricularPlan studentCurricularPlan) {
        final CycleCurriculumGroup secondCycle = studentCurricularPlan.getSecondCycle();
        if (secondCycle != null && secondCycle.isExternal() && secondCycle.hasAnyCurriculumLines()) {
            final Student student = studentCurricularPlan.getRegistration().getStudent();
            return student.hasActiveRegistrationFor(secondCycle.getDegreeCurricularPlanOfDegreeModule());
        }
        return false;
    }
View Full Code Here

    public AlumniEntityManagementDA() {
        super();
    }

    protected Alumni getAlumniFromLoggedPerson(HttpServletRequest request) {
        Student alumniStudent = getLoggedPerson(request).getStudent();
        if (alumniStudent.getAlumni() != null) {
            return alumniStudent.getAlumni();
        } else {
            return RegisterAlumniData.run(alumniStudent);
        }
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.student.Student

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.