Class PlayersController
java.lang.Object
net.andresbustamante.yafoot.commons.web.controllers.AbstractController
net.andresbustamante.yafoot.core.web.controllers.PlayersController
- All Implemented Interfaces:
PlayersApi
@RestController
public class PlayersController
extends net.andresbustamante.yafoot.commons.web.controllers.AbstractController
implements 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_ERRORFields inherited from interface net.andresbustamante.yafoot.core.web.controllers.PlayersApi
log -
Constructor Summary
ConstructorsConstructorDescriptionPlayersController(net.andresbustamante.yafoot.core.services.PlayerManagementService playerManagementService, net.andresbustamante.yafoot.core.services.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, translateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.andresbustamante.yafoot.core.web.controllers.PlayersApi
getObjectMapper, getRequest
-
Constructor Details
-
PlayersController
public PlayersController(net.andresbustamante.yafoot.core.services.PlayerManagementService playerManagementService, net.andresbustamante.yafoot.core.services.PlayerSearchService playerSearchService, PlayerMapper playerMapper)
-
-
Method Details
-
loadPlayer
- Specified by:
loadPlayerin interfacePlayersApi
-
updatePlayer
- Specified by:
updatePlayerin interfacePlayersApi
-
findPlayers
- Specified by:
findPlayersin interfacePlayersApi
-
deactivatePlayer
- Specified by:
deactivatePlayerin interfacePlayersApi
-