3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
6 import java.util.Vector;
11 import domain.RuralHouse;
12 import exceptions.OfferCanNotBeBooked;
15 public interface __ApplicationFacadeInterface extends Remote {
19 * This method creates an offer with a house number, first day, last day and price
22 * number, start day, last day and price
27 Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
28 float price) throws RemoteException, Exception;
31 * This method creates a book with a corresponding parameters
34 * day, last day, house number and telephone
37 Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay,
38 String telephoneNumber) throws RemoteException,
43 * This method retrieves the existing owners
45 * @return a Set of owners
47 public Vector<Owner> getOwners() throws RemoteException,
52 public void close() throws RemoteException;