import common.AccountInterface;
import dataAccess.DB4oManager;
import domain.Account;
+import domain.Administrator;
public class AccountManager extends UnicastRemoteObject implements AccountInterface {
}
}
- public boolean addAccount(Account ac) throws RemoteException {
+ public boolean addAccount(int index) throws RemoteException {
+ Account ac = Administrator.getInstance().getNewOwnerRequest().get(index);
if(this.dbMngr.addAccount(ac)){
try {
MailManager.getInstance().Send(ac.getOwner().getMailAccount(), "Entered into the system", "Congratulations");