Interface CarSearchService
- All Known Implementing Classes:
CarSearchServiceImpl
public interface CarSearchService
Service useful for research operations.
-
Method Summary
Modifier and TypeMethodDescriptionfindCars
(UserContext ctx) Load the list of cars saved by a user.loadCar
(Integer id, UserContext ctx) Loads the details of a car from its unique identifier.
-
Method Details
-
findCars
Load the list of cars saved by a user.- Parameters:
ctx
- User context- Returns:
- List of cars
- Throws:
DatabaseException
-
loadCar
Loads the details of a car from its unique identifier.- Parameters:
id
- Car's identifierctx
- Context information for the actual user- Returns:
- Car details
- Throws:
DatabaseException
ApplicationException
- If the user is not the owner of the car. This operation is only allowed to the car's owner
-