Package org.magicbox.exception

Examples of org.magicbox.exception.UtenteNonTrovatoException


    public ModelAndView conferma(HttpServletRequest req, HttpServletResponse res) throws Exception {

        long id = ServletRequestUtils.getLongParameter(req, Constant.ID, 0);
        if (id == 0) {
            throw new UtenteNonTrovatoException();
        } else {
            return new ModelAndView("donors/confermaEliminazioneDonatore", Constant.DONOR, utentiManager.getUtente(id, WebUtils.getIdCentro(req)));
        }
    }
View Full Code Here


    public ModelAndView elimina(HttpServletRequest req, HttpServletResponse res) throws Exception {

        long id = ServletRequestUtils.getLongParameter(req, Constant.ID, 0);
        if (id == 0) {
            throw new UtenteNonTrovatoException();
        } else {
            String msg = Constant.MSG_ELIMINAZIONE_NO;
            if (utentiManager.deleteUtente(id, WebUtils.getIdCentro(req))) {
                msg = Constant.MSG_ELIMINAZIONE_OK;
            }
View Full Code Here

    public ModelAndView dettaglio(HttpServletRequest req, HttpServletResponse res) throws Exception {

        long id = ServletRequestUtils.getLongParameter(req, Constant.ID, 0);
        if (id == 0) {
            throw new UtenteNonTrovatoException();
        } else {
            return new ModelAndView("donors/dettaglioDonatore", Constant.DONOR, utentiManager.getUtente(id, WebUtils.getIdCentro(req)));
        }
    }
View Full Code Here

TOP

Related Classes of org.magicbox.exception.UtenteNonTrovatoException

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.