Interface MatchSearchService


public interface MatchSearchService
Matches search service. Only used for reading data.
Author:
andresbustamante
  • Method Details

    • findMatchByCode

      Match findMatchByCode(String code) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      Find a match by its identifying code.
      Parameters:
      code - Code to search
      Returns:
      Match found for this code
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException
    • findMatches

      List<Match> findMatches(MatchStatusEnum status, SportEnum sport, LocalDate startDate, LocalDate endDate, net.andresbustamante.yafoot.commons.model.UserContext ctx) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      Find the matches where a player is attending in an interval of time.
      Parameters:
      status - Match status
      sport - Sport to use for filtering research results
      startDate - Start date for the research
      endDate - End date for the research
      ctx - User context
      Returns:
      List of matches found
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException