Cambio de enumerado y limpieza de comentarios.
This commit is contained in:
@@ -53,11 +53,6 @@ public class RegisterUserMBean extends ManagedBeanBase implements Serializable {
|
||||
private Collection<MedicalSpecialtyTO> medicalSpecialitiesList;
|
||||
private Collection<PrimaryHealthCareCenterTO> primaryHealthCareCentersList;
|
||||
|
||||
/**
|
||||
* Constructor. Inicializa la conexión con el EJB Remoto
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public RegisterUserMBean() {
|
||||
|
||||
}
|
||||
@@ -96,7 +91,7 @@ public class RegisterUserMBean extends ManagedBeanBase implements Serializable {
|
||||
this.manageException(e);
|
||||
}
|
||||
break;
|
||||
case ADMINISTRADOR:
|
||||
case ADMINISTRATOR:
|
||||
case PATIENT:
|
||||
PrimeFaces.current().ajax().addCallbackParam("pats", true);
|
||||
break;
|
||||
@@ -106,6 +101,7 @@ public class RegisterUserMBean extends ManagedBeanBase implements Serializable {
|
||||
public Collection<MedicalSpecialtyTO> getMedicalSpecialtiesList() {
|
||||
return medicalSpecialitiesList;
|
||||
}
|
||||
|
||||
public Collection<PrimaryHealthCareCenterTO> getPhcList() {
|
||||
return primaryHealthCareCentersList;
|
||||
}
|
||||
@@ -208,7 +204,7 @@ public class RegisterUserMBean extends ManagedBeanBase implements Serializable {
|
||||
this.id = sd.getId();
|
||||
|
||||
break;
|
||||
case ADMINISTRADOR:
|
||||
case ADMINISTRATOR:
|
||||
throw new NotSupportedException("No se soporta el registro directo de administradores.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user