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

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


        return mapping.findForward("insert-university-agreement");
    }

    public ActionForward executeInsertMobilityQuota(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        MobilityApplicationProcess process = getProcess(request);
        ErasmusVacancyBean bean = getErasmusVacancyBean();

        for (Degree degree : bean.getDegrees()) {
            if (process.getCandidacyPeriod().existsFor(bean.getMobilityAgreement(), degree)) {
                addActionMessage(request, "error.erasmus.insert.vacancy.already.exists");
                return mapping.findForward("insert-university-agreement");
            }
        }
View Full Code Here


    }

    public ActionForward manageEmailTemplates(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        MobilityEmailTemplateBean bean = new MobilityEmailTemplateBean();
        MobilityApplicationProcess process = getProcess(request);
        Set<MobilityProgram> mobilityPrograms = process.getCandidacyPeriod().getMobilityPrograms();

        String templateType = request.getParameter("template");
        if (templateType != null && templateType.equals("Reception")) {
            bean.setType(MobilityEmailTemplateType.IST_RECEPTION);
            MobilityEmailTemplate emailTemplate = process.getCandidacyPeriod().getEmailTemplateFor(bean.getType());
            bean.setSubject(emailTemplate.getSubject());
            bean.setBody(emailTemplate.getBody());
        }

        RenderUtils.invalidateViewState();
View Full Code Here

    }

    public ActionForward manageEmailTemplatesPostback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        MobilityEmailTemplateBean bean = getMobilityEmailTemplateBean();
        MobilityApplicationProcess process = getProcess(request);
        MobilityApplicationPeriod candidacyPeriod = process.getCandidacyPeriod();
        MobilityEmailTemplate emailTemplate = candidacyPeriod.getEmailTemplateFor(bean.getMobilityProgram(), bean.getType());
        if (emailTemplate != null) {
            bean.setSubject(emailTemplate.getSubject());
            bean.setBody(emailTemplate.getBody());
        } else {
View Full Code Here

    }

    public ActionForward editEmailTemplate(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        MobilityEmailTemplateBean bean = getMobilityEmailTemplateBean();
        MobilityApplicationProcess process = getProcess(request);

        process.getCandidacyPeriod().editEmailTemplates(bean);

        return manageEmailTemplates(mapping, actionForm, request, response);
    }
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.