Interface MatchSearchService
public interface MatchSearchService
Matches search service. Only used for reading data.
- Author:
- andresbustamante
-
Method Summary
Modifier and TypeMethodDescriptionfindMatchByCode(String code) Find a match by its identifying code.findMatches(MatchStatusEnum status, SportEnum sport, LocalDate startDate, LocalDate endDate, net.andresbustamante.yafoot.commons.model.UserContext ctx) Find the matches where a player is attending in an interval of time.
-
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 statussport- Sport to use for filtering research resultsstartDate- Start date for the researchendDate- End date for the researchctx- User context- Returns:
- List of matches found
- Throws:
net.andresbustamante.yafoot.commons.exceptions.DatabaseException
-