Examples of BolonhaStudentEnrollmentBean


Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

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

        InfoExecutionPeriod executionPeriodBean = getRenderedObject("infoExecutionPeriod");

        request.setAttribute("bolonhaStudentEnrollmentBean", new BolonhaStudentEnrollmentBean(getStudentCurricularPlan(request),
                executionPeriodBean.getExecutionPeriod(), getCurricularYearForCurricularCourses(), getCurricularRuleLevel(form)));

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

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

    }

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

        final BolonhaStudentEnrollmentBean bean = getRenderedObject("bolonhaStudentEnrolments");
        request.setAttribute("studentId", bean.getStudentCurricularPlan().getRegistration().getStudent().getExternalId());
        return showAllStudentCurricularPlans(mapping, form, request, response);
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

    }

    public ActionForward enrolInDegreeModules(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final BolonhaStudentEnrollmentBean bolonhaStudentEnrollmentBean = getBolonhaStudentEnrollmentBeanFromViewState();
        try {
            final RuleResult ruleResults =
                    EnrolBolonhaStudentInCurriculumValidationContext.run(

                    bolonhaStudentEnrollmentBean.getStudentCurricularPlan(), bolonhaStudentEnrollmentBean.getExecutionPeriod(),
                            bolonhaStudentEnrollmentBean.getDegreeModulesToEvaluate(),
                            bolonhaStudentEnrollmentBean.getCurriculumModulesToRemove(),
                            bolonhaStudentEnrollmentBean.getCurricularRuleLevel());

            if (!bolonhaStudentEnrollmentBean.getDegreeModulesToEvaluate().isEmpty()
                    || !bolonhaStudentEnrollmentBean.getCurriculumModulesToRemove().isEmpty()) {
                addActionMessage("success", request, "label.save.success");
            }

            if (ruleResults.isWarning()) {
                addRuleResultMessagesToActionMessages("warning", request, ruleResults);
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

        return mapping.findForward("show-set-end-stage-date-form");
    }

    public ActionForward editEndStageDate(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        BolonhaStudentEnrollmentBean studentEnrolmentBean = readStudentEnrolmentBean(request);
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);

        studentCurricularPlan.editEndStageDate(studentEnrolmentBean.getEndStageDate());

        return prepareCurriculumValidation(mapping, actionForm, request, response);
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

        if (executionSemester == null) {
            executionSemester = getDomainObject(request, "executionSemesterId");
        }

        if (executionSemester == null) {
            BolonhaStudentEnrollmentBean bean = readStudentEnrolmentBean(request);
            if (bean != null) {
                executionSemester = bean.getExecutionPeriod();
            }
        }

        if (executionSemester == null) {
            List<ExecutionSemester> possibleExecutionPeriods = readPossibleExecutionSemestersForStudentCurricularPlan(request);
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

    }

    private BolonhaStudentEnrollmentBean readBolonhaStudentEnrollmentBean(HttpServletRequest request,
            StudentCurricularPlan studentCurricularPlan, ExecutionSemester executionSemester, final int[] curricularYears,
            CurricularRuleLevel enrolmentNoRules, boolean create) {
        BolonhaStudentEnrollmentBean studentEnrolmentBean =
                (BolonhaStudentEnrollmentBean) request.getAttribute("bolonhaStudentEnrollmentBean");

        if (studentEnrolmentBean == null) {
            studentEnrolmentBean = (BolonhaStudentEnrollmentBean) getObjectFromViewState("student.enrolment.bean");
        }

        if (studentEnrolmentBean == null || create) {
            studentEnrolmentBean =
                    new BolonhaStudentEnrollmentBean(studentCurricularPlan, executionSemester, curricularYears,
                            CurricularRuleLevel.ENROLMENT_NO_RULES);
        }

        request.setAttribute("bolonhaStudentEnrollmentBean", studentEnrolmentBean);
        return studentEnrolmentBean;
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

        request.setAttribute("bolonhaStudentEnrollmentBean", studentEnrolmentBean);
        return studentEnrolmentBean;
    }

    private BolonhaStudentEnrollmentBean readStudentEnrolmentBean(HttpServletRequest request) {
        BolonhaStudentEnrollmentBean studentEnrolmentBean =
                (BolonhaStudentEnrollmentBean) request.getAttribute("bolonhaStudentEnrollmentBean");

        if (studentEnrolmentBean == null) {
            studentEnrolmentBean = (BolonhaStudentEnrollmentBean) getObjectFromViewState("student.enrolment.bean");
        }
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

    }

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

        final BolonhaStudentEnrollmentBean bolonhaStudentEnrollmentBean = getBolonhaStudentEnrollmentBeanFromViewState();
        request.setAttribute("studentCurricularPlan", bolonhaStudentEnrollmentBean.getStudentCurricularPlan());
        request.setAttribute("executionPeriod", bolonhaStudentEnrollmentBean.getExecutionPeriod());

        return mapping.findForward("showStudentEnrollmentMenu");

    }
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

        registration = getDomainObject(request, "registrationOid");
        if (registration != null) {
            return registration;
        }

        final BolonhaStudentEnrollmentBean bean = getBolonhaStudentEnrollmentBeanFromViewState();
        if (bean != null && bean.getRegistration() != null) {
            return bean.getRegistration();
        }

        final BolonhaStudentOptionalEnrollmentBean optionalBean = getBolonhaStudentOptionalEnrollmentBeanFromViewState();
        if (optionalBean != null && optionalBean.getRegistration() != null) {
            return optionalBean.getRegistration();
View Full Code Here

Examples of org.fenixedu.academic.dto.student.enrollment.bolonha.BolonhaStudentEnrollmentBean

    @Override
    public ActionForward prepareChooseOptionalCurricularCourseToEnrol(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {

        final BolonhaStudentEnrollmentBean bean = getBolonhaStudentEnrollmentBeanFromViewState();
        addCompetenceCoursesAvalailableToEnrol(request, bean.getStudentCurricularPlan());
        return super.prepareChooseOptionalCurricularCourseToEnrol(mapping, form, request, response);
    }
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.