RRRRHHHH_Code
Diff Revisions
b09f34 ...
vs
3a0296 ...
for ruralHouses/src/businessLogic/BookingManager.java
|
@@ -9,11 +9,12 @@ |
9 |
9 |
|
|
10 |
10 |
|
import com.db4o.ObjectContainer; |
11 |
11 |
|
import com.db4o.ObjectSet; |
12 |
|
- |
import common.BookingInterface; |
13 |
12 |
|
|
|
13 |
+ |
import common.BookingInterface; |
14 |
14 |
|
import dataAccess.DB4oManager; |
15 |
15 |
|
import domain.Booking; |
16 |
16 |
|
import domain.Client; |
|
17 |
+ |
import domain.Offer; |
17 |
18 |
|
import domain.RuralHouse; |
18 |
19 |
|
import exceptions.OfferCanNotBeBooked; |
19 |
20 |
|
|
|
@@ -41,11 +42,6 @@ |
41 |
42 |
|
|
42 |
43 |
|
public void denyBooking(Booking b) throws RemoteException{ |
43 |
44 |
|
this.dbMngr.removeBooking(b); |
44 |
|
- |
try { |
45 |
|
- |
MailManager.getInstance().Send(b.getClient().getMailAccount(), "Your booking has not been accepted","We are sorry"); |
46 |
|
- |
} catch (MessagingException e) { |
47 |
|
- |
e.printStackTrace(); |
48 |
|
- |
} |
49 |
45 |
|
} |
50 |
46 |
|
|
51 |
47 |
|
|
|
@@ -76,4 +72,11 @@ |
76 |
72 |
|
client); |
77 |
73 |
|
} |
78 |
74 |
|
|
|
75 |
+ |
|
|
76 |
+ |
|
|
77 |
+ |
@Override |
|
78 |
+ |
public Vector<Booking> getOffersbookings(Offer o) throws RemoteException { |
|
79 |
+ |
return dbMngr.getOfBok(o); |
|
80 |
+ |
} |
|
81 |
+ |
|
79 |
82 |
|
} |