Eliminadas paginas y managed beans innecesarios.
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Añadir un nuevo médico de familia">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Añadir un nuevo paciente">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Añadir un nuevo médico especialista">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define> </ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Consultar datos de médico de familia">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Consultar datos de paciente">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Consultar datos de especialista">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Actualizar médico de familia">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Actualizar paciente">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
|
|
||||||
xmlns:p="http://primefaces.org/ui">
|
|
||||||
|
|
||||||
<ui:composition template="../header.xhtml">
|
|
||||||
<ui:define name="content">
|
|
||||||
<h:form id="frmRegisterUser">
|
|
||||||
<p:messages id="mesgs" showDetail="true" closable="true" autoupdate="true" />
|
|
||||||
|
|
||||||
<p:panel id="DatosPersonales" header="Consultar médico especialista">
|
|
||||||
<div class="ui-g ui-fluid">
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:outputLabel value="Campo1:" for="campo1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4">
|
|
||||||
<p:inputText id="campo1" value="123 asdf 123" required="true" requiredMessage="Por favor, indque el campo 1" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-6 ui-md-6">
|
|
||||||
<p:message for="campo1" display="text" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-12 ui-g-nopad">
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
<div class="ui-g-2 ui-md-2 ">
|
|
||||||
<p:commandButton validateClient="true" value="Guardar" update="mesgs" icon="pi pi-check" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-2 ui-md-2">
|
|
||||||
<p:button value="Volver" outcome="/home" icon="pi pi-home" />
|
|
||||||
</div>
|
|
||||||
<div class="ui-g-4 ui-md-4"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</p:panel>
|
|
||||||
</h:form>
|
|
||||||
</ui:define>
|
|
||||||
</ui:composition>
|
|
||||||
</html>
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named("AddFamilyDoctorMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class AddFamilyDoctorMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public AddFamilyDoctorMBean() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.faces.application.FacesMessage;
|
|
||||||
import javax.faces.context.FacesContext;
|
|
||||||
import javax.inject.Named;
|
|
||||||
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ManagedBEan que gestiona la edición y actualización de una especialidad
|
|
||||||
* médica.
|
|
||||||
*
|
|
||||||
* @author mark
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named("addPatientMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class AddPatientMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
private String nif;
|
|
||||||
private String name;
|
|
||||||
private String surname;
|
|
||||||
private String password;
|
|
||||||
private String passwordRepeat;
|
|
||||||
private String email;
|
|
||||||
private String primaryHealthCareCenter;
|
|
||||||
private String medicalSpecialty;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public AddPatientMBean() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEmail() {
|
|
||||||
return email;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEmail(String email) {
|
|
||||||
this.email = email;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSurname() {
|
|
||||||
return surname;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSurname(String surname) {
|
|
||||||
this.surname = surname;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNif() {
|
|
||||||
return nif;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNif(String nif) {
|
|
||||||
this.nif = nif;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void save() {
|
|
||||||
FacesMessage msg;
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Alta realizada", "El usuario " + name + " " + surname + " se ha registrado correctamente.");
|
|
||||||
} catch (Exception e) {
|
|
||||||
msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Error", "Se ha producido un error inesperado: " + e.getLocalizedMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
FacesContext.getCurrentInstance().addMessage(null, msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPasswordRepeat() {
|
|
||||||
return passwordRepeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPasswordRepeat(String passwordRepeat) {
|
|
||||||
this.passwordRepeat = passwordRepeat;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named( "AddSpecialistDoctorMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class AddSpecialistDoctorMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public AddSpecialistDoctorMBean() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named( "ShowFamilyDoctorMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class ShowFamilyDoctorMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public ShowFamilyDoctorMBean() throws Exception {
|
|
||||||
initializeAdminFacadeRemote();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private void initializeAdminFacadeRemote() throws Exception {
|
|
||||||
Properties props = System.getProperties();
|
|
||||||
Context ctx = new InitialContext(props);
|
|
||||||
remoteManager = (ProfileFacadeRemote) ctx
|
|
||||||
.lookup("java:app/myHealth.jar/ProfileFacadeBean!ejb.component.ProfileFacadeRemote");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named("ShowPatientMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class ShowPatientMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public ShowPatientMBean() throws Exception {
|
|
||||||
initializeAdminFacadeRemote();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private void initializeAdminFacadeRemote() throws Exception {
|
|
||||||
Properties props = System.getProperties();
|
|
||||||
Context ctx = new InitialContext(props);
|
|
||||||
remoteManager = (ProfileFacadeRemote) ctx.lookup("java:app/myHealth.jar/ProfileFacadeBean!ejb.component.ProfileFacadeRemote");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named( "ShowSpecialistDoctorMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class ShowSpecialistDoctorMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public ShowSpecialistDoctorMBean() throws Exception {
|
|
||||||
initializeAdminFacadeRemote();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private void initializeAdminFacadeRemote() throws Exception {
|
|
||||||
Properties props = System.getProperties();
|
|
||||||
Context ctx = new InitialContext(props);
|
|
||||||
remoteManager = (ProfileFacadeRemote) ctx
|
|
||||||
.lookup("java:app/myHealth.jar/ProfileFacadeBean!ejb.component.ProfileFacadeRemote");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named("UpdateFamilyDoctorMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class UpdateFamilyDoctorMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public UpdateFamilyDoctorMBean() throws Exception {
|
|
||||||
initializeAdminFacadeRemote();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private void initializeAdminFacadeRemote() throws Exception {
|
|
||||||
Properties props = System.getProperties();
|
|
||||||
Context ctx = new InitialContext(props);
|
|
||||||
remoteManager = (ProfileFacadeRemote) ctx.lookup("java:app/myHealth.jar/ProfileFacadeBean!ejb.component.ProfileFacadeRemote");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named("UpdatePatientMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class UpdatePatientMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public UpdatePatientMBean() throws Exception {
|
|
||||||
initializeAdminFacadeRemote();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private void initializeAdminFacadeRemote() throws Exception {
|
|
||||||
Properties props = System.getProperties();
|
|
||||||
Context ctx = new InitialContext(props);
|
|
||||||
remoteManager = (ProfileFacadeRemote) ctx.lookup("java:app/myHealth.jar/ProfileFacadeBean!ejb.component.ProfileFacadeRemote");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
package managedbean.profile;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.ejb.EJB;
|
|
||||||
import javax.enterprise.context.RequestScoped;
|
|
||||||
import javax.inject.Named;
|
|
||||||
import javax.naming.Context;
|
|
||||||
import javax.naming.InitialContext;
|
|
||||||
|
|
||||||
import ejb.profile.ProfileFacadeRemote;
|
|
||||||
import managedbean.common.ManagedBeanBase;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Named("UpdateSpecialistDoctorMBean")
|
|
||||||
@RequestScoped
|
|
||||||
public class UpdateSpecialistDoctorMBean extends ManagedBeanBase implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
@EJB
|
|
||||||
private ProfileFacadeRemote remoteManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public UpdateSpecialistDoctorMBean() throws Exception {
|
|
||||||
initializeAdminFacadeRemote();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inicializa la conexión con el EJB Remoto
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private void initializeAdminFacadeRemote() throws Exception {
|
|
||||||
Properties props = System.getProperties();
|
|
||||||
Context ctx = new InitialContext(props);
|
|
||||||
remoteManager = (ProfileFacadeRemote) ctx.lookup("java:app/myHealth.jar/ProfileFacadeBean!ejb.component.ProfileFacadeRemote");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user