}
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");
}