How saifmejri/autoloc works
AutoLoc is a Spring application for managing vehicle rentals. The main user workflow is to call a REST endpoint, which delegates to a service for rental operations such as reservations or vehicle management, then persists domain data through repositories. The tree also shows distinct contract, payment, maintenance, fleet, staff, and pricing/notification capabilities. Edges backed by excerpts or the SOURCE INDEX are cited; dashed edges indicate plausible connections not verified in the sampled source. The README provides no further product detail.
Main entry points: ReservationServiceImpl.java Reservation service · repository JPA repositories · VehiculeServiceImpl.java Vehicle service · EmployeServiceImpl.java Employee service
Components 23
REST API
- Reservation endpoints
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/ReservationController.java - Vehicle endpoints
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/VehiculeController.java - Employee endpoints
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/EmployeController.java - Other endpoints
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller - Exception handling
tp-autoloc/src/main/java/tn/esprit/autoloc/exception/GlobalExceptionHandler.java
Rental Operations
- Reservation service
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/ReservationServiceImpl.java - Contract service
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/ContratServiceImpl.java - Payment service
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/PaiementServiceImpl.java - Other services
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl
Fleet Administration
- Maintenance service
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/MaintenanceServiceImpl.java - Vehicle service
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/VehiculeServiceImpl.java - Employee service
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/EmployeServiceImpl.java
Persistence and Domain
- Reservation model
tp-autoloc/src/main/java/tn/esprit/autoloc/domain/Reservation.java - Client model
tp-autoloc/src/main/java/tn/esprit/autoloc/domain/Client.java - Vehicle model
tp-autoloc/src/main/java/tn/esprit/autoloc/domain/Vehicule.java - Fleet and staff models
tp-autoloc/src/main/java/tn/esprit/autoloc/domain - JPA repositories
tp-autoloc/src/main/java/tn/esprit/autoloc/repository - Relational database
Pricing and Notifications
- Pricing strategy factory
tp-autoloc/src/main/java/tn/esprit/autoloc/service/Factory/TarificationStrategyFactory.java - Pricing strategies
tp-autoloc/src/main/java/tn/esprit/autoloc/service/strategy - Reservation observers
tp-autoloc/src/main/java/tn/esprit/autoloc/service/observer
Other components
- API client
- Email / SMS services
Connections 22
- API client → Reservation endpoints: calls
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/ReservationController.java - API client → Vehicle endpoints: calls
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/VehiculeController.java - API client → Employee endpoints: calls
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/EmployeController.java - Reservation endpoints → Reservation service: delegates to
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/ReservationController.java - Vehicle endpoints → Vehicle service: delegates to
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/VehiculeController.java - Employee endpoints → Employee service: delegates to
tp-autoloc/src/main/java/tn/esprit/autoloc/web/controller/EmployeController.java - Other endpoints → Other services: delegates to
- Reservation service → JPA repositories: reads and writes
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/ReservationServiceImpl.java - Maintenance service → JPA repositories: reads and writes
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/MaintenanceServiceImpl.java - Vehicle service → JPA repositories: reads and writes
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/VehiculeServiceImpl.java - Employee service → JPA repositories: reads and writes
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/EmployeServiceImpl.java - JPA repositories → Relational database: persists
- Reservation service → Reservation model: manages
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/ReservationServiceImpl.java - Reservation model → Client model: references
tp-autoloc/src/main/java/tn/esprit/autoloc/domain/Reservation.java - Reservation model → Vehicle model: references
tp-autoloc/src/main/java/tn/esprit/autoloc/domain/Reservation.java - Vehicle service → Fleet and staff models: assigns agency
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/VehiculeServiceImpl.java - Employee service → Fleet and staff models: assigns agency
tp-autoloc/src/main/java/tn/esprit/autoloc/service/impl/EmployeServiceImpl.java - Reservation service → Pricing strategy factory: obtains pricing
- Pricing strategy factory → Pricing strategies: selects strategy
tp-autoloc/src/main/java/tn/esprit/autoloc/service/Factory/TarificationStrategyFactory.java - Reservation service → Reservation observers: notifies
- Reservation observers → Email / SMS services: sends notices
- Exception handling → Reservation service: handles errors