Package org.fenixedu.academic.domain.student

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


    private void addEtiRow(final Spreadsheet spreadsheet, final Degree degree, final CurricularCourse curricularCourse,
            final Enrolment enrolment, final ExecutionSemester executionSemester,
            final ExecutionSemester executionSemesterForPreviousEnrolmentCount) {
        final StudentCurricularPlan studentCurricularPlan = enrolment.getStudentCurricularPlan();
        final Registration registration = studentCurricularPlan.getRegistration();
        final Student student = registration.getStudent();

        final Row row = spreadsheet.addRow();
        row.setCell(registration.getNumber());
        setDegreeCells(row, registration.getDegree());
        row.setCell(executionSemester.getSemester().toString());
View Full Code Here


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

        final String personId = request.getParameter("personId");
        Person person = FenixFramework.getDomainObject(personId);
        final Student student = person.getStudent();

        request.setAttribute("student", student);

        List<Registration> registrations = person.getStudent().getActiveRegistrations();
        if (registrations.size() == 0) {
View Full Code Here

        if (registrationOIDObj != null) {
            registrationOID = registrationOIDObj.toString();
        } else {
            registrationOID = null;
        }
        final Student loggedStudent = getUserView(request).getPerson().getStudent();

        if (registrationOID != null) {
            registration = FenixFramework.getDomainObject(registrationOID);
        } else if (loggedStudent != null) {
            if (loggedStudent.getRegistrationsSet().size() == 1) {
                registration = loggedStudent.getRegistrationsSet().iterator().next();
            } else {
                request.setAttribute("student", loggedStudent);
                return mapping.findForward("chooseRegistration");
            }
        }
View Full Code Here

    }

    public String getFormattedValues() {
        Formatter result = new Formatter();

        final Student student = getStudent();
        result.format("Student Number: %d\n", student.getNumber());
        result.format("Name: %s\n", student.getPerson().getName());
        if (hasPhdIndividualProgramProcess()) {
            result.format("Degree: %s\n", getPhdIndividualProgramProcess().getDisplayName());
        } else {
            result.format("Degree: %s\n", getRegistration().getDegree().getPresentationName());
        }
View Full Code Here

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

        Student student = getUserView(request).getPerson().getStudent();
        ManageStudentStatuteBean bean = getRenderedObject("studentBean");
        if (bean == null) {
            bean = new ManageStudentStatuteBean(student);
        }

        request.setAttribute("studentBean", bean);
        request.setAttribute("attends", student.getAttendsForExecutionPeriod(bean.getExecutionPeriod()));

        return mapping.findForward("viewProjectsWithOnlineSubmission");

    }
View Full Code Here

    @EntryPoint
    public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final Student student = getLoggedPerson(request).getStudent();
        final List<Registration> registrations = student.getActiveRegistrations();

        if (registrations.size() == 1) {
            request.setAttribute("executionCourses", ReadEnroledExecutionCourses.run(registrations.iterator().next()));
            return mapping.findForward("showEnroledExecutionCourses");
View Full Code Here

        @Forward(name = "editPersonalData", path = "/academicAdministration/student.do?method=prepareEditPersonalData") })
public class PartyContactsAcademicAdministrativeOfficeDA extends PartyContactsManagementDispatchAction {

    private Student getStudent(final HttpServletRequest request) {
        final String studentID = request.getParameter("studentID");
        final Student student = FenixFramework.getDomainObject(studentID);
        request.setAttribute("student", student);
        return student;
    }
View Full Code Here

        path = "/academicAdminOffice/student/extraCurricularActivities/manageActivities.jsp") })
public class StudentExtraCurricularActivitiesDA extends FenixDispatchAction {

    public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        Student student = FenixFramework.getDomainObject(request.getParameter("studentId"));
        request.setAttribute("student", student);
        return mapping.findForward("manageActivities");
    }
View Full Code Here

    public ActionForward deleteActivity(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        ExtraCurricularActivity activity = FenixFramework.getDomainObject(request.getParameter("activityId"));
        RenderUtils.invalidateViewState();
        final Student student = activity.getStudent();
        activity.delete();
        request.setAttribute("student", student);
        return mapping.findForward("manageActivities");
    }
View Full Code Here

        }
        /*
         * We couldnt found the person with full and partial document id. Search
         * with with and check if the names are equals
         */
        Student studentReadByNumber = this.studentNumber != null ? Student.readStudentByNumber(this.studentNumber) : null;
        Person personFoundByStudent = null;
        if (studentReadByNumber != null) {
            personFoundByStudent = studentReadByNumber.getPerson();
        }

        if (personByFullDocumentId != null && personFoundByStudent != null && personByFullDocumentId != personFoundByStudent) {
            this.multiplePersonsFound = true;
            return;
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.