Package org.fenixedu.academic.dto.accounting

Examples of org.fenixedu.academic.dto.accounting.CancelEventBean


    }

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

        request.setAttribute("cancelEventBean", new CancelEventBean(getEvent(request), getLoggedPerson(request)));

        return mapping.findForward("editCancelEventJustification");
    }
View Full Code Here


    }

    public ActionForward cancelEvent(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final CancelEventBean cancelEventBean = getCancelEventBean();

        try {
            CancelEvent.run(cancelEventBean.getEvent(), cancelEventBean.getResponsible(), cancelEventBean.getJustification());
        } catch (DomainExceptionWithLabelFormatter ex) {

            addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
            request.setAttribute("cancelEventBean", cancelEventBean);

            return mapping.findForward("editCancelEventJustification");
        } catch (DomainException ex) {

            addActionMessage(request, ex.getKey(), ex.getArgs());
            request.setAttribute("cancelEventBean", cancelEventBean);

            return mapping.findForward("editCancelEventJustification");
        }

        request.setAttribute("person", cancelEventBean.getEvent().getPerson());

        return mapping.findForward("showEvents");

    }
View Full Code Here

        return showEvents(mapping, form, request, response);

    }

    private CancelEventBean getCancelEventBean() {
        final CancelEventBean cancelEventBean = (CancelEventBean) getObjectFromViewState("cancelEventBean");
        return cancelEventBean;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.accounting.CancelEventBean

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.