Class CarSearchServiceImpl
java.lang.Object
net.andresbustamante.yafoot.core.services.impl.CarSearchServiceImpl
- All Implemented Interfaces:
CarSearchService
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
CarSearchServiceImpl
-
-
Method Details
-
findCars
Description copied from interface:CarSearchServiceLoad the list of cars saved by a user.- Specified by:
findCarsin interfaceCarSearchService- Parameters:
ctx- User context- Returns:
- List of cars
-
loadCar
@Transactional(readOnly=true) public Car loadCar(Integer id, UserContext ctx) throws ApplicationException Description copied from interface:CarSearchServiceLoads the details of a car from its unique identifier.- Specified by:
loadCarin interfaceCarSearchService- Parameters:
id- Car's identifierctx- Context information for the actual user- Returns:
- Car details
- Throws:
ApplicationException- If the user is not the owner of the car. This operation is only allowed to the car's owner
-