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

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

prototype

  • Property mode set to 100644
File size: 2.7 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.entities.*;
7
8import java.util.Collection;
9import java.util.Date;
10import java.util.List;
11
12public interface TransportManager {
13
14 public void createTransport(String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, User owner, 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);
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
Note: See TracBrowser for help on using the repository browser.