public class SportDataProviderImpl extends Object implements SportDataProvider
| Modifier and Type | Method and Description | 
|---|---|
List<ExportableCi> | 
cacheExport(EnumSet<CacheType> cacheType)
Exports current items in the cache 
 | 
void | 
cacheImport(List<ExportableCi> items)
Imports provided items into caches 
 | 
Integer | 
deleteSportEventsFromCache(Date before)
Deletes the sport events from cache which are scheduled before specified date 
 | 
List<SportEvent> | 
getActiveTournaments()
Returns all the active tournaments
 (the returned data is translated in the default locale configured with the  
UofConfigurationImpl)
 (possible types: BasicTournament, Tournament, Stage) | 
List<SportEvent> | 
getActiveTournaments(Locale locale)
Returns all the active tournaments
 (the returned data is translated in the specified  
Locale)
 (possible types: BasicTournament, Tournament, Stage) | 
List<SportEvent> | 
getActiveTournaments(String sportName)
Returns all the active tournaments of a specific sport
 (the returned data is translated in the default locale configured with the  
UofConfigurationImpl)
 (possible types: BasicTournament, Tournament, Stage) | 
List<SportEvent> | 
getActiveTournaments(String sportName,
                    Locale locale)
Returns all the active tournaments of a specific sport
 (the returned data is translated in the specified  
Locale)
 (possible types: BasicTournament, Tournament, Stage) | 
List<SportEvent> | 
getAvailableTournaments(Urn sportId)
Returns all the available tournaments of a specific sport
 (the returned data is translated in the default locale configured with the  
UofConfigurationImpl)
 (possible types: BasicTournament, Tournament, Stage) | 
List<SportEvent> | 
getAvailableTournaments(Urn sportId,
                       Locale locale)
Returns all the available tournaments for a specific sport
 (the returned data is translated in the specified  
Locale)
 (possible types: BasicTournament, Tournament, Stage) | 
Competition | 
getCompetition(Urn id)
Returns a  
Competition representing the specified competition
 (the returned data is translated in the configured Locales using the UofConfigurationImpl) | 
Competition | 
getCompetition(Urn id,
              Locale locale)
Returns a  
Competition representing the specified competition
 (the returned data is translated in the specified Locale) | 
List<Competition> | 
getCompetitionsFor(Date date)
Returns a list of all competitions scheduled on the specified date
 (the returned data is translated in the configured  
Locales using the UofConfigurationImpl) | 
List<Competition> | 
getCompetitionsFor(Date date,
                  Locale locale)
Returns a list of all competitions scheduled on the specified date
 (the returned data is translated in the specified  
Locale) | 
Competitor | 
getCompetitor(Urn id)
Returns a  
Competitor representing the specified competitor
 (the returned data is translated in the configured Locales using the UofConfigurationImpl) | 
Competitor | 
getCompetitor(Urn id,
             Locale locale)
Returns a  
Competitor representing the specified competitor
 (the returned data is translated in the specified Locale) | 
