RRRRHHHH_Code
Diff Revisions
4f8bcc ...
vs
799949 ...
for ruralHouses/src/businessLogic/AdminManager.java
|
@@ -5,9 +5,9 @@ |
5 |
5 |
|
import java.util.Vector; |
6 |
6 |
|
|
7 |
7 |
|
import common.AdminInterface; |
8 |
|
- |
|
9 |
8 |
|
import domain.Account; |
10 |
9 |
|
import domain.Administrator; |
|
10 |
+ |
import domain.Owner; |
11 |
11 |
|
import domain.RuralHouse; |
12 |
12 |
|
|
13 |
13 |
|
public class AdminManager extends UnicastRemoteObject implements AdminInterface { |
|
@@ -66,10 +66,12 @@ |
66 |
66 |
|
|
67 |
67 |
|
} |
68 |
68 |
|
|
69 |
|
- |
|
70 |
69 |
|
|
71 |
70 |
|
|
72 |
|
- |
public boolean addAccount(Account acc) throws RemoteException { |
|
71 |
+ |
public boolean addAccountRequest(String usr, |
|
72 |
+ |
String pss, Owner ow) throws RemoteException { |
|
73 |
+ |
|
|
74 |
+ |
Account acc = new Account (usr, pss, ow); |
73 |
75 |
|
if (this.getOwnerAdditionRequests().contains(acc)) { |
74 |
76 |
|
return false; |
75 |
77 |
|
} |
|
@@ -84,6 +86,7 @@ |
84 |
86 |
|
|
85 |
87 |
|
|
86 |
88 |
|
|
|
89 |
+ |
|
87 |
90 |
|
// public boolean removeAccount(Account acc) { |
88 |
91 |
|
// if (this.getDeletionRequests().contains(acc)) |
89 |
92 |
|
// return false; |