* Actualización de script para crear tablas (Todo a minusculas, no case sensitive) * Script de datos de pruebas de especialides médicas. * Nuevo bean para registro de usuarios (Quidato de filtro de seguridad de login, acceso sin login). * Actualización de entidades JPA con campos Identity. * Enumerado para gestionar tipos de usuarios (Paciente, Medico Familia, Especialista y Administrador) * Clase común para realizar validaciones (función para validar nif).
72 lines
2.7 KiB
XML
72 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd" version="2.3">
|
|
|
|
<navigation-rule>
|
|
<navigation-case>
|
|
<from-outcome>home</from-outcome>
|
|
<to-view-id>/home.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>RegisterUser</from-outcome>
|
|
<to-view-id>/profile/RegisterUser.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>AddPatient</from-outcome>
|
|
<to-view-id>/profile/AddPatient.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>AddFamilyDoctor</from-outcome>
|
|
<to-view-id>/profile/AddFamilyDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>AddSpecialistDoctor</from-outcome>
|
|
<to-view-id>/profile/AddSpecialistDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>ChangeFamilyDoctor</from-outcome>
|
|
<to-view-id>/profile/ChangeFamilyDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>ShowPatient</from-outcome>
|
|
<to-view-id>/profile/ShowPatient.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>ShowFamilyDoctor</from-outcome>
|
|
<to-view-id>/profile/ShowFamilyDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>ShowSpecialistDoctor</from-outcome>
|
|
<to-view-id>/profile/ShowSpecialistDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>UpdateSpecialistDoctor</from-outcome>
|
|
<to-view-id>/profile/UpdateSpecialistDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>UpdateFamilyDoctor</from-outcome>
|
|
<to-view-id>/profile/UpdateFamilyDoctor.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>UpdatePatient</from-outcome>
|
|
<to-view-id>/profile/UpdatePatient.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>changecap</from-outcome>
|
|
<to-view-id>/profile/ChangePrimaryHealthCareCenter.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>MedicalTests</from-outcome>
|
|
<to-view-id>/medicaltest/MedicalTests.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>VisitView</from-outcome>
|
|
<to-view-id>/visit/VisitView.xhtml</to-view-id>
|
|
</navigation-case>
|
|
<navigation-case>
|
|
<from-outcome>ManageSpecialties</from-outcome>
|
|
<to-view-id>/systemAdmin/ManageSpecialties.xhtml</to-view-id>
|
|
</navigation-case>
|
|
</navigation-rule>
|
|
</faces-config>
|