4 import java.util.Vector;
10 import domain.RuralHouse;
13 import exceptions.OfferCanNotBeBooked;
16 public interface ApplicationFacadeInterface extends Remote {
20 * This method creates an offer with a house number, first day, last day and price
23 * number, start day, last day and price
28 Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
29 float price) throws RemoteException, Exception;
32 * This method creates a book with a corresponding parameters
35 * day, last day, house number and telephone
38 Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay,
39 String telephoneNumber) throws RemoteException,
44 * This method retrieves the existing owners
46 * @return a Set of owners
48 public Vector<Owner> getOwners() throws RemoteException,
52 * This method retrieves the existing rural houses
54 * @return a Set of rural houses
56 public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
59 public void close() throws RemoteException;