package businessLogic; import java.rmi.*; import java.util.Vector; import java.sql.Date; import domain.Booking; import domain.Offer; import domain.Owner; import domain.RuralHouse; import exceptions.OfferCanNotBeBooked; public interface ApplicationFacadeInterface extends Remote { /** * This method creates an offer with a house number, first day, last day and price * * @param House * number, start day, last day and price * @return None */ Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay, float price) throws RemoteException, Exception; /** * This method creates a book with a corresponding parameters * * @param First * day, last day, house number and telephone * @return a book */ Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay, String telephoneNumber) throws RemoteException, OfferCanNotBeBooked; /** * This method retrieves the existing owners * * @return a Set of owners */ public Vector getOwners() throws RemoteException, Exception; /** * This method retrieves the existing rural houses * * @return a Set of rural houses */ public Vector getAllRuralHouses()throws RemoteException, Exception; public void close() throws RemoteException; }