source: src/main/java/com/tourMate/services/TransportManager.java@ 5528b99

Last change on this file since 5528b99 was 5528b99, checked in by darsov2 <62809499+darsov2@…>, 12 months ago

revert

  • Property mode set to 100644
File size: 3.3 KB
Line 
1package com.tourMate.services;
2
3import com.tourMate.dto.RouteListingDto;
4import com.tourMate.dto.TransportDto;
5import com.tourMate.dto.TransportListingDto;
6import com.tourMate.dto.TransportReservationUserDto;
7import com.tourMate.entities.*;
8
9import java.util.Collection;
10import java.util.Date;
11import java.util.List;
12
13public interface TransportManager {
14
15 public void createTransport(String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, User owner, String carPlate);
16
17 public void deleteTransport(long transportId);
18
19 public List<Transport> getTransports();
20 public List<TransportDto> getTransportsByUser(long userId);
21 public List<RouteListingDto> getRoutesForTransport(long transportId);
22
23 public TransportDto findTransportById (long transportId);
24
25 Transport getTransportById(Long transportId);
26
27 public void editTransport(long transportID, String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, User owner, String carPlate);
28
29 public void createTransportReservation(Long transportRouteId, Long userId, int noSeats);
30 public TransportReservation findTransportReservationByID(long reservationID);
31
32 public List<TransportReservation> getTransportReservations();
33
34 public TransportAvailible findTransportAvailableByID (long reservationID);
35 public Transport getTransportById(long transportId);
36
37<<<<<<< HEAD
38 List<Reviews> getReviewsForTransport(long transportId);
39
40 public List<TransportListingDto> getTransportsAvailableByFilters (String from, String to, Date date, int numPassengers);
41=======
42 public List<TransportListingDto> getTransportsAvailableByFilters (String from, String to, Date date);
43>>>>>>> parent of ac19a0c (authContext impl, admin panel impl, search bar fixes, reservations listings impl)
44
45 public List<TransportReservation> getTransportsReservationsByUserID(long userID);
46
47 public List<TransportAvailible> getTransportsAvailable();
48
49 public void createTransportAvailable(Transport transport, String departureLocation, String arrivalLocation, Date date, Integer noSeats, Date departureHour, Collection<TransportRoute> routes);
50
51 public void editTransportReservation(Transport transport, long reservationID, String departureLocation, String arrivalLocation, Date date, Integer noSeats, User user, Date departureHour);
52
53 public void editTransportAvailable(Transport transport, long availableID, String departureLocation, String arrivalLocation, Date date, Integer noSeats, Date departureHour);
54
55 public void deleteTransportReservation(long reservationID);
56
57 public void deleteTransportAvailable(long availableID);
58
59 public void createTransportRoute(TransportAvailible parentRoute, String from, String to, double price, Date departure, Date arrival, int freeSpace, int order);
60
61 public void deleteTransportRoute(long transportRouteId);
62
63 public void editTransportRoute(long transportRouteId, TransportAvailible parentRoute, String from, String to, double price, Date departure, Date arrival, int freeSpace, int order);
64
65
66 List<TransportReservationUserDto> findValidTransportReservationsByUser(Long userId);
67
68 List<TransportReservationUserDto> findPastTransportReservationsByUser(Long userId);
69}
70
Note: See TracBrowser for help on using the repository browser.