X-Git-Url: https://xp-dev.com/git/RRRRHHHH_Code/blobdiff_plain/d23286250fb8e8263d35aeef5e6d1683be5ac968..5538790d8fc54f60de9b5c989eae82b446374aca:/ruralHouses/src/businessLogic/ApplicationFacadeInterface.java diff --git a/ruralHouses/src/businessLogic/ApplicationFacadeInterface.java b/ruralHouses/src/businessLogic/ApplicationFacadeInterface.java index 8863af3..ef3cad2 100644 --- a/ruralHouses/src/businessLogic/ApplicationFacadeInterface.java +++ b/ruralHouses/src/businessLogic/ApplicationFacadeInterface.java @@ -1,7 +1,6 @@ package businessLogic; import java.rmi.*; - import java.util.Vector; import java.util.Date; @@ -9,23 +8,13 @@ import domain.Booking; import domain.Offer; import domain.Owner; import domain.RuralHouse; - -import exceptions.OfferCanNotBeBooked; +import exceptions.OfferCanNotBeBooked; public interface ApplicationFacadeInterface extends Remote { /** - * This method obtains an owner's rural houses - * - * @param owner object - * - * @return a vector of Rural Houses - */ - Vector getRuralHouses(Owner owner) - throws RemoteException; - - /** - * This method creates an offer with a house number, first day, last day and price + * This method creates an offer with a house number, first day, last day and + * price * * @param House * number, start day, last day and price @@ -46,26 +35,38 @@ public interface ApplicationFacadeInterface extends Remote { String telephoneNumber) throws RemoteException, OfferCanNotBeBooked; /** - * This method obtains available offers for a concrete house in a certain period + * This method obtains available offers for a concrete house in a certain + * period * - * @param houseNumber, the house number where the offers must be obtained - * @param firstDay, first day in a period range - * @param lastDay, last day in a period range - * @return a vector of offers(Offer class) available in this period + * @param houseNumber + * , the house number where the offers must be obtained + * @param firstDay + * , first day in a period range + * @param lastDay + * , last day in a period range + * @return a vector of offers(Offer class) available in this period */ - Vector getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay) + Vector getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay) throws RemoteException, Exception; - + /** - * This method finds existing owners + * This method finds existing owners * */ - public Vector getOwners() throws RemoteException, + public Vector getOwners() throws RemoteException, Exception; + + /** + * This method obtains an owner's rural houses + * + * @param owner + * object + * + * @return a vector of Rural Houses + */ + public Vector getRuralHouses(Owner owner) + throws RemoteException; + + public Vector getAllRuralHouses() throws RemoteException, Exception; - - - - public Vector getAllRuralHouses()throws RemoteException, - Exception; - + } \ No newline at end of file