edea3140dd12815f93e594a7981e1133cab70558
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / __ApplicationFacadeInterface.java
1 package businessLogic;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.sql.Date;
6 import java.util.Vector;
7
8 import domain.Booking;
9 import domain.Offer;
10 import domain.Owner;
11 import domain.RuralHouse;
12 import exceptions.OfferCanNotBeBooked;
13
14
15 public interface __ApplicationFacadeInterface extends Remote {
16         
17
18         /**
19          * This method creates an offer with a house number, first day, last day and price
20          * 
21          * @param House
22          *            number, start day, last day and price
23          * @return None
24          */
25
26
27         Offer createOffer(RuralHouse ruralHouse, Date firstDay, Date lastDay,
28                         float price) throws RemoteException, Exception;
29
30         /**
31          * This method creates a book with a corresponding parameters
32          * 
33          * @param First
34          *            day, last day, house number and telephone
35          * @return a book
36          */
37         Booking createBooking(RuralHouse ruralHouse, Date firstDay, Date lastDay,
38                         String telephoneNumber) throws RemoteException,
39                         OfferCanNotBeBooked;
40
41         
42         /**
43          * This method retrieves the existing  owners 
44          * 
45          * @return a Set of owners
46          */
47         public Vector<Owner> getOwners() throws RemoteException,
48                         Exception;
49         
50         
51         
52         public void close() throws RemoteException;
53
54
55         
56 }