Examples of PhdEventExemptionBean


Examples of org.fenixedu.academic.ui.struts.action.phd.PhdEventExemptionBean

        return showExemptions(mapping, form, request, response);
    }

    public ActionForward prepareCreatePhdEventExemption(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        PhdEventExemptionBean phdEventExemptionBean = new PhdEventExemptionBean((PhdEvent) getEvent(request));
        phdEventExemptionBean.setJustificationType(PhdEventExemptionJustificationType.DIRECTIVE_COUNCIL_AUTHORIZATION);
        request.setAttribute("exemptionBean", phdEventExemptionBean);
        return mapping.findForward("createPhdEventExemption");
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.phd.PhdEventExemptionBean

        return mapping.findForward("createPhdEventExemption");
    }

    public ActionForward prepareCreatePhdGratuityExemptionForGratuity(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        PhdEventExemptionBean phdEventExemptionBean = new PhdEventExemptionBean((PhdEvent) getEvent(request));
        phdEventExemptionBean.setJustificationType(PhdEventExemptionJustificationType.PHD_GRATUITY_FCT_SCHOLARSHIP_EXEMPTION);
        phdEventExemptionBean.setProviders(new ArrayList<Party>(Bennu.getInstance().getExternalScholarshipProviderSet()));
        request.setAttribute("exemptionBean", phdEventExemptionBean);
        return mapping.findForward("createFCTExemption");
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.phd.PhdEventExemptionBean

    public ActionForward createFCTExemption(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        try {
            final PhdEventExemptionBean bean = getRenderedObject("exemptionBean");
            PhdGratuityExternalScholarshipExemption.createPhdGratuityExternalScholarshipExemption(getLoggedPerson(request),
                    bean.getValue(), bean.getProvider(), ((PhdGratuityEvent) bean.getEvent()));
        } catch (DomainExceptionWithLabelFormatter ex) {
            addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
            return showExemptions(mapping, form, request, response);

        } catch (DomainException ex) {
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.phd.PhdEventExemptionBean

    public ActionForward createPhdEventExemption(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        try {
            final PhdEventExemptionBean bean = getRenderedObject("exemptionBean");
            if (bean.getJustificationType() == PhdEventExemptionJustificationType.PHD_GRATUITY_FCT_SCHOLARSHIP_EXEMPTION) {
                PhdGratuityExternalScholarshipExemption.createPhdGratuityExternalScholarshipExemption(getLoggedPerson(request),
                        bean.getValue(), bean.getProvider(), (PhdGratuityEvent) bean.getEvent());
            } else if (bean.getJustificationType() == PhdEventExemptionJustificationType.DIRECTIVE_COUNCIL_AUTHORIZATION) {
                PhdEventExemption.create(getLoggedPerson(request), bean.getEvent(), bean.getValue(), bean.getJustificationType(),
                        bean.getDispatchDate(), bean.getReason());
            } else if (bean.getJustificationType() == PhdEventExemptionJustificationType.FINE_EXEMPTION) {
                PhdGratuityFineExemption.createPhdGratuityFineExemption(getLoggedPerson(request),
                        (PhdGratuityEvent) bean.getEvent(), bean.getReason());
            }
        } catch (DomainExceptionWithLabelFormatter ex) {
            addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
            return prepareCreatePhdEventExemptionInvalid(mapping, form, request, response);
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.phd.PhdEventExemptionBean

        return showExemptions(mapping, form, request, response);
    }

    public ActionForward changeForm(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        PhdEventExemptionBean bean = getRenderedObject("exemptionBean");
        RenderUtils.invalidateViewState();
        if (bean.getJustificationType().equals(PhdEventExemptionJustificationType.PHD_GRATUITY_FCT_SCHOLARSHIP_EXEMPTION)) {
            request.setAttribute("exemptionBean", bean);
            return mapping.findForward("createFCTExemption");

        } else {
            request.setAttribute("exemptionBean", bean);
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.