DataHandler angepasst
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / datahandler / DataHandler.java
index 76cfd60..ded3ff3 100644 (file)
@@ -63,7 +63,7 @@ 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);
 
@@ -72,11 +72,19 @@ public interface DataHandler {
         * and returns the Reservation object or null if not found
         * @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>Reservation</code>reservation objects <code>null</code>if
+        *         no reservation found with this 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>Reservation</code>reservation object <code>null</code>if no
+        *         overlapping reservation found with this range
+        */
        public List<Reservation> overlaps(DateRange range);
 
        /**