Class MatchSearchServiceImpl
java.lang.Object
net.andresbustamante.yafoot.core.services.impl.MatchSearchServiceImpl
- All Implemented Interfaces:
MatchSearchService
Match search service implementation.
- Author:
- andresbustamante
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
MatchSearchServiceImpl
-
-
Method Details
-
findMatchByCode
Description copied from interface:MatchSearchService
Find a match by its identifying code.- Specified by:
findMatchByCode
in interfaceMatchSearchService
- 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 interfaceMatchSearchService
- 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
-