Package br.gov.serpro.ouvidoria.controller

Examples of br.gov.serpro.ouvidoria.controller.AdminFuncionario


        List funcionarios = null;
        ActionErrors errors = new ActionErrors();
        try {

            AdminFuncionario adminFuncionarios = new AdminFuncionario(
                    getDaoFactory());
            funcionarios = adminFuncionarios.list();

            request.setAttribute("listarFuncionarios", funcionarios);

        } catch (Exception e) {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
View Full Code Here


            String id = dynaForm.getString("id");
            String nome = dynaForm.getString("nome");
            String login = dynaForm.getString("login");
            String senha = dynaForm.getString("senha");

            AdminFuncionario adminFuncionario = new AdminFuncionario(
                    getDaoFactory());

            adminFuncionario.save(id, nome, login, senha);

        } catch (DaoException e) {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                    "error.update.user"));
        }
View Full Code Here

            throws Exception {

        ActionErrors errors = new ActionErrors();
        try {

            AdminFuncionario adminFuncionario = new AdminFuncionario(
                    getDaoFactory());

            Long id = new Long(request.getParameter("id"));

            Funcionario funcionario = adminFuncionario.get(id);

            if (funcionario == null) {
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                        "error.user.notFound"));
            }
View Full Code Here

            throws Exception {

        ActionErrors errors = new ActionErrors();
        try {

            AdminFuncionario adminFuncionarios = new AdminFuncionario(
                    getDaoFactory());

            final Long id = new Long(request.getParameter("id"));

            adminFuncionarios.delete(id);

        } catch (DaoException e) {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                    "error.delete.user"));
        }
View Full Code Here

TOP

Related Classes of br.gov.serpro.ouvidoria.controller.AdminFuncionario

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.