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