Merge /pub/main
[educational.data.git] / Dr.NO / src / drno / server / PatientHandler.java
blob920f7e3294bcad823fc73f92df8f6d66c65fa661
1 package drno.server;
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,
19 UnkErrException,
20 RemoteException;
22 public IPatientEditable editPatient(IPatient patient) throws ObjectLockException,
23 UnkErrException,
24 RemoteException;
26 public IPatient freeLockedPatient(IPatientEditable patient) throws RemoteException,
27 UnkErrException,
28 ObjectLockException;
30 public Vector getAllPatients() throws RemoteException, UnkErrException;
32 public IPatient savePatient(IPatientEditable patient) throws ObjectLockException,
33 ConsistanceException,
34 UnkErrException,
35 RemoteException;
37 public Vector searchPatientsByName(String name) throws ObjectLockException,
38 ConsistanceException,
39 UnkErrException,
40 RemoteException;
42 public Vector searchPatientsByCPR(String cpr) throws RemoteException,
43 UnkErrException;
45 public Signal getOnUpdate() throws RemoteException;