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

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

images upload/download impl, other fixes

  • Property mode set to 100644
File size: 3.0 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, Long userId, 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 List<Reviews> getReviewsForTransport(long transportId);
38
39 public List<TransportListingDto> getTransportsAvailableByFilters (String from, String to, Date date, int numPassengers);
40
41 public List<TransportReservation> getTransportsReservationsByUserID(long userID);
42
43 public List<TransportAvailible> getTransportsAvailable();
44
45 public void createTransportAvailable(Transport transport, String departureLocation, String arrivalLocation, Date date, Integer noSeats, Date departureHour, Collection<TransportRoute> routes);
46
47 public void editTransportReservation(Transport transport, long reservationID, String departureLocation, String arrivalLocation, Date date, Integer noSeats, User user, Date departureHour);
48
49 public void editTransportAvailable(Transport transport, long availableID, String departureLocation, String arrivalLocation, Date date, Integer noSeats, Date departureHour);
50
51 public void deleteTransportReservation(long reservationID);
52
53 public void deleteTransportAvailable(long availableID);
54
55 public void createTransportRoute(TransportAvailible parentRoute, String from, String to, double price, Date departure, Date arrival, int freeSpace, int order);
56
57 public void deleteTransportRoute(long transportRouteId);
58
59 public void editTransportRoute(long transportRouteId, TransportAvailible parentRoute, String from, String to, double price, Date departure, Date arrival, int freeSpace, int order);
60
61
62 List<TransportReservationUserDto> findValidTransportReservationsByUser(Long userId);
63
64 List<TransportReservationUserDto> findPastTransportReservationsByUser(Long userId);
65}
66
Note: See TracBrowser for help on using the repository browser.