import java.util.Vector;
import common.AdminInterface;
-
import domain.Account;
import domain.Administrator;
+import domain.Owner;
import domain.RuralHouse;
public class AdminManager extends UnicastRemoteObject implements AdminInterface {
}
-
- public boolean addAccount(Account acc) throws RemoteException {
+ public boolean addAccountRequest(String usr,
+ String pss, Owner ow) throws RemoteException {
+
+ Account acc = new Account (usr, pss, ow);
if (this.getOwnerAdditionRequests().contains(acc)) {
return false;
}
+
// public boolean removeAccount(Account acc) {
// if (this.getDeletionRequests().contains(acc))
// return false;