1 package org.objectweb.petals.demo.icare.service;2 3 import java.util.Collection ;4 5 import org.objectweb.petals.demo.icare.model.Car;6 import org.objectweb.petals.demo.icare.model.Category;7 import org.objectweb.petals.demo.icare.model.Reservation;8 import org.objectweb.petals.demo.icare.model.dto.CarSearchDto;9 10 /**11 * The services of the application12 * 13 * @author Cristian Spiescu14 * @author Imad Zarzouri15 * @author Omar Senhaji Rhazi16 * @author Anass Ouazzani Chahdi17 * 18 * @since 15.01.200719 */20 public interface CarService {21 22 Collection <Car> getAllCars();23 24 Collection <Category> getAllCategories();25 26 Collection <Reservation> getAllReservations();27 28 Collection <Car> getAvailableCars(CarSearchDto carSearchDto);29 30 Category findCategoryById(long id);31 32 Reservation findReservationById(long id);33 34 Car findCarById(long id);35 36 void storeCar(Car car);37 38 void storeReservation(Reservation reservation);39 }40