4 import java.util.Vector;
10 import domain.RuralHouse;
11 import exceptions.OfferCanNotBeBooked;
13 public interface ApplicationFacadeInterface extends Remote {
16 * This method creates an offer with a house number, first day, last day and
20 * number, start day, last day and price
24 Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
25 float price) throws RemoteException, Exception;
28 * This method creates a book with a corresponding parameters
31 * day, last day, house number and telephone
34 Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay,
35 String telephoneNumber) throws RemoteException, OfferCanNotBeBooked;
38 * This method obtains available offers for a concrete house in a certain
42 * , the house number where the offers must be obtained
44 * , first day in a period range
46 * , last day in a period range
47 * @return a vector of offers(Offer class) available in this period
49 Vector<Offer> getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay)
50 throws RemoteException, Exception;
53 * This method finds existing owners
56 public Vector<Owner> getOwners() throws RemoteException, Exception;
59 * This method obtains an owner's rural houses
64 * @return a vector of Rural Houses
66 public Vector<RuralHouse> getRuralHouses(Owner owner)
67 throws RemoteException;
69 public Vector<RuralHouse> getAllRuralHouses() throws RemoteException,