Examples of MobilityEmailTemplateBean


Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityEmailTemplateBean

        return getRenderedObject("send.reception.email.bean");
    }

    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();

        request.setAttribute("mobilityEmailTemplateBean", bean);
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityEmailTemplateBean

        return mapping.findForward("manageEmailTemplates");
    }

    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 {
            bean.setSubject("");
            bean.setBody("");
        }

        request.setAttribute("mobilityEmailTemplateBean", bean);
        request.setAttribute("hasMobilityPrograms", true);
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityEmailTemplateBean

        return mapping.findForward("manageEmailTemplates");
    }

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

        request.setAttribute("mobilityEmailTemplateBean", bean);
        request.setAttribute("hasMobilityPrograms", true);

        RenderUtils.invalidateViewState();
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityEmailTemplateBean

        return mapping.findForward("manageEmailTemplates");
    }

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

        request.setAttribute("mobilityEmailTemplateBean", bean);

        RenderUtils.invalidateViewState();
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.mobility.MobilityEmailTemplateBean

        return mapping.findForward("previewEmailTemplate");
    }

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