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

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


    }

    public ActionForward selectCandidates(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        mobilityGroup.selectCandidates(period);

        final OutboundMobilityContextBean outboundMobilityContextBean = new OutboundMobilityContextBean();
        outboundMobilityContextBean.setCandidacyPeriodsAsList(Collections.singletonList(period));
        outboundMobilityContextBean.setMobilityGroupsAsList(Collections.singletonList(mobilityGroup));
View Full Code Here


    }

    public ActionForward concludeCandidateSelection(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        mobilityGroup.concludeCandidateSelection(period);

        final OutboundMobilityContextBean outboundMobilityContextBean = new OutboundMobilityContextBean();
        outboundMobilityContextBean.setCandidacyPeriodsAsList(Collections.singletonList(period));
        outboundMobilityContextBean.setMobilityGroupsAsList(Collections.singletonList(mobilityGroup));
View Full Code Here

    }

    public ActionForward revertConcludeCandidateSelection(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        mobilityGroup.revertConcludeCandidateSelection(period);

        final OutboundMobilityContextBean outboundMobilityContextBean = new OutboundMobilityContextBean();
        outboundMobilityContextBean.setCandidacyPeriodsAsList(Collections.singletonList(period));
        outboundMobilityContextBean.setMobilityGroupsAsList(Collections.singletonList(mobilityGroup));
View Full Code Here

    }

    public ActionForward concludeCandidateNotification(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        mobilityGroup.concludeCandidateNotification(period);

        final OutboundMobilityContextBean outboundMobilityContextBean = new OutboundMobilityContextBean();
        outboundMobilityContextBean.setCandidacyPeriodsAsList(Collections.singletonList(period));
        outboundMobilityContextBean.setMobilityGroupsAsList(Collections.singletonList(mobilityGroup));
View Full Code Here

    }

    public ActionForward revertConcludeCandidateNotification(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        mobilityGroup.revertConcludeCandidateNotification(period);

        final OutboundMobilityContextBean outboundMobilityContextBean = new OutboundMobilityContextBean();
        outboundMobilityContextBean.setCandidacyPeriodsAsList(Collections.singletonList(period));
        outboundMobilityContextBean.setMobilityGroupsAsList(Collections.singletonList(mobilityGroup));
View Full Code Here

    }

    public ActionForward sendEmailToCandidates(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        final String toGroupName =
                BundleUtil.getString(Bundle.ACADEMIC, "label.send.email.to.candidates.group.to.name",
                        mobilityGroup.getDescription(), period.getExecutionInterval().getName());
        final Group group = UnionGroup.of(getCandidateGroups(mobilityGroup, period));

        final Recipient recipient = Recipient.newInstance(toGroupName, group);
        final EmailBean bean = new EmailBean();
        bean.setRecipients(Collections.singletonList(recipient));
View Full Code Here

                    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 SortedSet<OutboundMobilityCandidacyContest> getOutboundMobilityCandidacyContest() {
        final SortedSet<OutboundMobilityCandidacyContest> result = new TreeSet<OutboundMobilityCandidacyContest>();
        for (final OutboundMobilityCandidacyPeriod candidacyPeriod : candidacyPeriods) {
            for (final OutboundMobilityCandidacyContest contest : candidacyPeriod.getOutboundMobilityCandidacyContestSet()) {
                if (mobilityPrograms.contains(contest.getMobilityAgreement().getMobilityProgram())) {
                    final OutboundMobilityCandidacyContestGroup mobilityGroup =
                            contest.getOutboundMobilityCandidacyContestGroup();
                    if (mobilityGroups.contains(mobilityGroup)) {
                        result.add(contest);
                    }
                }
View Full Code Here

            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

    public ActionForward removeMobilityCoordinator(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        final OutboundMobilityContextBean outboundMobilityContextBean = getRenderedObject();

        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");
        final Person person = getDomainObject(request, "personOid");
        mobilityGroup.removeMobilityCoordinatorService(person);

        RenderUtils.invalidateViewState();
        return prepare(mapping, request, outboundMobilityContextBean);
    }
View Full Code Here

TOP

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

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.