Package org.fenixedu.academic.domain.student

Examples of org.fenixedu.academic.domain.student.Registration


                if (secondCycle == null) {
                    return prepareSelectAffinityToEnrol(mapping, request, studentCurricularPlan, executionSemester);

                } else if (secondCycle.isExternal()) {
                    final Student student = studentCurricularPlan.getRegistration().getStudent();
                    final Registration newRegistration =
                            student.getActiveRegistrationFor(secondCycle.getDegreeCurricularPlanOfDegreeModule());

                    if (newRegistration != null) {
                        request.setAttribute("registration", newRegistration);
                        return mapping.findForward("proceedToEnrolment");
View Full Code Here


            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) {
View Full Code Here

@Forwards({ @Forward(name = "showManageEnrolmentModel", path = "/academicAdminOffice/manageEnrolmentModel.jsp") })
public class ManageEnrolmentModelDA extends FenixDispatchAction {

    public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        Registration registration = getDomainObject(request, "registrationID");
        EnrolmentModelFactoryEditor enrolmentModelFactoryEditor = new EnrolmentModelFactoryEditor(registration);

        request.setAttribute("enrolmentModelBean", enrolmentModelFactoryEditor);
        return mapping.findForward("showManageEnrolmentModel");
    }
View Full Code Here

    }

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

        final Registration registration = getRegistration(request);
        if (!registrationBelongsToRegistrationsToEnrol(request, registration)
                && !getRegistrationsToChooseSecondCycle(registration.getStudent()).contains(registration)) {
            return mapping.findForward("notAuthorized");
        }

        return getActionForwardForRegistration(mapping, request, registration);
    }
View Full Code Here

    protected Registration getAndSetRegistration(final HttpServletRequest request) {
        final String registrationID =
                getFromRequest(request, "registrationID") != null ? getFromRequest(request, "registrationID").toString() : getFromRequest(
                        request, "registrationId").toString();
        final Registration registration = FenixFramework.getDomainObject(registrationID);
        request.setAttribute("registration", registration);
        return registration;
    }
View Full Code Here

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

        try {
            Registration registration =
                    CreateStudent.run((PersonBean) getRenderedObject("person"),
                            (ExecutionDegreeBean) getRenderedObject("executionDegree"),
                            (PrecedentDegreeInformationBean) getRenderedObject("precedentDegreeInformation"),
                            (IngressionInformationBean) getRenderedObject("chooseIngression"),
                            (OriginInformationBean) getRenderedObject("originInformation"));
View Full Code Here

                key = "error.message.OutsideOfCurrentClassesEnrolmentPeriodForDegreeCurricularPlan",
                handler = FenixErrorExceptionHandler.class, scope = "request") })
public class ShiftStudentEnrollmentManagerLookupDispatchAction extends FenixDispatchAction {

    private Registration getAndSetRegistration(final HttpServletRequest request) {
        final Registration registration = FenixFramework.getDomainObject(request.getParameter("registrationOID"));
        if (!getUserView(request).getPerson().getStudent().getRegistrationsToEnrolInShiftByStudent().contains(registration)) {
            return null;
        }

        request.setAttribute("registration", registration);
        request.setAttribute("registrationOID", registration.getExternalId().toString());
        return registration;
    }
View Full Code Here

    @EntryPoint
    public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final Registration registration = getAndTransportRegistration(request);
        request.setAttribute("registrationStateBean", new RegistrationStateCreator(registration));
        return mapping.findForward("showRegistrationStates");
    }
View Full Code Here

            addActionMessage(request, e.getKey(), solveLabelFormatterArgs(request, e.getLabelFormatterArgs()));
        } catch (DomainException e) {
            addActionMessage(request, e.getMessage(), e.getArgs());
        }

        final Registration registration = ((RegistrationStateBean) getRenderedObject()).getRegistration();
        request.setAttribute("registration", registration);
        request.setAttribute("registrationStateBean", new RegistrationStateCreator(registration));
        return mapping.findForward("showRegistrationStates");
    }
View Full Code Here

        return prepare(mapping, actionForm, request, response);
    }

    private Registration getAndTransportRegistration(final HttpServletRequest request) {
        final Registration registration = getDomainObject(request, "registrationId");
        request.setAttribute("registration", registration);
        return registration;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.student.Registration

Copyright © 2018 www.massapicom. 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.