unification with the actual initial project. Some things are new now, but there has...
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / ApplicationFacadeInterface.java
index ef3cad2..5cf74f5 100644 (file)
@@ -2,25 +2,29 @@ package businessLogic;
 
 import java.rmi.*;
 import java.util.Vector;
-import java.util.Date;
+import java.sql.Date;
 
 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 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
         * @return None
         */
 
+
        Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
                        float price) throws RemoteException, Exception;
 
@@ -32,41 +36,28 @@ public interface ApplicationFacadeInterface extends Remote {
         * @return a book
         */
        Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay,
-                       String telephoneNumber) throws RemoteException, OfferCanNotBeBooked;
-
-       /**
-        * 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
-        */
-       Vector<Offer> getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay)
-                       throws RemoteException, Exception;
+                       String telephoneNumber) throws RemoteException,
+                       OfferCanNotBeBooked;
 
+       
        /**
-        * This method finds existing owners
+        * This method retrieves the existing  owners 
         * 
+        * @return a Set of owners
         */
-       public Vector<Owner> getOwners() throws RemoteException, Exception;
-
+       public Vector<Owner> getOwners() throws RemoteException,
+                       Exception;
+       
        /**
-        * This method obtains an owner's rural houses
-        * 
-        * @param owner
-        *            object
+        * This method retrieves the existing  rural houses 
         * 
-        * @return a vector of Rural Houses
+        * @return a Set of rural houses
         */
-       public Vector<RuralHouse> getRuralHouses(Owner owner)
-                       throws RemoteException;
+       public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
+       Exception;
+       
+       public void close() throws RemoteException;
 
-       public Vector<RuralHouse> getAllRuralHouses() throws RemoteException,
-                       Exception;
 
+       
 }
\ No newline at end of file