Package org.fenixedu.academic.domain.mobility.outbound

Examples of org.fenixedu.academic.domain.mobility.outbound.OutboundMobilityCandidacyContest


                    }
                    for (final Registration registration : student.getRegistrationsSet()) {
                        for (final OutboundMobilityCandidacySubmission submission : registration
                                .getOutboundMobilityCandidacySubmissionSet()) {
                            for (final OutboundMobilityCandidacy candidacy : submission.getOutboundMobilityCandidacySet()) {
                                final OutboundMobilityCandidacyContest contest = candidacy.getOutboundMobilityCandidacyContest();
                                final OutboundMobilityCandidacyContestGroup group =
                                        contest.getOutboundMobilityCandidacyContestGroup();
                                for (final Person coordinator : group.getMobilityCoordinatorSet()) {
                                    if (coordinator == person) {
                                        return true;
                                    }
                                }
View Full Code Here


    }

    public ActionForward apply(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) throws FenixActionException, FenixServiceException {
        final Student student = getUserView(request).getPerson().getStudent();
        final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid");
        contest.apply(student);
        return prepare(mapping, request, student);
    }
View Full Code Here

    }

    public ActionForward deleteContest(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        final OutboundMobilityContextBean outboundMobilityContextBean = getRenderedObject();
        final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid");
        if (contest != null) {
            try {
                final OutboundMobilityCandidacyContestGroup mobilityGroup = contest.getOutboundMobilityCandidacyContestGroup();
                if (mobilityGroup.getOutboundMobilityCandidacyContestSet().size() == 1) {
                    outboundMobilityContextBean.getMobilityGroups().remove(mobilityGroup);
                }
                contest.delete();
            } catch (Exception e) {
                addErrorMessage(request, "errors", e.getMessage());
            }

        }
View Full Code Here

        return prepare(mapping, request, outboundMobilityContextBean);
    }

    public ActionForward viewContest(final ActionMapping mapping, final ActionForm actionForm, final HttpServletRequest request,
            final HttpServletResponse response) {
        final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid");
        request.setAttribute("contest", contest);
        return mapping.findForward("viewContest");
    }
View Full Code Here

        return mapping.findForward("viewContest");
    }

    public ActionForward viewContestForm(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid");
        request.setAttribute("contest", contest);
        return new ActionForward(viewContestPath(mapping, request, contest), true);
    }
View Full Code Here

        return null;
    }

    public ActionForward editVacancies(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid");
        final String vacancies = (String) getFromRequest(request, "vacancies");
        contest.editVacancies(vacancies == null || vacancies.isEmpty() ? null : new Integer(vacancies));
        return null;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.mobility.outbound.OutboundMobilityCandidacyContest

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.