return null;
}
-
+ public Offer modifyOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
+ float price, Offer offer) throws OverlappingOfferExists, BadDates, RemoteException, Exception {
+ if (firstDay.compareTo(lastDay)>=0) throw new BadDates();
+ offer.setFirstDay(firstDay);
+ offer.setLastDay(lastDay);
+ offer.setPrice(price);
+
+ return dbMngr.modifyOffer(offer);
+
+ }
+ public void deleteOffer(RuralHouse rh, Offer o) throws RemoteException, Exception{
+ rh.offers.removeElement(o);
+ dbMngr.deleteOffer(rh, o);
+ }
+
}