Examples of modificar()


Examples of es.ua.dccia.negocio.UsuarioBO.modificar()

            throw new CustomWebAppException("No puedes modificar los datos de otro usuario", Response.Status.FORBIDDEN);
        UsuarioBO ubo = new UsuarioBO();
        //Si estamos intentando cambiar el password, comprobar que el usuario sabe su password antiguo
        if (uto.getNewPassword()!=null && !ubo.getUsuario(login).getPassword().equals(uto.getOldPassword()))
           throw new CustomWebAppException("La antigua contraseña no es correcta", Response.Status.FORBIDDEN);
        ubo.modificar(uto);
        return "OK";
    }
   
}
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.