Class MatchSearchServiceImpl

java.lang.Object
net.andresbustamante.yafoot.core.services.impl.MatchSearchServiceImpl
All Implemented Interfaces:
MatchSearchService

@Service public class MatchSearchServiceImpl extends Object implements MatchSearchService
Match search service implementation.
Author:
andresbustamante
  • Constructor Details

    • MatchSearchServiceImpl

      public MatchSearchServiceImpl(MatchDao matchDAO, PlayerDao playerDao)
  • Method Details

    • findMatchByCode

      @Transactional(readOnly=true) public Match findMatchByCode(String code)
      Description copied from interface: MatchSearchService
      Find a match by its identifying code.
      Specified by:
      findMatchByCode in interface MatchSearchService
      Parameters:
      code - Code to search
      Returns:
      Match found for this code
    • findMatches

      @Transactional(readOnly=true) public List<Match> findMatches(MatchStatusEnum status, SportEnum sport, LocalDate startDate, LocalDate endDate, UserContext ctx)
      Description copied from interface: MatchSearchService
      Find the matches where a player is attending in an interval of time.
      Specified by:
      findMatches in interface MatchSearchService
      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