Class CarsController
java.lang.Object
net.andresbustamante.yafoot.commons.web.controllers.AbstractController
net.andresbustamante.yafoot.core.web.controllers.CarsController
- All Implemented Interfaces:
CarsApi
@RestController
public class CarsController
extends net.andresbustamante.yafoot.commons.web.controllers.AbstractController
implements CarsApi
-
Field Summary
Fields inherited from class net.andresbustamante.yafoot.commons.web.controllers.AbstractController
DATABASE_BASIC_ERROR, UNAUTHORISED_USER_ERROR
-
Constructor Summary
ConstructorsConstructorDescriptionCarsController
(net.andresbustamante.yafoot.core.services.CarSearchService carSearchService, net.andresbustamante.yafoot.core.services.CarManagementService carManagementService, CarMapper carMapper) -
Method Summary
Methods inherited from class net.andresbustamante.yafoot.commons.web.controllers.AbstractController
getLocationURI, getObjectMapper, getRequest, getUserContext, handleConstraintViolationException, translate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.andresbustamante.yafoot.core.web.controllers.CarsApi
getObjectMapper, getRequest
-
Constructor Details
-
CarsController
public CarsController(net.andresbustamante.yafoot.core.services.CarSearchService carSearchService, net.andresbustamante.yafoot.core.services.CarManagementService carManagementService, CarMapper carMapper)
-
-
Method Details
-
loadCars
-
loadCar
-
addNewCar
-
updateCar
-
deactivateCar
- Specified by:
deactivateCar
in interfaceCarsApi
-