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 Locale s 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
Locale s 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 Locale s 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
Locale s 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
Locale s 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 Locale s 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
Locale s 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
Locale s 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()
Locale
s using the UofConfigurationImpl
)getSports
in interface SportDataProvider
public List<Sport> getSports(Locale locale)
Locale
)getSports
in interface SportDataProvider
locale
- - the Locale
in which to provide the datapublic List<SportEvent> getActiveTournaments()
UofConfigurationImpl
)
(possible types: BasicTournament
, Tournament
, Stage
)getActiveTournaments
in interface SportDataProvider
public List<SportEvent> getActiveTournaments(Locale locale)
Locale
)
(possible types: BasicTournament
, Tournament
, Stage
)getActiveTournaments
in interface SportDataProvider
locale
- - the Locale
in which to provide the datapublic List<SportEvent> getActiveTournaments(String sportName)
UofConfigurationImpl
)
(possible types: BasicTournament
, Tournament
, Stage
)getActiveTournaments
in interface SportDataProvider
sportName
- - the specific sport namepublic List<SportEvent> getActiveTournaments(String sportName, Locale locale)
Locale
)
(possible types: BasicTournament
, Tournament
, Stage
)getActiveTournaments
in interface SportDataProvider
sportName
- - the specific sport namelocale
- - the Locale
in which to provide the datapublic List<Competition> getCompetitionsFor(Date date)
Locale
s using the UofConfigurationImpl
)getCompetitionsFor
in interface SportDataProvider
date
- - the date for which to list all active competitionspublic List<Competition> getCompetitionsFor(Date date, Locale locale)
Locale
)getCompetitionsFor
in interface SportDataProvider
date
- - the date for which to list all active competitionslocale
- - the Locale
in which to provide the datapublic List<Competition> getLiveCompetitions()
Locale
s using the UofConfigurationImpl
)getLiveCompetitions
in interface SportDataProvider
public List<Competition> getLiveCompetitions(Locale locale)
Locale
)getLiveCompetitions
in interface SportDataProvider
locale
- - the Locale
in which to provide the datapublic SportEvent getSportEvent(Urn id)
Locale
s using the UofConfigurationImpl
)getSportEvent
in interface SportDataProvider
id
- - an Urn
identifier specifying the sport eventpublic SportEvent getSportEventForEventChange(Urn id)
public SportEvent getSportEvent(Urn id, Locale locale)
Locale
)getSportEvent
in interface SportDataProvider
id
- - an Urn
identifier specifying the requested long term eventlocale
- - the Locale
in which to provide the datapublic LongTermEvent getLongTermEvent(Urn id)
Locale
s using the UofConfigurationImpl
)getLongTermEvent
in interface SportDataProvider
id
- - an Urn
identifier specifying the requested long term eventpublic LongTermEvent getLongTermEvent(Urn id, Locale locale)
Locale
)getLongTermEvent
in interface SportDataProvider
id
- - 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 Locale
s using the UofConfigurationImpl
)getCompetition
in interface SportDataProvider
id
- - 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 SportDataProvider
id
- - 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 Locale
s using the UofConfigurationImpl
)getCompetitor
in interface SportDataProvider
id
- - a unique competitor Urn
identifierCompetitor
representing the competitor associated with the provided Urn
public Competitor getCompetitor(Urn id, Locale locale)
Competitor
representing the specified competitor
(the returned data is translated in the specified Locale
)getCompetitor
in interface SportDataProvider
id
- - a unique competitor Urn
identifierlocale
- - the Locale
in which to provide the dataCompetitor
representing the competitor associated with the provided Urn
public PlayerProfile getPlayerProfile(Urn id)
PlayerProfile
representing the specified competitor
(the returned data is translated in the configured Locale
s using the UofConfigurationImpl
)getPlayerProfile
in interface SportDataProvider
id
- - 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 SportDataProvider
id
- - a unique player Urn
identifierlocale
- - the Locale
in which to provide the dataPlayerProfile
representing the specified competitorpublic void purgeSportEventCacheData(Urn eventId)
purgeSportEventCacheData
in interface SportDataProvider
eventId
- the identifier of the cache item to purgepublic void purgeSportEventCacheData(Urn eventId, boolean includeStatusPurge)
purgeSportEventCacheData
in interface SportDataProvider
eventId
- 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 SportDataProvider
competitorId
- the identifier of the cache item to purgepublic void purgePlayerProfileCacheData(Urn playerId)
purgePlayerProfileCacheData
in interface SportDataProvider
playerId
- the identifier of the cache item to purgepublic List<FixtureChange> getFixtureChanges()
getFixtureChanges
in interface SportDataProvider
FixtureChange
public List<FixtureChange> getFixtureChanges(Locale locale)
getFixtureChanges
in interface SportDataProvider
locale
- - the Locale
in which to provide the dataFixtureChange
public List<FixtureChange> getFixtureChanges(Date after, Urn sportId)
getFixtureChanges
in interface SportDataProvider
after
- specifies the starting date and time for filteringsportId
- specifies the sport for which the fixtures should be returnedFixtureChange
public List<FixtureChange> getFixtureChanges(Date after, Urn sportId, Locale locale)
getFixtureChanges
in interface SportDataProvider
after
- 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 dataFixtureChange
public List<ResultChange> getResultChanges()
getResultChanges
in interface SportDataProvider
ResultChange
public List<ResultChange> getResultChanges(Locale locale)
getResultChanges
in interface SportDataProvider
locale
- - the Locale
in which to provide the dataResultChange
public List<ResultChange> getResultChanges(Date after, Urn sportId)
getResultChanges
in interface SportDataProvider
after
- specifies the starting date and time for filteringsportId
- specifies the sport for which the fixtures should be returnedResultChange
public List<ResultChange> getResultChanges(Date after, Urn sportId, Locale locale)
getResultChanges
in interface SportDataProvider
after
- 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 dataResultChange
public List<Competition> getListOfSportEvents(int startIndex, int limit)
getListOfSportEvents
in interface SportDataProvider
startIndex
- 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 SportDataProvider
startIndex
- 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 SportDataProvider
sportId
- - the specific sport idpublic List<SportEvent> getAvailableTournaments(Urn sportId, Locale locale)
Locale
)
(possible types: BasicTournament
, Tournament
, Stage
)getAvailableTournaments
in interface SportDataProvider
sportId
- - the specific sport idlocale
- - the Locale
in which to provide the datapublic Integer deleteSportEventsFromCache(Date before)
deleteSportEventsFromCache
in interface SportDataProvider
before
- the scheduled Date used to delete sport events from cachepublic List<ExportableCi> cacheExport(EnumSet<CacheType> cacheType)
cacheExport
in interface SportDataProvider
cacheType
- 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 SportDataProvider
items
- List of ExportableCi
containing the items to be importedpublic List<Lottery> getLotteries(Locale locale)
Locale
)getLotteries
in interface SportDataProvider
locale
- - 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 SportDataProvider
id
- 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 SportDataProvider
id
- 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.