Package org.fenixedu.academic.domain.student

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


        return (ExecutionYear) super.getCandidacyExecutionInterval();
    }

    @Override
    public List<StudentCurricularPlan> getPrecedentStudentCurricularPlans() {
        final Student student = getStudent();
        if (student == null) {
            return Collections.emptyList();
        }

        final List<StudentCurricularPlan> studentCurricularPlans = new ArrayList<StudentCurricularPlan>();
        for (final Registration registration : student.getRegistrationsSet()) {

            if (registration.isBolonha()) {
                final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();

                for (final CycleType cycleType : getValidPrecedentCycleTypes()) {
View Full Code Here


    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        List<StudentPortalBean> studentPortalBeans = new ArrayList<StudentPortalBean>();
        List<String> genericDegreeWarnings = new ArrayList<String>();

        final Student student = AccessControl.getPerson().getStudent();
        if (student != null) {
            for (Registration registration : student.getActiveRegistrationsIn(ExecutionSemester.readActualExecutionSemester())) {
                DegreeCurricularPlan degreeCurricularPlan = registration.getActiveDegreeCurricularPlan();
                if (registration.getAttendingExecutionCoursesForCurrentExecutionPeriod().isEmpty() == false) {
                    studentPortalBeans.add(new StudentPortalBean(registration.getDegree(), student, registration
                            .getAttendingExecutionCoursesForCurrentExecutionPeriod(), degreeCurricularPlan));
                }
View Full Code Here

        return (ExecutionYear) super.getCandidacyExecutionInterval();
    }

    @Override
    public List<StudentCurricularPlan> getPrecedentStudentCurricularPlans() {
        final Student student = getStudent();
        if (student == null) {
            return Collections.emptyList();
        }

        final List<StudentCurricularPlan> studentCurricularPlans = new ArrayList<StudentCurricularPlan>();
        for (final Registration registration : student.getRegistrationsSet()) {
            if (registration.isBolonha()) {
                final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();

                for (final CycleType cycleType : getValidPrecedentCycleTypes()) {
                    if (studentCurricularPlan.hasCycleCurriculumGroup(cycleType)) {
View Full Code Here

    @EntryPoint
    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        User userView = getUserView(request);
        Student student = userView.getPerson().getStudent();
        ArrayList<StudentStatute> studentStatutes = new ArrayList<StudentStatute>(student.getStudentStatutesSet());
        Collections.sort(studentStatutes, new BeanComparator("beginExecutionPeriod.beginDateYearMonthDay"));
        request.setAttribute("studentStatutes", studentStatutes);
        return mapping.findForward("studentStatutes");
    }
View Full Code Here

            createQualification();

        }

        if (person.getStudent() == null && studentNumber == null) {
            new Student(person);
        } else if (person.getStudent() == null && studentNumber != null) {
            Student.createStudentWithCustomNumber(person, studentNumber);
        }
    }
View Full Code Here

public class ShowStudentStatisticsDispatchAction extends FenixDispatchAction {

    @EntryPoint
    public ActionForward showStudentStatisticsHome(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final Student student = getLoggedPerson(request).getStudent();

        if (student != null) {
            Collection<Enrolment> approvedEnrolments = new HashSet<Enrolment>();
            for (Registration registration : getValidRegistrations(student)) {
                approvedEnrolments.addAll(registration.getApprovedEnrolments());
View Full Code Here

        return mapping.findForward("showStudentStatisticsHome");
    }

    public ActionForward showExecutionCourseStatistics(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final Student student = getLoggedPerson(request).getStudent();

        ExecutionCourse executionCourse = getDomainObject(request, "executionCourseId");
        if (student != null && executionCourse != null) {
            request.setAttribute("executionCourse", executionCourse);
            request.setAttribute("executionCourseStatistics", computeStudentExecutionCourseStatistics(student, executionCourse));
            request.setAttribute("curricularCourseOvertimeStatistics", computeCurricularCourseOvertimeStatistics(student
                    .getAttends(executionCourse).getEnrolment().getCurricularCourse()));
        }
        return mapping.findForward("showExecutionCourseStatistics");
    }
View Full Code Here

        }
        return gradesArray;
    }

    private JsonElement computeMark(Mark mark) {
        Student student = mark.getAttend().getRegistration().getStudent();
        JsonObject markJsonObject = new JsonObject();
        markJsonObject.addProperty("id", student.getNumber());
        markJsonObject.addProperty("name", student.getName());
        markJsonObject.addProperty("grade", mark.getMark());
        return markJsonObject;
    }
View Full Code Here

    @Override
    public HtmlComponent render(Object targetObject, Class type) {
        if (targetObject == null) {
            return super.render(null, type);
        } else {
            Student student = (Student) targetObject;
            return super.render(student.getNumber(), type);
        }
    }
View Full Code Here

        if (getNumber() != null) {
            for (final Registration registration : Registration.readByNumber(getNumber())) {
                students.add(registration.getStudent());
            }

            final Student student = Student.readStudentByNumber(getNumber());
            if (student != null) {
                students.add(student);
            }

        } else if (!StringUtils.isEmpty(getIdentificationNumber()) && getDocumentType() != null) {
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.