List<FixtureChange> | 
getFixtureChanges()
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<FixtureChange> | 
getFixtureChanges(Date after,
                 Urn sportId)
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<FixtureChange> | 
getFixtureChanges(Date after,
                 Urn sportId,
                 Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<FixtureChange> | 
getFixtureChanges(Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<Competition> | 
getListOfSportEvents(int startIndex,
                    int limit)
Lists almost all events we are offering prematch odds for. 
 | 
List<Competition> | 
getListOfSportEvents(int startIndex,
                    int limit,
                    Locale locale)
Lists almost all events we are offering prematch odds for. 
 | 
List<Competition> | 
getLiveCompetitions()
Returns all the competitions that are currently live
 (the returned data is translated in the configured  
Locales using the UofConfigurationImpl) | 
List<Competition> | 
getLiveCompetitions(Locale locale)
Returns all the competitions that are currently live
 (the returned data is translated in the specified  
Locale) | 
LongTermEvent | 
getLongTermEvent(Urn id)
Returns the specified long term event
 (the returned data is translated in the configured  
Locales using the UofConfigurationImpl) | 
LongTermEvent | 
getLongTermEvent(Urn id,
                Locale locale)
Returns the specified long term event
 (the returned data is translated in the specified  
Locale) | 
List<Lottery> | 
getLotteries(Locale locale)
Returns all the available lotteries
 (the returned data is translated in the specified  
Locale) | 
List<PeriodStatus> | 
getPeriodStatuses(Urn id,
                 Locale locale,
                 List<Urn> competitorIds,
                 List<Integer> periods)
Returns the list of  
PeriodStatus from the sport event period summary endpoint | 
PlayerProfile | 
getPlayerProfile(Urn id)
Returns a  
PlayerProfile representing the specified competitor
 (the returned data is translated in the configured Locales using the UofConfigurationImpl) | 
PlayerProfile | 
getPlayerProfile(Urn id,
                Locale locale)
Returns a  
PlayerProfile representing the specified competitor
 (the returned data is translated in the specified Locale) | 
List<ResultChange> | 
getResultChanges()
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<ResultChange> | 
getResultChanges(Date after,
                Urn sportId)
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<ResultChange> | 
getResultChanges(Date after,
                Urn sportId,
                Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
List<ResultChange> | 
getResultChanges(Locale locale)
Returns the list of all fixtures that have changed in the last 24 hours 
 | 
SportEvent | 
getSportEvent(Urn id)
Returns the specified sport event
 (the returned data is translated in the configured  
Locales using the UofConfigurationImpl) | 
SportEvent | 
getSportEvent(Urn id,
             Locale locale)
Returns the specified sport event
 (the returned data is translated in the specified  
Locale) | 
SportEvent | 
getSportEventForEventChange(Urn id)  | 
List<Sport> | 
getSports()
Returns all the available sports
 (the returned data is translated in the configured  
Locales using the UofConfigurationImpl) | 
List<Sport> | 
getSports(Locale locale)
Returns all the available sports
 (the returned data is translated in the specified  
Locale) | 
List<TimelineEvent> | 
getTimelineEvents(Urn id,
                 Locale locale)
Returns the list of  
TimelineEvent for the sport event | 
void | 
purgeCompetitorProfileCacheData(Urn competitorId)
Purges the associated competitor cache item 
 | 
void | 
purgePlayerProfileCacheData(Urn playerId)
Purges the associated player profile cache item 
 | 
void | 
purgeSportEventCacheData(Urn eventId)
Purges the associated sport event cache item 
 | 
void | 
purgeSportEventCacheData(Urn eventId,
                        boolean includeStatusPurge)
Purges the associated sport event cache item 
 | 
public List<Sport> getSports()
Locales using the UofConfigurationImpl)getSports in interface SportDataProviderpublic List<Sport> getSports(Locale locale)
Locale)getSports in interface SportDataProviderlocale - - the Locale in which to provide the datapublic List<SportEvent> getActiveTournaments()
UofConfigurationImpl)
 (possible types: BasicTournament, Tournament, Stage)getActiveTournaments in interface SportDataProviderpublic List<SportEvent> getActiveTournaments(Locale locale)
Locale)
 (possible types: BasicTournament, Tournament, Stage)getActiveTournaments in interface SportDataProviderlocale - - the Locale in which to provide the datapublic List<SportEvent> getActiveTournaments(String sportName)
UofConfigurationImpl)
 (possible types: BasicTournament, Tournament, Stage)getActiveTournaments in interface SportDataProvidersportName - - the specific sport namepublic List<SportEvent> getActiveTournaments(String sportName, Locale locale)
Locale)
 (possible types: BasicTournament, Tournament, Stage)getActiveTournaments in interface SportDataProvidersportName - - the specific sport namelocale - - the Locale in which to provide the datapublic List<Competition> getCompetitionsFor(Date date)
