Package org.fenixedu.academic.domain.studentCurriculum.curriculumLine

Examples of org.fenixedu.academic.domain.studentCurriculum.curriculumLine.MoveCurriculumLinesBean


            addActionMessage(request, "label.student.moveCurriculumLines.curriculumLines.selection.required");
            return prepare(mapping, request, isWithRules(request));
        }

        final boolean withRules = isWithRules(request);
        final MoveCurriculumLinesBean bean = MoveCurriculumLinesBean.buildFrom(selectedCurriculumLines, withRules);
        bean.setStudentCurricularPlan(getStudentCurricularPlan(request));
        bean.withRules(withRules);
        request.setAttribute("moveCurriculumLinesBean", bean);

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


    }

    public ActionForward moveCurriculumLines(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final MoveCurriculumLinesBean moveCurriculumLinesBean = getRenderedObject("move-curriculum-lines-bean");

        if (!RenderUtils.getViewState("move-curriculum-lines-bean-entries").isValid()) {
            request.setAttribute("moveCurriculumLinesBean", moveCurriculumLinesBean);
            return mapping.findForward("chooseNewLocation");
        }

        try {
            MoveCurriculumLines.run(moveCurriculumLinesBean);
        } catch (final EnrollmentDomainException e) {
            addRuleResultMessagesToActionMessages(request, e.getFalseResult());
            request.setAttribute("moveCurriculumLinesBean", moveCurriculumLinesBean);
            return mapping.findForward("chooseNewLocation");

        } catch (final IllegalDataAccessException e) {
            addActionMessage(request, "error.NotAuthorized");
            request.setAttribute("moveCurriculumLinesBean", moveCurriculumLinesBean);
            return mapping.findForward("chooseNewLocation");

        } catch (final DomainException e) {
            addActionMessage(request, e.getMessage(), e.getArgs());
            request.setAttribute("moveCurriculumLinesBean", moveCurriculumLinesBean);
            return mapping.findForward("chooseNewLocation");
        }

        request.setAttribute("studentCurricularPlan", moveCurriculumLinesBean.getStudentCurricularPlan());
        request.setAttribute("withRules", moveCurriculumLinesBean.isWithRules());
        return mapping.findForward("showCurriculum");
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.studentCurriculum.curriculumLine.MoveCurriculumLinesBean

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.