edit/deleteReservation added
authorMichael <Michael@Michael-LT.fritz.box>
Mon, 23 Nov 2015 21:24:41 +0000 (22:24 +0100)
committerMichael <Michael@Michael-LT.fritz.box>
Mon, 23 Nov 2015 21:24:41 +0000 (22:24 +0100)
getAllResources added

Need to be implemented in DataHandlerForTests
Java-doc needed in Interface

src/main/java/ch/bfh/ti/srs/datahandler/DataHandler.java
src/main/java/ch/bfh/ti/srs/datahandler/DataHandlerForTests.java
src/main/java/ch/bfh/ti/srs/noTest/DataHandlerForExcel.java

index 79fa790..fbbe482 100644 (file)
@@ -125,4 +125,11 @@ public interface DataHandler {
         *                      <code>false</code> try to save the changes
         */
        public void refresh(boolean discardChanges) throws Exception;
+
+
+       public boolean editReservation(Reservation reservation);
+
+       public boolean deleteReservation(Reservation reservation);
+
+       public List<Resource> getAllResources();
 }
index c23c5eb..55ce1bb 100644 (file)
@@ -187,4 +187,22 @@ public class DataHandlerForTests implements DataHandler {
                if(discardChanges == true) throw new Exception("No implementation on DataHandlerForTests possible");
        }
 
+       @Override
+       public boolean editReservation(Reservation reservation) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean deleteReservation(Reservation reservation) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public List<Resource> getAllResources() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
 }
index b25377b..5f20e7b 100644 (file)
@@ -182,4 +182,22 @@ public class DataHandlerForExcel implements DataHandler {
                // TODO Auto-generated method stub
                
        }
+
+       @Override
+       public boolean editReservation(Reservation reservation) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean deleteReservation(Reservation reservation) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public List<Resource> getAllResources() {
+               // TODO Auto-generated method stub
+               return null;
+       }
 }