Locales using the UofConfigurationImpl)getCompetitionsFor in interface SportDataProviderdate - - the date for which to list all active competitionspublic List<Competition> getCompetitionsFor(Date date, Locale locale)
Locale)getCompetitionsFor in interface SportDataProviderdate - - the date for which to list all active competitionslocale - - the Locale in which to provide the datapublic List<Competition> getLiveCompetitions()
Locales using the UofConfigurationImpl)getLiveCompetitions in interface SportDataProviderpublic List<Competition> getLiveCompetitions(Locale locale)
Locale)getLiveCompetitions in interface SportDataProviderlocale - - the Locale in which to provide the datapublic SportEvent getSportEvent(Urn id)
Locales using the UofConfigurationImpl)getSportEvent in interface SportDataProviderid - - an Urn identifier specifying the sport eventpublic SportEvent getSportEventForEventChange(Urn id)
public SportEvent getSportEvent(Urn id, Locale locale)
Locale)getSportEvent in interface SportDataProviderid - - an Urn identifier specifying the requested long term eventlocale - - the Locale in which to provide the datapublic LongTermEvent getLongTermEvent(Urn id)
Locales using the UofConfigurationImpl)getLongTermEvent in interface SportDataProviderid - - an Urn identifier specifying the requested long term eventpublic LongTermEvent getLongTermEvent(Urn id, Locale locale)
Locale)getLongTermEvent in interface SportDataProviderid - - an Urn identifier specifying the requested long term eventlocale - - the Locale in which to provide the datapublic Competition getCompetition(Urn id)
Competition representing the specified competition
 (the returned data is translated in the configured Locales using the UofConfigurationImpl)getCompetition in interface SportDataProviderid - - an Urn identifier specifying the competition requestedCompetition representing the specified competitionpublic Competition getCompetition(Urn id, Locale locale)
Competition representing the specified competition
 (the returned data is translated in the specified Locale)getCompetition in interface SportDataProviderid - - an Urn identifier specifying the competition requestedlocale - - the Locale in which to provide the dataCompetition representing the specified competition translated in the provided localepublic Competitor getCompetitor(Urn id)
Competitor representing the specified competitor
 (the returned data is translated in the configured Locales using the UofConfigurationImpl)getCompetitor in interface SportDataProviderid - - a unique competitor Urn identifierCompetitor representing the competitor associated with the provided Urnpublic Competitor getCompetitor(Urn id, Locale locale)
Competitor representing the specified competitor
 (the returned data is translated in the specified Locale)getCompetitor in interface SportDataProviderid - - a unique competitor Urn identifierlocale - - the Locale in which to provide the dataCompetitor representing the competitor associated with the provided Urnpublic PlayerProfile getPlayerProfile(Urn id)
PlayerProfile representing the specified competitor
 (the returned data is translated in the configured Locales using the UofConfigurationImpl)getPlayerProfile in interface SportDataProviderid - - a unique player Urn identifierPlayerProfile representing the specified competitorpublic PlayerProfile getPlayerProfile(Urn id, Locale locale)
PlayerProfile representing the specified competitor
 (the returned data is translated in the specified Locale)getPlayerProfile in interface SportDataProviderid - - a unique player Urn identifierlocale - - the Locale in which to provide the dataPlayerProfile representing the specified competitorpublic void purgeSportEventCacheData(Urn eventId)
