House Features added and logic for adding options to the owner
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / ApplicationFacadeInterface.java
index 8863af3..ef3cad2 100644 (file)
@@ -1,7 +1,6 @@
 package businessLogic;
 
 import java.rmi.*;
 package businessLogic;
 
 import java.rmi.*;
-
 import java.util.Vector;
 import java.util.Date;
 
 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 domain.Offer;
 import domain.Owner;
 import domain.RuralHouse;
-
-import exceptions.OfferCanNotBeBooked; 
+import exceptions.OfferCanNotBeBooked;
 
 public interface ApplicationFacadeInterface extends Remote {
 
        /**
 
 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;
-
-       /**
-        * 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
         * 
         * @param House
         *            number, start day, last day and price
@@ -46,26 +35,38 @@ public interface ApplicationFacadeInterface extends Remote {
                        String telephoneNumber) throws RemoteException, OfferCanNotBeBooked;
 
        /**
                        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<Offer> getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay) 
+       Vector<Offer> getOffers(RuralHouse houseNumber, Date firstDay, Date lastDay)
                        throws RemoteException, Exception;
                        throws RemoteException, Exception;
-       
+
        /**
        /**
-        * This method finds existing  owners 
+        * This method finds existing owners
         * 
         */
         * 
         */
-       public Vector<Owner> getOwners() throws RemoteException,
+       public Vector<Owner> getOwners() throws RemoteException, Exception;
+
+       /**
+        * This method obtains an owner's rural houses
+        * 
+        * @param owner
+        *            object
+        * 
+        * @return a vector of Rural Houses
+        */
+       public Vector<RuralHouse> getRuralHouses(Owner owner)
+                       throws RemoteException;
+
+       public Vector<RuralHouse> getAllRuralHouses() throws RemoteException,
                        Exception;
                        Exception;
-       
-       
-       
-       public Vector<RuralHouse> getAllRuralHouses()throws RemoteException,
-       Exception;
-       
+
 }
\ No newline at end of file
 }
\ No newline at end of file