Object args[] = { infoExecutionDegree.getIdInternal(), minimumNumberOfCompletedCourses, minimumNumberOfStudents, maximumNumberOfStudents, maximumNumberOfProposalCandidaciesPerGroup }; ServiceUtils.executeService(userView, "DefineFinalDegreeWorkCandidacyRequirements", args);
try { Object args[] = { infoExecutionDegree.getIdInternal(), minimumNumberOfCompletedCourses, minimumNumberOfStudents, maximumNumberOfStudents, maximumNumberOfProposalCandidaciesPerGroup }; ServiceUtils.executeService(userView, "DefineFinalDegreeWorkCandidacyRequirements", args); } catch (NotAuthorizedFilterException e) { ActionErrors actionErrors = new ActionErrors(); actionErrors.add("error", new ActionMessage("error.exception.notAuthorized2")); saveErrors(request, actionErrors); return mapping.getInputForward(); }
    public ActionForward setFinalDegreeCandidacyRequirements(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixServiceException,            FenixFilterException {        DynaActionForm finalDegreeWorkScheduleingForm = (DynaActionForm) form;        String minimumNumberOfCompletedCoursesString = (String) finalDegreeWorkScheduleingForm                .get("minimumNumberOfCompletedCourses");        String minimumNumberOfStudentsString = (String) finalDegreeWorkScheduleingForm                .get("minimumNumberOfStudents");        String maximumNumberOfStudentsString = (String) finalDegreeWorkScheduleingForm                .get("maximumNumberOfStudents");        String maximumNumberOfProposalCandidaciesPerGroupString = (String) finalDegreeWorkScheduleingForm                .get("maximumNumberOfProposalCandidaciesPerGroup");        Integer minimumNumberOfCompletedCourses = null;        if (minimumNumberOfCompletedCoursesString != null                && !minimumNumberOfCompletedCoursesString.equals("")) {            minimumNumberOfCompletedCourses = new Integer(minimumNumberOfCompletedCoursesString);        }        Integer minimumNumberOfStudents = null;        if (minimumNumberOfStudentsString != null && !minimumNumberOfStudentsString.equals("")) {            minimumNumberOfStudents = new Integer(minimumNumberOfStudentsString);        }        Integer maximumNumberOfStudents = null;        if (maximumNumberOfStudentsString != null && !maximumNumberOfStudentsString.equals("")) {            maximumNumberOfStudents = new Integer(maximumNumberOfStudentsString);        }        Integer maximumNumberOfProposalCandidaciesPerGroup = null;        if (maximumNumberOfProposalCandidaciesPerGroupString != null                && !maximumNumberOfProposalCandidaciesPerGroupString.equals("")) {            maximumNumberOfProposalCandidaciesPerGroup = new Integer(                    maximumNumberOfProposalCandidaciesPerGroupString);        }        IUserView userView = SessionUtils.getUserView(request);        HttpSession session = request.getSession(false);        InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) session                .getAttribute(SessionConstants.MASTER_DEGREE);        Object args[] = { infoExecutionDegree.getIdInternal(), minimumNumberOfCompletedCourses,                minimumNumberOfStudents, maximumNumberOfStudents,                maximumNumberOfProposalCandidaciesPerGroup };        ServiceUtils.executeService(userView, "DefineFinalDegreeWorkCandidacyRequirements", args);        ActionMessages messages = new ActionMessages();        ActionMessage msg = new ActionMessage("finalDegreeWorkCandidacy.setRequirements.sucess");        messages.add("message1", msg);        saveMessages(request, messages);        return mapping.findForward("Sucess");    }