Package org.fenixedu.academic.domain.candidacyProcess.mobility

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityApplicationProcess$SendEmailToMissingRequiredDocumentsProcesses


        ActionForward actionForwardError = verifySubmissionPreconditions(mapping);
        if (actionForwardError != null) {
            return actionForwardError;
        }

        MobilityApplicationProcess candidacyProcess = (MobilityApplicationProcess) getCurrentOpenParentProcess();

        if (!StringUtils.isEmpty(eIdentifier) && candidacyProcess.getProcessByEIdentifier(eIdentifier) != null) {
            return mapping.findForward("stork-candidacy-already-bounded");
        }

        MobilityIndividualApplicationProcessBean bean = new MobilityIndividualApplicationProcessBean(candidacyProcess);
        bean.setPersonBean(new PersonBean());
View Full Code Here


    }

    @Override
    public Object provide(Object source, Object currentValue) {
        MobilityStudentDataBean bean = (MobilityStudentDataBean) source;
        MobilityApplicationProcess process = (MobilityApplicationProcess) bean.getParentProcess();

        List<Country> countries = process.getCandidacyPeriod().getAssociatedCountries();
        Collections.sort(countries, new BeanComparator("localizedName"));

        return countries;
    }
View Full Code Here

    @Override
    public ActionForward prepareExecuteEditCandidacyPeriod(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final CandidacyProcess process = getProcess(request);
        final MobilityApplicationProcess map = (MobilityApplicationProcess) process;
        final MobilityApplicationProcessBean bean = new MobilityApplicationProcessBean(process);
        bean.setForSemester(((MobilityApplicationProcess) process).getForSemester());
        request.setAttribute("candidacyProcessBean", bean);
        if (!map.getChildProcessesSet().isEmpty()) {
            request.setAttribute("preLoadLevel", "Error");
        } else if (!map.getCoordinatorsSet().isEmpty() || map.getCandidacyPeriod().getMobilityQuotasSet().size() > 0
                || map.getCandidacyPeriod().getEmailTemplatesSet().size() > 0) {
            request.setAttribute("preLoadLevel", "Warn");
        } else {
            request.setAttribute("preLoadLevel", "Ok");
        }
View Full Code Here

    }

    public ActionForward preLoadLastConfigurations(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        String processEid = request.getParameter("processEid");
        MobilityApplicationProcess process = FenixFramework.getDomainObject(processEid);
        preLoadLastProcessConfigurations(process);
        return listProcessAllowedActivities(mapping, actionForm, request, response);
    }
View Full Code Here

            request.setAttribute("canCreateProcess", canCreateProcess(getProcessType().getName()));
            request.setAttribute("executionIntervals", executionIntervals);

        } else {
            final ExecutionInterval executionInterval = getExecutionInterval(request);
            final MobilityApplicationProcess candidacyProcess = getCandidacyProcess(request, executionInterval);

            if (candidacyProcess != null) {
                setCandidacyProcessInformation(request, candidacyProcess);
                setCandidacyProcessInformation(actionForm, getProcess(request));
            } else {
View Full Code Here

        DegreeOfficePublicCandidacyHashCode hashCode =
                getUnusedOrCreateNewHashCode(individualCandidadyProcessClass, parentProcess, email);

        if (parentProcess.isMobility()) {
            MobilityApplicationProcess mobilityApplicationProcess = (MobilityApplicationProcess) parentProcess;
            MobilityApplicationPeriod candidacyPeriod = mobilityApplicationProcess.getCandidacyPeriod();

            MobilityEmailTemplate emailTemplateFor =
                    candidacyPeriod.getEmailTemplateFor(MobilityEmailTemplateType.PREREGISTRATION);

            emailTemplateFor.sendEmailFor(hashCode);
View Full Code Here

    public void sendEmailForApplicationSuccessfullySubmited() {
        CandidacyProcess parentProcess = getIndividualCandidacyProcess().getCandidacyProcess();

        if (parentProcess.isMobility()) {
            MobilityApplicationProcess mobilityApplicationProcess = (MobilityApplicationProcess) parentProcess;
            MobilityApplicationPeriod candidacyPeriod = mobilityApplicationProcess.getCandidacyPeriod();

            MobilityEmailTemplate emailTemplateFor =
                    candidacyPeriod.getEmailTemplateFor(MobilityEmailTemplateType.APPLICATION_SUBMISSION);

            emailTemplateFor.sendEmailFor(this);
View Full Code Here

        }

        @Override
        public Object provide(Object source, Object currentValue) {
            SendReceptionEmailBean bean = (SendReceptionEmailBean) source;
            MobilityApplicationProcess candidacyProcess = bean.getMobilityApplicationProcess();
            return null;
        }
View Full Code Here

    public ActionForward prepareExecuteViewMobilityQuota(final ActionMapping mapping, final ActionForm form,
            final HttpServletRequest request, final HttpServletResponse response, final MobilityProgram program) {
        ErasmusVacancyBean erasmusVacancyBean = new ErasmusVacancyBean(program);
        request.setAttribute("erasmusVacancyBean", erasmusVacancyBean);

        MobilityApplicationProcess process = getProcess(request);

        if (erasmusVacancyBean.getMobilityProgram() != null) {
            List<MobilityQuota> mobilityQuotasByProgram =
                    process.getApplicationPeriod().getMobilityQuotasByProgram(erasmusVacancyBean.getMobilityProgram());
            request.setAttribute("quotas", mobilityQuotasByProgram);
        }

        return mapping.findForward("view-university-agreements");
    }
View Full Code Here

            HttpServletRequest request, HttpServletResponse response) {
        ErasmusVacancyBean erasmusVacancyBean = getErasmusVacancyBean();

        request.setAttribute("erasmusVacancyBean", erasmusVacancyBean);

        MobilityApplicationProcess process = getProcess(request);

        if (erasmusVacancyBean.getMobilityProgram() != null) {
            List<MobilityQuota> mobilityQuotasByProgram =
                    process.getApplicationPeriod().getMobilityQuotasByProgram(erasmusVacancyBean.getMobilityProgram());
            request.setAttribute("quotas", mobilityQuotasByProgram);
        }

        return mapping.findForward("view-university-agreements");
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityApplicationProcess$SendEmailToMissingRequiredDocumentsProcesses

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.