Class PlayersController
java.lang.Object
net.andresbustamante.yafoot.commons.web.controllers.AbstractController
net.andresbustamante.yafoot.core.web.controllers.PlayersController
- All Implemented Interfaces:
PlayersApi
REST Controller to manage operations on players.
- Author:
- andresbustamante
-
Field Summary
Fields inherited from class net.andresbustamante.yafoot.commons.web.controllers.AbstractController
DATABASE_BASIC_ERROR, UNAUTHORISED_USER_ERROR
Fields inherited from interface net.andresbustamante.yafoot.core.web.controllers.PlayersApi
log
-
Constructor Summary
ConstructorsConstructorDescriptionPlayersController
(PlayerManagementService playerManagementService, PlayerSearchService playerSearchService, PlayerMapper playerMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>
findPlayers
(String email) org.springframework.http.ResponseEntity<Player>
loadPlayer
(Integer id) org.springframework.http.ResponseEntity<Void>
updatePlayer
(Integer id, PlayerForm player) 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.PlayersApi
getObjectMapper, getRequest
-
Constructor Details
-
PlayersController
public PlayersController(PlayerManagementService playerManagementService, PlayerSearchService playerSearchService, PlayerMapper playerMapper)
-
-
Method Details
-
loadPlayer
- Specified by:
loadPlayer
in interfacePlayersApi
-
updatePlayer
- Specified by:
updatePlayer
in interfacePlayersApi
-
findPlayers
- Specified by:
findPlayers
in interfacePlayersApi
-
deactivatePlayer
- Specified by:
deactivatePlayer
in interfacePlayersApi
-