Interface SportDataProvider
- All Known Implementing Classes:
SportDataProviderImpl
public interface SportDataProvider
Defines methods implemented by classes used to provide sport related data (sports, tournaments, competitions, ...)
-
Method Summary
Modifier and TypeMethodDescriptioncacheExport(EnumSet<CacheType> cacheType) Exports current items in the cachevoidcacheImport(List<ExportableCi> items) Imports provided items into cachesdeleteSportEventsFromCache(Date before) Deletes the sport events from cache which are scheduled before specified dateReturns all the active tournaments (the returned data is translated in the default locale configured with theUofConfigurationImpl) (possible types:BasicTournament,Tournament,Stage)getActiveTournaments(String sportName) Returns all the active tournaments of a specific sport (the returned data is translated in the default locale configured with theUofConfigurationImpl) (possible types:BasicTournament,Tournament,Stage)getActiveTournaments(String sportName, Locale locale) Returns all the active tournaments of a specific sport (the returned data is translated in the specifiedLocale) (possible types:BasicTournament,Tournament,Stage)getActiveTournaments(Locale locale) Returns all the active tournaments (the returned data is translated in the specifiedLocale) (possible types:BasicTournament,Tournament,Stage)getAvailableTournaments(Urn sportId) Returns all the available tournaments for a specific sport (the returned data is translated in the default locale configured with theUofConfigurationImpl) (possible types:BasicTournament,Tournament,Stage)getAvailableTournaments(Urn sportId, Locale locale) Returns all the available tournaments for a specific sport (the returned data is translated in the specifiedLocale) (possible types:BasicTournament,Tournament,Stage)getCompetition(Urn id) Returns aCompetitionrepresenting the specified competition (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getCompetition(Urn id, Locale locale) Returns aCompetitionrepresenting the specified competition (the returned data is translated in the specifiedLocale)getCompetitionsFor(Date date) Returns a list of all competitions scheduled on the specified date (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getCompetitionsFor(Date date, Locale locale) Returns a list of all competitions scheduled on the specified date (the returned data is translated in the specifiedLocale)getCompetitor(Urn id) Returns aCompetitorrepresenting the specified competitor (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getCompetitor(Urn id, Locale locale) Returns aCompetitorrepresenting the specified competitor (the returned data is translated in the specifiedLocale)Returns the list of all fixtures that have changed in the last 24 hoursgetFixtureChanges(Date after, Urn sportId) Returns the list of all fixtures that have changed in the last 24 hoursgetFixtureChanges(Date after, Urn sportId, Locale locale) Returns the list of all fixtures that have changed in the last 24 hoursgetFixtureChanges(Locale locale) Returns the list of all fixtures that have changed in the last 24 hoursgetListOfSportEvents(int startIndex, int limit) Lists almost all events we are offering prematch odds for.getListOfSportEvents(int startIndex, int limit, Locale locale) Lists almost all events we are offering prematch odds for.Returns all the competitions that are currently live (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getLiveCompetitions(Locale locale) Returns all the competitions that are currently live (the returned data is translated in the specifiedLocale)getLongTermEvent(Urn id) Returns the specified long term event (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getLongTermEvent(Urn id, Locale locale) Returns the specified long term event (the returned data is translated in the specifiedLocale)getLotteries(Locale locale) Returns all the available lotteries (the returned data is translated in the specifiedLocale)Returns the list ofPeriodStatusfrom the sport event period summary endpointgetPlayerProfile(Urn id) Returns aPlayerProfilerepresenting the specified competitor (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getPlayerProfile(Urn id, Locale locale) Returns aPlayerProfilerepresenting the specified competitor (the returned data is translated in the specifiedLocale)Returns the list of all fixtures that have changed in the last 24 hoursgetResultChanges(Date after, Urn sportId) Returns the list of all fixtures that have changed in the last 24 hoursgetResultChanges(Date after, Urn sportId, Locale locale) Returns the list of all fixtures that have changed in the last 24 hoursgetResultChanges(Locale locale) Returns the list of all fixtures that have changed in the last 24 hoursgetSportEvent(Urn id) Returns the specified sport event (the returned data is translated in the configuredLocales using theUofConfigurationImpl)getSportEvent(Urn id, Locale locale) Returns the specified sport event (the returned data is translated in the specifiedLocale)Returns all the available sports (the returned data is translated in the configuredLocales using theUofConfigurationImpl)Returns all the available sports (the returned data is translated in the specifiedLocale)getTimelineEvents(Urn id, Locale locale) Returns the list ofTimelineEventfor the sport eventvoidpurgeCompetitorProfileCacheData(Urn competitorId) Purges the associated competitor cache itemvoidpurgePlayerProfileCacheData(Urn playerId) Purges the associated player profile cache itemvoidpurgeSportEventCacheData(Urn eventId) Purges the associated sport event cache itemvoidpurgeSportEventCacheData(Urn eventId, boolean includeStatusPurge) Purges the associated sport event cache item
-
Method Details
-
getSports
Returns all the available sports (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Returns:
- - all the available sports
-
getSports
Returns all the available sports (the returned data is translated in the specifiedLocale)- Parameters:
locale- - theLocalein which to provide the data- Returns:
- - all the available sports translated in the specified locale
-
getActiveTournaments
List<SportEvent> getActiveTournaments()Returns all the active tournaments (the returned data is translated in the default locale configured with theUofConfigurationImpl) (possible types:BasicTournament,Tournament,Stage)- Returns:
- - all the active tournaments
-
getActiveTournaments
Returns all the active tournaments (the returned data is translated in the specifiedLocale) (possible types:BasicTournament,Tournament,Stage)- Parameters:
locale- - theLocalein which to provide the data- Returns:
- - all the active tournaments translated in the specified locale
-
getActiveTournaments
Returns all the active tournaments of a specific sport (the returned data is translated in the default locale configured with theUofConfigurationImpl) (possible types:BasicTournament,Tournament,Stage)- Parameters:
sportName- - the specific sport name- Returns:
- - all the active tournaments of a specific sport
-
getActiveTournaments
Returns all the active tournaments of a specific sport (the returned data is translated in the specifiedLocale) (possible types:BasicTournament,Tournament,Stage)- Parameters:
sportName- - the specific sport namelocale- - theLocalein which to provide the data- Returns:
- - all the active tournaments of a specific sport translated in the specified locale
-
getCompetitionsFor
Returns a list of all competitions scheduled on the specified date (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Parameters:
date- - the date for which to list all active competitions- Returns:
- - a list of all competitions scheduled on the specified date
-
getCompetitionsFor
Returns a list of all competitions scheduled on the specified date (the returned data is translated in the specifiedLocale)- Parameters:
date- - the date for which to list all active competitionslocale- - theLocalein which to provide the data- Returns:
- - a list of all competitions scheduled on the specified date (the data is translated in the provided locale)
-
getLiveCompetitions
List<Competition> getLiveCompetitions()Returns all the competitions that are currently live (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Returns:
- - all the competitions that are currently live
-
getLiveCompetitions
Returns all the competitions that are currently live (the returned data is translated in the specifiedLocale)- Parameters:
locale- - theLocalein which to provide the data- Returns:
- - all the competitions that are currently live (the data is translated in the provided locale)
-
getSportEvent
Returns the specified sport event (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Parameters:
id- - anUrnidentifier specifying the sport event- Returns:
- - the specified sport event
-
getSportEvent
Returns the specified sport event (the returned data is translated in the specifiedLocale) -
getLongTermEvent
Returns the specified long term event (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Parameters:
id- - anUrnidentifier specifying the requested long term event- Returns:
- - the specified tournament
-
getLongTermEvent
Returns the specified long term event (the returned data is translated in the specifiedLocale) -
getCompetition
Returns aCompetitionrepresenting the specified competition (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Parameters:
id- - anUrnidentifier specifying the competition requested- Returns:
- - a
Competitionrepresenting the specified competition
-
getCompetition
Returns aCompetitionrepresenting the specified competition (the returned data is translated in the specifiedLocale)- Parameters:
id- - anUrnidentifier specifying the competition requestedlocale- - theLocalein which to provide the data- Returns:
- - a
Competitionrepresenting the specified competition translated in the provided locale
-
getCompetitor
Returns aCompetitorrepresenting the specified competitor (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Parameters:
id- - a unique competitorUrnidentifier- Returns:
- - a
Competitorrepresenting the competitor associated with the providedUrn
-
getCompetitor
Returns aCompetitorrepresenting the specified competitor (the returned data is translated in the specifiedLocale)- Parameters:
id- - a unique competitorUrnidentifierlocale- - theLocalein which to provide the data- Returns:
- - a
Competitorrepresenting the competitor associated with the providedUrn
-
getPlayerProfile
Returns aPlayerProfilerepresenting the specified competitor (the returned data is translated in the configuredLocales using theUofConfigurationImpl)- Parameters:
id- - a unique playerUrnidentifier- Returns:
- - a
PlayerProfilerepresenting the specified competitor
-
getPlayerProfile
Returns aPlayerProfilerepresenting the specified competitor (the returned data is translated in the specifiedLocale)- Parameters:
id- - a unique playerUrnidentifierlocale- - theLocalein which to provide the data- Returns:
- - a
PlayerProfilerepresenting the specified competitor
-
purgeSportEventCacheData
Purges the associated sport event cache item- Parameters:
eventId- the identifier of the cache item to purge
-
purgeSportEventCacheData
Purges the associated sport event cache item- Parameters:
eventId- the identifier of the cache item to purgeincludeStatusPurge- an indication if the associated sport event status should be purged too
-
purgeCompetitorProfileCacheData
Purges the associated competitor cache item- Parameters:
competitorId- the identifier of the cache item to purge
-
purgePlayerProfileCacheData
Purges the associated player profile cache item- Parameters:
playerId- the identifier of the cache item to purge
-
getFixtureChanges
List<FixtureChange> getFixtureChanges()Returns the list of all fixtures that have changed in the last 24 hours- Returns:
- list of
FixtureChange
-
getFixtureChanges
Returns the list of all fixtures that have changed in the last 24 hours- Parameters:
locale- - theLocalein which to provide the data- Returns:
- list of
FixtureChange
-
getFixtureChanges
Returns the list of all fixtures that have changed in the last 24 hours- Parameters:
after- specifies the starting date and time for filteringsportId- specifies the sport for which the fixtures should be returned- Returns:
- list of
FixtureChange
-
getFixtureChanges
Returns the list of all fixtures that have changed in the last 24 hours- Parameters:
after- specifies the starting date and time for filteringsportId- specifies the sport for which the fixtures should be returnedlocale- - theLocalein which to provide the data- Returns:
- list of
FixtureChange
-
getResultChanges
List<ResultChange> getResultChanges()Returns the list of all fixtures that have changed in the last 24 hours- Returns:
- list of
ResultChange
-
getResultChanges
Returns the list of all fixtures that have changed in the last 24 hours- Parameters:
locale- - theLocalein which to provide the data- Returns:
- list of
ResultChange
-
getResultChanges
Returns the list of all fixtures that have changed in the last 24 hours- Parameters:
after- specifies the starting date and time for filteringsportId- specifies the sport for which the fixtures should be returned- Returns:
- list of
ResultChange
-
getResultChanges
Returns the list of all fixtures that have changed in the last 24 hours- Parameters:
after- specifies the starting date and time for filteringsportId- specifies the sport for which the fixtures should be returnedlocale- - theLocalein which to provide the data- Returns:
- list of
ResultChange
-
getListOfSportEvents
Lists almost all events we are offering prematch odds for. This endpoint can be used during early startup to obtain almost all fixtures. This endpoint is one of the few that uses pagination.- Parameters:
startIndex- starting index (zero based)limit- how many records to return (max: 1000)- Returns:
- a list of sport events
-
getListOfSportEvents
Lists almost all events we are offering prematch odds for. This endpoint can be used during early startup to obtain almost all fixtures. This endpoint is one of the few that uses pagination.- Parameters:
startIndex- starting index (zero based)limit- how many records to return (max: 1000)locale- theLocalein which to provide the data- Returns:
- a list of sport events
-
getAvailableTournaments
Returns all the available tournaments for a specific sport (the returned data is translated in the default locale configured with theUofConfigurationImpl) (possible types:BasicTournament,Tournament,Stage)- Parameters:
sportId- - the specific sport id- Returns:
- - all available tournaments for a sport we provide coverage for in default locale
-
getAvailableTournaments
Returns all the available tournaments for a specific sport (the returned data is translated in the specifiedLocale) (possible types:BasicTournament,Tournament,Stage)- Parameters:
sportId- - the specific sport idlocale- - theLocalein which to provide the data- Returns:
- - all available tournaments for a sport we provide coverage for in specified locale
-
deleteSportEventsFromCache
Deletes the sport events from cache which are scheduled before specified date- Parameters:
before- the scheduled Date used to delete sport events from cache- Returns:
- number of deleted items
-
cacheExport
Exports current items in the cache- Parameters:
cacheType- specifies what type of cache items will be exported- Returns:
- List of
ExportableCicontaining all the items currently in the cache
-
cacheImport
Imports provided items into caches- Parameters:
items- List ofExportableCicontaining the items to be imported
-
getLotteries
Returns all the available lotteries (the returned data is translated in the specifiedLocale)- Parameters:
locale- - theLocalein which to provide the data- Returns:
- - all available lotteries in specified locale (from SportsAPI All lotteries endpoint)
-
getPeriodStatuses
List<PeriodStatus> getPeriodStatuses(Urn id, Locale locale, List<Urn> competitorIds, List<Integer> periods) Returns the list ofPeriodStatusfrom the sport event period summary endpoint- Parameters:
id- the id of the sport event to be fetchedlocale- theLocalein which to provide the data (can be null)competitorIds- the list of competitor ids to fetch the results for (can be null)periods- the list of period ids to fetch the results for (can be null)- Returns:
- the list of
PeriodStatusfrom the sport event period summary endpoint
-
getTimelineEvents
Returns the list ofTimelineEventfor the sport event- Parameters:
id- the id of the sport event to be fetchedlocale- theLocalein which to provide the data (can be null)- Returns:
- the list of
TimelineEventfor the sport event
-