Merge branch 'master' of ssh://xp-dev.com/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / common / AdminInterface.java
index eb5e888..7e3289f 100644 (file)
@@ -5,6 +5,7 @@ import java.rmi.RemoteException;
 import java.util.Vector;
 
 import domain.Account;
+import domain.Owner;
 import domain.RuralHouse;
 
 public interface AdminInterface extends Remote {
@@ -16,17 +17,20 @@ public interface AdminInterface extends Remote {
 
        public Vector<Account> getOwnerAdditionRequests() throws RemoteException ;
        
+       public Vector<Owner> getAllOwners()throws RemoteException ;
+       
        public void removeHouseAdditionRequests(RuralHouse house) throws RemoteException ;
 
        public void removeHouseDeletionRequests(RuralHouse house) throws RemoteException ;
        
-       public void removeOwnerAdditionRequests(Account acc) throws RemoteException ;
+       public void removeOwnerAdditionRequests(int index) throws RemoteException ;
        
        public boolean addAdditionRequest(RuralHouse rh) throws RemoteException ;
 
        public boolean addDeletionRequest(RuralHouse rh) throws RemoteException ;
        
-       public boolean addAccount(Account acc) throws RemoteException ;
+       public boolean addAccountRequest(String usr,
+                       String pss, Owner ow) throws RemoteException;
        
        public void saveInstance() throws RemoteException;