Class ClubController


@RestController @RequestMapping("/rest/club") public class ClubController extends GlobalCorsConfigController
controlador para el club
Author:
Alejandro
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    devolverHistoryPagosPlayer(com.futbol.manager.dto.HistoryPagosPlayerDTO dto)
    metodo para devolver un pago realizado y guardarlo en el historial
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    getClubCuota(String clubId, String temporada)
    metodo para obtener las cuotas de un club
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    getClubCuotaForLoadTeam(int clubId, String temporada, int teamId)
    metodo que obtiene la cuota de un equipo y la carga en contablidad
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    getHistoryPagosPlayer(String clubId, String playerId, String temporada)
    metodo para obtener el historial de pagos del jugador
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    getListJugadoresByClubForTemp(int clubId, String temporada)
    metodo para obtener la lista de todos los jugadores de un club, se separan por equipos
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    metodo para obtener la lista de jugadores de un club para estadisticas
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    metodo para obtener la lista de equipos de un club para estadisticas
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    getPlayerCuota(String clubId, String playerId, String temporada)
    metodo para obtener la cuota de un jugador
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    getRopaClub(String clubId, String temporada)
    metodo para obtener la ropa de un club
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    metodo para obtener la ropa de los jugadores de un club
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    updateclubCuotas(com.futbol.manager.dto.ClubCuotasDTO dto, int option, int value)
    metodo para actualizar o modificar las cuotas de un club
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    updateHistoryPagosPlayer(com.futbol.manager.dto.HistoryPagosPlayerDTO dto)
    metodo para agregar un pago del jugador al historial
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    updatePlayerCuotas(com.futbol.manager.dto.PlayerCuotasDTO dto, String clubId)
    metodo para modificar la cuota de un jugador
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    updateRopaClub(com.futbol.manager.dto.RopaClubDTO ropa)
    metodo para actualizar la ropa de un club
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    updateRopaJugadorByPk(com.futbol.manager.dto.RopaJugadorDTO ropa)
    metodo para actualizar la ropa de un jugador
    org.springframework.http.ResponseEntity<com.futbol.manager.response.Response>
    uploadPlayerExcel(org.springframework.web.multipart.MultipartFile file, String clubId)
    metodo para crear jugadores desde una plantilla de excel

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClubController

      public ClubController()
  • Method Details

    • getRopaJugadoresByClubForTemp

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getropajugadoresbyclub/{clubId}/{temporada}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getRopaJugadoresByClubForTemp(@PathVariable String clubId, @PathVariable String temporada)
      metodo para obtener la ropa de los jugadores de un club
      Parameters:
      clubId -
      temporada -
      Returns:
    • updateRopaJugadorByPk

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("updateropajugador") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> updateRopaJugadorByPk(@RequestBody com.futbol.manager.dto.RopaJugadorDTO ropa)
      metodo para actualizar la ropa de un jugador
      Parameters:
      ropa -
      Returns:
    • getRopaClub

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getropaclub/{clubId}/{temporada}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getRopaClub(@PathVariable String clubId, @PathVariable String temporada)
      metodo para obtener la ropa de un club
      Parameters:
      clubId -
      temporada -
      Returns:
    • updateRopaClub

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("updateropaclub") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> updateRopaClub(@RequestBody com.futbol.manager.dto.RopaClubDTO ropa)
      metodo para actualizar la ropa de un club
      Parameters:
      ropa -
      Returns:
    • getClubCuota

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getclubcuotas/{clubId}/{temporada}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getClubCuota(@PathVariable String clubId, @PathVariable String temporada)
      metodo para obtener las cuotas de un club
      Parameters:
      clubId -
      temporada -
      Returns:
    • getClubCuotaForLoadTeam

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getclubcuotas/{clubId}/{temporada}/{teamId}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getClubCuotaForLoadTeam(@PathVariable int clubId, @PathVariable String temporada, @PathVariable int teamId)
      metodo que obtiene la cuota de un equipo y la carga en contablidad
      Parameters:
      clubId -
      temporada -
      teamId -
      Returns:
    • updateclubCuotas

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("updateclubcuotas/{option}/{value}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> updateclubCuotas(@RequestBody com.futbol.manager.dto.ClubCuotasDTO dto, @PathVariable int option, @PathVariable int value)
      metodo para actualizar o modificar las cuotas de un club
      Parameters:
      dto -
      option -
      value -
      Returns:
    • getHistoryPagosPlayer

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("gethistorypagosplayer/{clubId}/{playerId}/{temporada}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getHistoryPagosPlayer(@PathVariable String clubId, @PathVariable String playerId, @PathVariable String temporada)
      metodo para obtener el historial de pagos del jugador
      Parameters:
      clubId -
      playerId -
      temporada -
      Returns:
    • getPlayerCuota

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getplayercuota/{clubId}/{playerId}/{temporada}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getPlayerCuota(@PathVariable String clubId, @PathVariable String playerId, @PathVariable String temporada)
      metodo para obtener la cuota de un jugador
      Parameters:
      clubId -
      playerId -
      temporada -
      Returns:
    • updatePlayerCuotas

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("updateplayercuotas/{clubId}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> updatePlayerCuotas(@RequestBody com.futbol.manager.dto.PlayerCuotasDTO dto, @PathVariable String clubId)
      metodo para modificar la cuota de un jugador
      Parameters:
      dto -
      clubId -
      Returns:
    • updateHistoryPagosPlayer

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("updatehistorypagosplayer") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> updateHistoryPagosPlayer(@RequestBody com.futbol.manager.dto.HistoryPagosPlayerDTO dto)
      metodo para agregar un pago del jugador al historial
      Parameters:
      dto -
      Returns:
    • devolverHistoryPagosPlayer

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("devolverhistorypagosplayer") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> devolverHistoryPagosPlayer(@RequestBody com.futbol.manager.dto.HistoryPagosPlayerDTO dto)
      metodo para devolver un pago realizado y guardarlo en el historial
      Parameters:
      dto -
      Returns:
    • uploadPlayerExcel

      @PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("uploadExcel/{clubId}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> uploadPlayerExcel(@RequestParam("file") org.springframework.web.multipart.MultipartFile file, @PathVariable String clubId)
      metodo para crear jugadores desde una plantilla de excel
      Parameters:
      file -
      clubId -
      Returns:
    • getListJugadoresByClubForTemp

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getlistplayeroftheclubfortemp/{clubId}/{temporada}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getListJugadoresByClubForTemp(@PathVariable int clubId, @PathVariable String temporada)
      metodo para obtener la lista de todos los jugadores de un club, se separan por equipos
      Parameters:
      clubId -
      temporada -
      Returns:
    • getListPlayersOfClubByStadistics

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getlistplayersofclubbystadistics/{clubId}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getListPlayersOfClubByStadistics(@PathVariable int clubId)
      metodo para obtener la lista de jugadores de un club para estadisticas
      Parameters:
      clubId -
      Returns:
    • getListTeamsOfClubByStadistics

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("getlistteamsofclubbystadistics/{clubId}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> getListTeamsOfClubByStadistics(@PathVariable int clubId)
      metodo para obtener la lista de equipos de un club para estadisticas
      Parameters:
      clubId -
      Returns: