Package br.gov.serpro.ouvidoria.controller.gerencial.administracao

Examples of br.gov.serpro.ouvidoria.controller.gerencial.administracao.TipoAvaliacaoRespostaCtrl


    public ActionForward listar(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        TipoAvaliacaoRespostaCtrl defaultCtrl = new TipoAvaliacaoRespostaCtrl(
                getDaoFactory());
        request.setAttribute("listar", defaultCtrl.list(getOrgao(request)));
        return mapping.findForward("listar");
    }
View Full Code Here


        TipoAvaliacaoResposta object = null;
        if (id == null || id.trim().length() == 0) {
            object = new TipoAvaliacaoResposta();
        } else {
            TipoAvaliacaoRespostaCtrl defaultCtrl = new TipoAvaliacaoRespostaCtrl(
                    getDaoFactory());
            object = defaultCtrl.get(new Long(id));
        }

        request.setAttribute("object", object);
        request.setAttribute("function", request.getParameter("function"));
View Full Code Here

        if (!msgs.isEmpty()) {
            saveErrors(request, msgs);
            return mapping.findForward("error");
        }

        TipoAvaliacaoRespostaCtrl defaultCtrl = new TipoAvaliacaoRespostaCtrl(
                getDaoFactory());

        if (id != null && id.trim().length() > 0) {

            defaultCtrl.update(getOrgao(request), id, descricao, vigencia, tipoAvaliacao);

            msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                    "message.atualizarTipoAvaliacaoResposta.alterar"));
        } else {
            defaultCtrl.insert(getOrgao(request), descricao, vigencia, tipoAvaliacao);

            msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                    "message.atualizarTipoAvaliacaoResposta.incluir"));
        }
View Full Code Here

        String message = null;
        try {
            final Timestamp vigencia = new Timestamp(sdf.parse(
                    dataVigencia + " " + horaVigencia).getTime());

            TipoAvaliacaoRespostaCtrl defaultCtrl = new TipoAvaliacaoRespostaCtrl(
                    getDaoFactory());
            defaultCtrl.delete(getOrgao(request), id, vigencia);
            message = "message.atualizarTipoAvaliacaoResposta.excluir";
        } catch (ParseException e) {
            message = "error.atualizarTipoAvaliacaoResposta.dataVigencia";
        }
View Full Code Here

TOP

Related Classes of br.gov.serpro.ouvidoria.controller.gerencial.administracao.TipoAvaliacaoRespostaCtrl

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.