Interface AthleteService

All Known Implementing Classes:
AthleteServiceMain

public interface AthleteService
The AthleteService defines the business operations for managing athlete data.
  • Method Details

    • getAthletes

      AthletesPageDTO getAthletes(org.springframework.data.domain.Pageable pageable)
      Returns an AthletesPageDTO containing the paginated list of athletes.
      Parameters:
      pageable - the pagination information (page number, page size, etc.)
      Returns:
      an AthletesPageDTO with the athletes for the current page and pagination metadata
    • getAthleteById

      AthleteDTO getAthleteById(Long id)
      Returns the AthleteDTO for the athlete with the given ID.
      Parameters:
      id - the unique identifier of the athlete
      Returns:
      the AthleteDTO for the requested athlete
      Throws:
      EnduranceTrioException - if no athlete with the given ID is found
    • getAthleteRaces

      AthleteRacesPageDTO getAthleteRaces(Long athleteId, org.springframework.data.domain.Pageable pageable)
      Returns an AthleteRacesPageDTO containing the paginated list of races for the athlete with the given ID, ordered by race date descending.
      Parameters:
      athleteId - the unique identifier of the athlete
      pageable - the pagination information (page number, page size, etc.)
      Returns:
      an AthleteRacesPageDTO with the races for the athlete and pagination metadata