Merge branch 'master' of ssh://xp-dev.com/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / common / AdminInterface.java
1 package common;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.Vector;
6
7 import domain.Account;
8 import domain.Owner;
9 import domain.RuralHouse;
10
11 public interface AdminInterface extends Remote {
12
13         
14         public Vector<RuralHouse> getAdditionRequests() throws RemoteException;
15
16         public Vector<RuralHouse> getDeletionRequests() throws RemoteException ;
17
18         public Vector<Account> getOwnerAdditionRequests() throws RemoteException ;
19         
20         public Vector<Owner> getAllOwners()throws RemoteException ;
21         
22         public void removeHouseAdditionRequests(RuralHouse house) throws RemoteException ;
23
24         public void removeHouseDeletionRequests(RuralHouse house) throws RemoteException ;
25         
26         public void removeOwnerAdditionRequests(int index) throws RemoteException ;
27         
28         public boolean addAdditionRequest(RuralHouse rh) throws RemoteException ;
29
30         public boolean addDeletionRequest(RuralHouse rh) throws RemoteException ;
31         
32         public boolean addAccountRequest(String usr,
33                         String pss, Owner ow) throws RemoteException;
34         
35         public void saveInstance() throws RemoteException;
36         
37         
38 }