Package org.fenixedu.academic.dto.student

Examples of org.fenixedu.academic.dto.student.OptionalCurricularCoursesLocationBean$EnrolmentLocationBean


            HttpServletResponse response) {

        final StudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(request);
        request.setAttribute("studentCurricularPlan", studentCurricularPlan);

        final OptionalCurricularCoursesLocationBean bean = new OptionalCurricularCoursesLocationBean(studentCurricularPlan);
        final String[] enrolmentIds = ((OptionalCurricularCoursesLocationForm) actionForm).getEnrolmentsToChange();
        bean.addEnrolments(getEnrolments(bean.getStudentCurricularPlan(), enrolmentIds));

        request.setAttribute("optionalCurricularCoursesLocationBean", bean);
        return mapping.findForward("chooseNewDestination");
    }
View Full Code Here


    }

    public ActionForward chooseNewDestinationInvalid(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final OptionalCurricularCoursesLocationBean bean = getBean();
        RenderUtils.invalidateViewState();

        request.setAttribute("optionalCurricularCoursesLocationBean", bean);
        request.setAttribute("studentCurricularPlan", bean.getStudentCurricularPlan());

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

    }

    public ActionForward moveEnrolments(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final OptionalCurricularCoursesLocationBean bean = getBean();
        try {
            MoveCurriculumLines.run(bean);
            return backToStudentEnrolments(mapping, actionForm, request, response);

        } catch (EnrollmentDomainException ex) {
            addRuleResultMessagesToActionMessages("error", request, ex.getFalseResult());
        } catch (DomainException e) {
            addActionMessage(request, e.getMessage(), e.getArgs());
        } catch (FenixServiceException e) {
            addActionMessage(request, e.getMessage());
        }

        request.setAttribute("optionalCurricularCoursesLocationBean", bean);
        request.setAttribute("studentCurricularPlan", bean.getStudentCurricularPlan());
        return mapping.findForward("chooseNewDestination");

    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.student.OptionalCurricularCoursesLocationBean$EnrolmentLocationBean

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.