1 | package com.tourMate.services;
|
---|
2 |
|
---|
3 | import com.tourMate.dto.RouteListingDto;
|
---|
4 | import com.tourMate.dto.TransportDto;
|
---|
5 | import com.tourMate.dto.TransportListingDto;
|
---|
6 | import com.tourMate.entities.*;
|
---|
7 |
|
---|
8 | import java.util.Collection;
|
---|
9 | import java.util.Date;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | public interface TransportManager {
|
---|
13 |
|
---|
14 | public void createTransport(String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, Long userId, String carPlate);
|
---|
15 |
|
---|
16 | public void deleteTransport(long transportId);
|
---|
17 |
|
---|
18 | public List<Transport> getTransports();
|
---|
19 | public List<TransportDto> getTransportsByUser(long userId);
|
---|
20 | public List<RouteListingDto> getRoutesForTransport(long transportId);
|
---|
21 |
|
---|
22 | public TransportDto findTransportById (long transportId);
|
---|
23 |
|
---|
24 | public void editTransport(long transportID, String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, User owner, String carPlate);
|
---|
25 |
|
---|
26 | public void createTransportReservation(Transport transport, String departureLocation, String arrivalLocation, Date date, Integer noSeats, User user, Date departureHour);
|
---|
27 |
|
---|
28 | public TransportReservation findTransportReservationByID(long reservationID);
|
---|
29 |
|
---|
30 | public List<TransportReservation> getTransportReservations();
|
---|
31 |
|
---|
32 | public TransportAvailible findTransportAvailableByID (long reservationID);
|
---|
33 | public Transport getTransportById(long transportId);
|
---|
34 |
|
---|
35 | public List<TransportListingDto> getTransportsAvailableByFilters (String from, String to, Date date, int numPassengers);
|
---|
36 |
|
---|
37 | public List<TransportReservation> getTransportsReservationsByUserID(long userID);
|
---|
38 |
|
---|
39 | public List<TransportAvailible> getTransportsAvailable();
|
---|
40 |
|
---|
41 | public void createTransportAvailable(Transport transport, String departureLocation, String arrivalLocation, Date date, Integer noSeats, Date departureHour, Collection<TransportRoute> routes);
|
---|
42 |
|
---|
43 | public void editTransportReservation(Transport transport, long reservationID, String departureLocation, String arrivalLocation, Date date, Integer noSeats, User user, Date departureHour);
|
---|
44 |
|
---|
45 | public void editTransportAvailable(Transport transport, long availableID, String departureLocation, String arrivalLocation, Date date, Integer noSeats, Date departureHour);
|
---|
46 |
|
---|
47 | public void deleteTransportReservation(long reservationID);
|
---|
48 |
|
---|
49 | public void deleteTransportAvailable(long availableID);
|
---|
50 |
|
---|
51 | public void createTransportRoute(TransportAvailible parentRoute, String from, String to, double price, Date departure, Date arrival, int freeSpace, int order);
|
---|
52 |
|
---|
53 | public void deleteTransportRoute(long transportRouteId);
|
---|
54 |
|
---|
55 | public void editTransportRoute(long transportRouteId, TransportAvailible parentRoute, String from, String to, double price, Date departure, Date arrival, int freeSpace, int order);
|
---|
56 |
|
---|
57 |
|
---|
58 | }
|
---|
59 |
|
---|