Examples of FenixActionException


Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws FenixActionException {
        try {
            ContextUtils.setExecutionPeriodContext(request);
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        try {
            super.execute(mapping, form, request, response);
        } catch (Exception e) {
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

        // degreeCurricularPlanID
        String degreeCurricularPlanId = (String) request.getAttribute("degreeCurricularPlanID");
        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanId);
        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
        if (!degreeCurricularPlan.getDegree().getExternalId().equals(degreeId)) {
            throw new FenixActionException();
        } else {
            request.setAttribute("degree", degreeCurricularPlan.getDegree());
        }

        // lista
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

            // printWriter.flush();
            writer.write(fileContents.getBytes());
            writer.flush();
            response.flushBuffer();
        } catch (final IOException e1) {
            throw new FenixActionException(e1);
        }

        return null;
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

            }

            return readExecutionDegrees(mapping, form, request, response);

        } catch (FenixServiceException fenixServiceException) {
            throw new FenixActionException(fenixServiceException.getMessage());
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

            DissociateCurricularCourseByExecutionCourseId.run(executionCourseId, curricularCourseId);
            CurricularCourse curricularCourse = FenixFramework.getDomainObject(curricularCourseId);
            addActionMessage("success", request, "message.manager.executionCourseManagement.dissociate.success",
                    curricularCourse.getName(), curricularCourse.getDegreeCurricularPlan().getName());
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        Set<Degree> degrees = executionCourse.getDegreesSortedByDegreeName();
        // destination attributes
        String originExecutionDegreeId = RequestUtils.getAndSetStringToRequest(request, "originExecutionDegreeId");
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

        String executionPeriodId = RequestUtils.getAndSetStringToRequest(request, "executionPeriodId");
        List<InfoExecutionDegree> executionDegreeList = new ArrayList<InfoExecutionDegree>();
        try {
            executionDegreeList = ReadExecutionDegreesByExecutionPeriodId.runForAcademicAdmin(executionPeriodId);
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        List<LabelValueBean> degrees = new ArrayList<LabelValueBean>();
        degrees.add(new LabelValueBean(BundleUtil.getString(Bundle.RENDERER, "renderers.menu.default.title"), ""));
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

                final CurricularCourse curricularCourse = FenixFramework.getDomainObject(curricularCourseId);
                addActionMessage("successCourse", request,
                        "message.manager.executionCourseManagement.associateCourse.success.line", curricularCourse.getName());
            }
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        } catch (DomainException e) {
            addActionMessage("error", request, e.getMessage());
            return prepareAssociateCurricularCourse(mapping, executionCourseForm, request, response);
        }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

        InfoExecutionCourse infoExecutionCourse;

        try {
            infoExecutionCourse = ReadInfoExecutionCourseByOID.run(executionCourseId);
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        if (infoExecutionCourse.getAssociatedInfoCurricularCourses() != null) {
            Collections.sort(infoExecutionCourse.getAssociatedInfoCurricularCourses(), new BeanComparator("name"));
        }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

                InfoSiteRoomTimeTable component = run(roomKey, today, executionPeriodID);
                request.setAttribute("component", component);
            } catch (NonExistingServiceException e) {
                throw new NonExistingActionException(e);
            } catch (FenixServiceException e) {
                throw new FenixActionException(e);
            }
            return mapping.findForward("roomViewer");
        }
        throw new FenixActionException();

    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.exceptions.FenixActionException

        if (degreeCurricularPlan != null) {
            request.setAttribute("degreeCurricularPlanID", degreeCurricularPlan.getExternalId());

            if (!degreeCurricularPlan.getDegree().getExternalId().equals(degreeId)) {
                throw new FenixActionException();
            }

            // lista
            List<LabelValueBean> executionPeriodsLabelValueList =
                    buildExecutionPeriodsLabelValueList(degreeCurricularPlan.getExternalId());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.