RRRRHHHH_Code
Diff Revisions
799949 ...
vs
578bec ...
for ruralHouses/src/businessLogic/AccountManager.java
|
@@ -8,6 +8,7 @@ |
8 |
8 |
|
import common.AccountInterface; |
9 |
9 |
|
import dataAccess.DB4oManager; |
10 |
10 |
|
import domain.Account; |
|
11 |
+ |
import domain.Administrator; |
11 |
12 |
|
|
12 |
13 |
|
public class AccountManager extends UnicastRemoteObject implements AccountInterface { |
13 |
14 |
|
|
|
@@ -27,7 +28,8 @@ |
27 |
28 |
|
} |
28 |
29 |
|
} |
29 |
30 |
|
|
30 |
|
- |
public boolean addAccount(Account ac) throws RemoteException { |
|
31 |
+ |
public boolean addAccount(int index) throws RemoteException { |
|
32 |
+ |
Account ac = Administrator.getInstance().getNewOwnerRequest().get(index); |
31 |
33 |
|
if(this.dbMngr.addAccount(ac)){ |
32 |
34 |
|
try { |
33 |
35 |
|
MailManager.getInstance().Send(ac.getOwner().getMailAccount(), "Entered into the system", "Congratulations"); |