Examples of CycleEnrolmentBean


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

        if (!canContinueToEnrolment(request, studentCurricularPlan, executionSemester)) {
            return mapping.findForward("enrollmentCannotProceed");
        }

        request.setAttribute("cycleEnrolmentBean", new CycleEnrolmentBean(studentCurricularPlan, executionSemester,
                CycleType.FIRST_CYCLE, CycleType.SECOND_CYCLE));

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

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

        if (!canContinueToEnrolment(request, studentCurricularPlan, executionSemester)) {
            return mapping.findForward("enrollmentCannotProceed");
        }

        request.setAttribute("cycleEnrolmentBean", new CycleEnrolmentBean(studentCurricularPlan, executionSemester,
                curriculumGroup.getCycleCourseGroup()));

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

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

    }

    public ActionForward showAffinityToEnrol(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final CycleEnrolmentBean bean = getCycleEnrolmentBeanFromViewState();

        if (!canContinueToEnrolment(request, bean.getStudentCurricularPlan(), bean.getExecutionPeriod())) {
            return mapping.findForward("enrollmentCannotProceed");
        }

        request.setAttribute("cycleEnrolmentBean", bean);
        return mapping.findForward("showAffinityToEnrol");
View Full Code Here

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

    }

    public ActionForward enrolInAffinityCycle(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final CycleEnrolmentBean cycleEnrolmentBean = getCycleEnrolmentBeanFromViewState();

        try {
            final Registration registration =
                    EnrolInAffinityCycle.run(getLoggedPerson(request), cycleEnrolmentBean.getStudentCurricularPlan(),
                            cycleEnrolmentBean.getCycleCourseGroupToEnrol(), cycleEnrolmentBean.getExecutionPeriod());

            request.setAttribute("registration", registration);
        } catch (final IllegalDataAccessException e) {
            addActionMessage(request, "error.NotAuthorized");
            request.setAttribute("cycleEnrolmentBean", cycleEnrolmentBean);
View Full Code Here

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

            HttpServletResponse response) {

        final ErasmusBolonhaStudentEnrollmentBean studentEnrollmentBean =
                (ErasmusBolonhaStudentEnrollmentBean) getRenderedObject();

        final CycleEnrolmentBean cycleEnrolmentBean =
                new CycleEnrolmentBean(studentEnrollmentBean.getStudentCurricularPlan(),
                        studentEnrollmentBean.getExecutionPeriod(), studentEnrollmentBean.getCycleTypeToEnrol()
                                .getSourceCycleAffinity(), studentEnrollmentBean.getCycleTypeToEnrol());
        request.setAttribute("cycleEnrolmentBean", cycleEnrolmentBean);
        request.setAttribute("withRules", false);
        request.setAttribute("process", studentEnrollmentBean.getCandidacy().getCandidacyProcess());
View Full Code Here

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

    }

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

        final CycleEnrolmentBean cycleEnrolmentBean = getCycleEnrolmentBeanFromViewState();

        try {
            EnrolInAffinityCycle.run(getLoggedPerson(request), cycleEnrolmentBean);

        } catch (final IllegalDataAccessException e) {
View Full Code Here

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

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

        final BolonhaStudentEnrollmentBean studentEnrollmentBean = getBolonhaStudentEnrollmentBeanFromViewState();

        final CycleEnrolmentBean cycleEnrolmentBean =
                new CycleEnrolmentBean(studentEnrollmentBean.getStudentCurricularPlan(),
                        studentEnrollmentBean.getExecutionPeriod(), studentEnrollmentBean.getCycleTypeToEnrol()
                                .getSourceCycleAffinity(), studentEnrollmentBean.getCycleTypeToEnrol());
        request.setAttribute("cycleEnrolmentBean", cycleEnrolmentBean);

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

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

    protected ActionForward prepareChooseCycleCourseGroupToEnrol(final ActionMapping mapping, final HttpServletRequest request,
            final StudentCurricularPlan studentCurricularPlan, final ExecutionSemester executionSemester,
            final CycleType sourceCycle, final CycleType cycleToEnrol) {

        request.setAttribute("cycleEnrolmentBean", new CycleEnrolmentBean(studentCurricularPlan, executionSemester, sourceCycle,
                cycleToEnrol));
        return mapping.findForward("chooseCycleCourseGroupToEnrol");
    }
View Full Code Here

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

    }

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

        final CycleEnrolmentBean cycleEnrolmentBean = getCycleEnrolmentBeanFromViewState();

        try {
            EnrolInAffinityCycle.run(getLoggedPerson(request), cycleEnrolmentBean);

        } catch (final IllegalDataAccessException e) {
            addActionMessage(request, "error.NotAuthorized");

            request.setAttribute("withRules", request.getParameter("withRules"));
            request.setAttribute("cycleEnrolmentBean", cycleEnrolmentBean);
            return mapping.findForward("chooseCycleCourseGroupToEnrol");

        } catch (final DomainException e) {
            addActionMessage(request, e.getKey(), e.getArgs());

            request.setAttribute("withRules", request.getParameter("withRules"));
            request.setAttribute("cycleEnrolmentBean", cycleEnrolmentBean);
            return mapping.findForward("chooseCycleCourseGroupToEnrol");
        }

        return prepareShowDegreeModulesToEnrol(mapping, form, request, response, cycleEnrolmentBean.getStudentCurricularPlan(),
                cycleEnrolmentBean.getExecutionPeriod());
    }
View Full Code Here

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

public class CompatibleCycleCourseGroupsProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        final CycleEnrolmentBean cycleEnrolmentBean = (CycleEnrolmentBean) source;
        return cycleEnrolmentBean.getCycleDestinationAffinities();
    }
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.