Interface MatchSearchService
- All Known Implementing Classes:
MatchSearchServiceImpl
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, UserContext ctx) Find the matches where a player is attending in an interval of time.
-
Method Details
-
findMatchByCode
Find a match by its identifying code.- Parameters:
code
- Code to search- Returns:
- Match found for this code
- Throws:
DatabaseException
-
findMatches
List<Match> findMatches(MatchStatusEnum status, SportEnum sport, LocalDate startDate, LocalDate endDate, UserContext ctx) throws 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:
DatabaseException
-