purgeSportEventCacheData in interface SportDataProvidereventId - the identifier of the cache item to purgepublic void purgeSportEventCacheData(Urn eventId, boolean includeStatusPurge)
purgeSportEventCacheData in interface SportDataProvidereventId - the identifier of the cache item to purgeincludeStatusPurge - an indication if the associated sport event status should be purged toopublic void purgeCompetitorProfileCacheData(Urn competitorId)
purgeCompetitorProfileCacheData in interface SportDataProvidercompetitorId - the identifier of the cache item to purgepublic void purgePlayerProfileCacheData(Urn playerId)
purgePlayerProfileCacheData in interface SportDataProviderplayerId - the identifier of the cache item to purgepublic List<FixtureChange> getFixtureChanges()
getFixtureChanges in interface SportDataProviderFixtureChangepublic List<FixtureChange> getFixtureChanges(Locale locale)
getFixtureChanges in interface SportDataProviderlocale - - the Locale in which to provide the dataFixtureChangepublic List<FixtureChange> getFixtureChanges(Date after, Urn sportId)
getFixtureChanges in interface SportDataProviderafter - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedFixtureChangepublic List<FixtureChange> getFixtureChanges(Date after, Urn sportId, Locale locale)
getFixtureChanges in interface SportDataProviderafter - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedlocale - - the Locale in which to provide the dataFixtureChangepublic List<ResultChange> getResultChanges()
getResultChanges in interface SportDataProviderResultChangepublic List<ResultChange> getResultChanges(Locale locale)
getResultChanges in interface SportDataProviderlocale - - the Locale in which to provide the dataResultChangepublic List<ResultChange> getResultChanges(Date after, Urn sportId)
getResultChanges in interface SportDataProviderafter - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedResultChangepublic List<ResultChange> getResultChanges(Date after, Urn sportId, Locale locale)
getResultChanges in interface SportDataProviderafter - specifies the starting date and time for filteringsportId - specifies the sport for which the fixtures should be returnedlocale - - the Locale in which to provide the dataResultChangepublic List<Competition> getListOfSportEvents(int startIndex, int limit)
getListOfSportEvents in interface SportDataProviderstartIndex - starting index (zero based)limit - how many records to return (max: 1000)public List<Competition> getListOfSportEvents(int startIndex, int limit, Locale locale)
getListOfSportEvents in interface SportDataProviderstartIndex - starting index (zero based)limit - how many records to return (max: 1000)locale - the Locale in which to provide the datapublic List<SportEvent> getAvailableTournaments(Urn sportId)
UofConfigurationImpl)
 (possible types: BasicTournament, Tournament, Stage)getAvailableTournaments in interface SportDataProvidersportId - - the specific sport idpublic List<SportEvent> getAvailableTournaments(Urn sportId, Locale locale)
Locale)
 (possible types: BasicTournament, Tournament, Stage)getAvailableTournaments in interface SportDataProvidersportId - - the specific sport idlocale - - the Locale in which to provide the datapublic Integer deleteSportEventsFromCache(Date before)
deleteSportEventsFromCache in interface SportDataProviderbefore - the scheduled Date used to delete sport events from cachepublic List<ExportableCi> cacheExport(EnumSet<CacheType> cacheType)
cacheExport in interface SportDataProvidercacheType - specifies what type of cache items will be exportedExportableCi containing all the items currently in the cachepublic void cacheImport(List<ExportableCi> items)
cacheImport in interface SportDataProvideritems - List of ExportableCi containing the items to be importedpublic List<Lottery> getLotteries(Locale locale)
Locale)getLotteries in interface SportDataProviderlocale - - the Locale in which to provide the datapublic List<PeriodStatus> getPeriodStatuses(Urn id, Locale locale, List<Urn> competitorIds, List<Integer> periods)
PeriodStatus from the sport event period summary endpointgetPeriodStatuses in interface SportDataProviderid - the id of the sport event to be fetchedlocale - the Locale in 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)PeriodStatus from the sport event period summary endpointpublic List<TimelineEvent> getTimelineEvents(Urn id, Locale locale)
TimelineEvent for the sport eventgetTimelineEvents in interface SportDataProviderid - the id of the sport event to be fetchedlocale - the Locale in which to provide the data (can be null)TimelineEvent for the sport eventCopyright © 2016–2025. All rights reserved.