DataHandler angepasst
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / datahandler / DataHandler.java
index 76cfd60..6fc44bd 100644 (file)
@@ -63,23 +63,44 @@ public interface DataHandler {
         * @param id
         *            id of the Reservation you are looking for
         * @return <code>Reservation</code>reservation object <code>null</code>if no
-        *         reservation found with this resource and this daterange
+        *         reservation found with this ID
         */
        public Reservation findReservation(UUID id);
 
        /**
-        * Finds a group of reservations by their GroupID param in the Datacontext
+        * Finds a group of reservations by their GroupId param in the Datacontext
         * and returns the Reservation object or null if not found
-        * @param groupID
+        * @param groupId
         *            id of the Group Reservations you are looking for
-        * @return <code>Reservation</code>reservation object <code>null</code>if no
-        *         reservation found with this resource and this daterange
+        * @return <code>ArrayList</code> with the reservation objects
         */
-       public List<Reservation> findGroupReservations(UUID groupID);
+       public List<Reservation> findGroupReservations(UUID groupId);
 
+       /**
+        * Finds reservations that overlaps with the given DateRange and returns the
+        * Reservation objects or null if not found
+        * @param range
+        *            the range you want to get overlapping reservations for
+        * @return <code>ArrayList</code> with the reservation objects
+        */
        public List<Reservation> overlaps(DateRange range);
 
        /**
+        * Finds all reservations for the specific User
+        * @param user
+        *            the user you want to get all the reservations for
+        * @return <code>ArrayList</code> with the reservation objects
+        */
+       public List<Reservation> userReservations(User user);
+
+       /**
+        * Finds all reservations
+        * @return <code>ArrayList</code> with the all reservation
+        *         objects
+        */
+       public List<Reservation> findAllReservations();
+
+       /**
         * Adds a reservation to the Datacontext from a given Reservation object
         * @param reservation
         *            Reservation object