1 ; Configuración de la base de datos.
6 obtener_datos_usuario = " SELECT login FROM samurai.perfil_sist_usuario "
7 obtener_datos_usuario2 = " SELECT DISTINCT login FROM samurai.perfil_sist_usuario WHERE id_sistema = ? "
8 obtener_datos_usuario3 = " WHERE login = ? "
9 obtener_datos_usuario4 = " ORDER BY login"
11 obtener_perfiles_usuario = " SELECT id_perfil FROM samurai.perfil_sist_usuario WHERE login = ? AND id_sistema = ?"
13 verificar_login2 = " SELECT login FROM samurai.perfil_sist_usuario WHERE login = ? AND id_sistema = ?"
14 borrar = " DELETE FROM samurai.perfil_sist_usuario WHERE login = ? AND id_sistema = ?"
16 obtener_informacion = " SELECT psu.login AS login, psu.id_sistema AS id_sistema, sist.nombre_sistema AS nombre_sistema, psu.id_perfil AS id_perfil, perf.desc_perfil AS desc_perfil, pps.id_permiso AS id_permiso, perm.desc_permiso AS desc_permiso, pps.observaciones AS observaciones FROM samurai.permiso AS perm, samurai.perfil AS perf, samurai.sistema AS sist, samurai.perfil_sist_usuario AS psu, samurai.perm_perfil_sist AS pps WHERE psu.id_perfil = pps.id_perfil AND psu.id_sistema = pps.id_sistema AND psu.id_sistema = sist.id_sistema AND psu.id_perfil = perf.id_perfil AND pps.id_permiso = perm.id_permiso AND psu.login = ? ORDER BY sist.nombre_sistema, perf.desc_perfil, perm.desc_permiso"
18 obtener_datos_compartido = "SELECT DISTINCT psu.login AS login, u.nombre AS nombre FROM samurai.perfil_sist_usuario AS psu, usuario.Usuario as u WHERE psu.login LIKE '%##?##%' AND psu.login = u.login ORDER BY psu.login"