5 import java.util.Vector;
11 import domain.RuralHouse;
13 import exceptions.OfferCanNotBeBooked;
15 public interface ApplicationFacadeInterface extends Remote {
18 * This method obtains an owner's rural houses
22 * @return a vector of Rural Houses
24 Vector<RuralHouse> getRuralHouses(Owner owner)
25 throws RemoteException;
28 * This method creates an offer with a house number, first day, last day and price
31 * number, start day, last day and price
35 Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
36 float price) throws RemoteException, Exception;
39 * This method creates a book with a corresponding parameters
42 * day, last day, house number and telephone
45 Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay,
46 String telephoneNumber) throws RemoteException, OfferCanNotBeBooked;
49 * This method obtains available offers for a concrete house in a certain period
51 * @param houseNumber, the house number where the offers must be obtained
52 * @param firstDay, first day in a period range
53 * @param lastDay, last day in a period range
54 * @return a vector of offers(Offer class) available in this period
56 Vector<Offer> getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay)
57 throws RemoteException, Exception;
60 * This method finds existing owners
63 public Vector<Owner> getOwners() throws RemoteException,
68 public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
71 public void close() throws RemoteException;