Package org.fenixedu.academic.domain.student

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


    private Enrolment getEnrolment(HttpServletRequest request) {
        return FenixFramework.getDomainObject(request.getParameter("enrolmentOID"));
    }

    private Student getStudent(HttpServletRequest request) {
        Student student = (Student) request.getAttribute("student");

        if (student != null) {
            return student;
        } else {
            return FenixFramework.getDomainObject(request.getParameter("studentID"));
View Full Code Here


            return searchStudent(mapping, actionForm, request, response);
        } else {
            request.setAttribute("bean", bean);
        }

        Student student = bean.getStudent();

        if (student == null) {
            addActionMessage(request, "thesis.selectStudent.notFound");
            return mapping.findForward("search-student");
        } else {
            DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

            if (student.isCurrentlyEnroled(degreeCurricularPlan)) {
                Enrolment enrolment = student.getDissertationEnrolment(degreeCurricularPlan);

                if (enrolment != null) {
                    Thesis thesis = enrolment.getThesis();

                    if (thesis == null) {
View Full Code Here

        return mapping.findForward("list-thesis");
    }

    public ActionForward prepareCreateProposal(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        Student student = getStudent(request);

        if (student == null) {
            return listThesis(mapping, actionForm, request, response);
        }
View Full Code Here

    public void setPrecedentDegreeInformation(PrecedentDegreeInformationBean precedentDegreeInformation) {
        this.precedentDegreeInformation = precedentDegreeInformation;
    }

    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

        return mapping.findForward("viewStudentDetails");
    }

    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

        }
    }

    private String getDegrees(final Person person) {
        final StringBuilder stringBuilder = new StringBuilder();
        final Student student = person.getStudent();
        if (student != null) {
            final Set<String> names = new TreeSet<String>();
            for (final Registration registration : student.getRegistrationsSet()) {
                final Degree degree = registration.getDegree();
                names.add(degree.getSigla());
            }
            for (final String name : names) {
                if (stringBuilder.length() > 0) {
View Full Code Here

    private boolean isMobilityCoordinator(final IndividualCandidacyDocumentFile document, final Person person) {
        for (final IndividualCandidacy individualCandidacy : document.getIndividualCandidacySet()) {
            final Registration candidacyRegistration = individualCandidacy.getRegistration();
            if (candidacyRegistration != null) {
                final Student student = candidacyRegistration.getStudent();
                if (student != null) {
                    if (student.getPerson() == person) {
                        return true;
                    }
                    for (final Registration registration : student.getRegistrationsSet()) {
                        for (final OutboundMobilityCandidacySubmission submission : registration
                                .getOutboundMobilityCandidacySubmissionSet()) {
                            for (final OutboundMobilityCandidacy candidacy : submission.getOutboundMobilityCandidacySet()) {
                                final OutboundMobilityCandidacyContest contest = candidacy.getOutboundMobilityCandidacyContest();
                                final OutboundMobilityCandidacyContestGroup group =
View Full Code Here

public class ErasmusOutboundManagement extends FenixDispatchAction {

    @EntryPoint
    public ActionForward prepare(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) throws FenixActionException, FenixServiceException {
        final Student student = getUserView(request).getPerson().getStudent();
        return prepare(mapping, request, student);
    }
View Full Code Here

        return mapping.findForward("erasmusOutboundManagement");
    }

    public ActionForward apply(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) throws FenixActionException, FenixServiceException {
        final Student student = getUserView(request).getPerson().getStudent();
        final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid");
        contest.apply(student);
        return prepare(mapping, request, student);
    }
View Full Code Here

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

    public ActionForward reorder(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) throws FenixActionException, FenixServiceException {
        final Student student = getUserView(request).getPerson().getStudent();
        final OutboundMobilityCandidacy candidacy = getDomainObject(request, "candidacyOid");
        final int index = Integer.parseInt((String) getFromRequest(request, "index"));
        candidacy.reorder(index + 1);
        return prepare(mapping, request, student);
    }
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.