3 import java
.rmi
.Remote
;
4 import java
.rmi
.RemoteException
;
5 import java
.util
.Vector
;
7 import drno
.exception
.ConsistanceException
;
8 import drno
.exception
.ObjectLockException
;
9 import drno
.exception
.UnkErrException
;
10 import drno
.interfaces
.IPatient
;
11 import drno
.interfaces
.IPatientEditable
;
12 import drno
.server
.event
.Signal
;
15 public interface PatientHandler
extends Remote
{
16 public IPatientEditable
createNewPatient() throws RemoteException
;
18 public void deletePatient(IPatientEditable e
) throws ObjectLockException
,
22 public IPatientEditable
editPatient(IPatient patient
) throws ObjectLockException
,
26 public IPatient
freeLockedPatient(IPatientEditable patient
) throws RemoteException
,
30 public Vector
getAllPatients() throws RemoteException
, UnkErrException
;
32 public IPatient
savePatient(IPatientEditable patient
) throws ObjectLockException
,
37 public Vector
searchPatientsByName(String name
) throws ObjectLockException
,
42 public Vector
searchPatientsByCPR(String cpr
) throws RemoteException
,
45 public Signal
getOnUpdate() throws RemoteException
;