Package org.bedework.timezones.common
Interface CachedData
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractCachedData,AbstractDb,FileCachedData,H2dbCachedData,ZipCachedData
Cached data affected by the source data.
- Author:
- douglm
-
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate from primary source if any.findAliases(String tzid) List<org.bedework.util.timezones.model.TimezoneType>findTimezones(String name) Given an alias return the tzid for that aliasgetAliasedCachedVtz(String name) Get an aliased cached VTIMEZONE specificationsgetAliasedXTimeZone(String tzid) Get an aliased timezone object from the server given the id.Get all cached VTIMEZONE specificationsgetCachedVtz(String name) Get cached VTIMEZONE specificationsgetStats()net.fortuna.ical4j.model.TimeZonegetTimeZone(String tzid) Get a timezone object from the server given the id.List<org.bedework.util.timezones.model.TimezoneType>getTimezones(String changedSince) List<org.bedework.util.timezones.model.TimezoneType>getTimezones(String[] tzids) getXTimeZone(String tzid) Get a timezone object from the server given the id.voidsetExpanded(ExpandedMapEntryKey key, ExpandedMapEntry tzs) voidstop()Stop any running threads.voidupdateData(String dtstamp, List<Differ.DiffListEntry> dles) Update the stored data using the given update list.
-
Method Details
-
stop
Stop any running threads.- Throws:
TzException- on fatal error
-
getSource
- Returns:
- String source information for data.
- Throws:
TzException- on fatal error
-
getStats
- Returns:
- stats for the module
- Throws:
TzException- on fatal error
-
checkData
Update from primary source if any.- Throws:
TzException- on fatal error
-
updateData
Update the stored data using the given update list. Note that the update may be transient if the data cache has no or an unchangable backing.- Parameters:
dtstamp- lastmod for changedles- diff list- Throws:
TzException- on fatal error
-
getDtstamp
- Returns:
- XML formatted UTC dateTime
- Throws:
TzException- on fatal error
-
fromAlias
Given an alias return the tzid for that alias- Parameters:
val- alias- Returns:
- aliased name or null
-
getAliasesStr
- Returns:
- String value of aliases file.
- Throws:
TzException- on fatal error
-
findAliases
- Parameters:
tzid- for which we want aliases- Returns:
- list of aliases or null
- Throws:
TzException- on fatal error
-
getNameList
- Returns:
- namelist or null
- Throws:
TzException- on fatal error
-
setExpanded
- Parameters:
key- to expanded maptzs- entries from map- Throws:
TzException- on fatal error
-
getExpanded
- Parameters:
key- to expanded map- Returns:
- expanded or null
- Throws:
TzException- on fatal error
-
getCachedVtz
Get cached VTIMEZONE specifications- Parameters:
name- tzid- Returns:
- cached spec or null.
- Throws:
TzException- on fatal error
-
getAllCachedVtzs
Get all cached VTIMEZONE specifications- Returns:
- cached specs or null.
- Throws:
TzException- on fatal error
-
getTimeZone
Get a timezone object from the server given the id.- Parameters:
tzid- the id- Returns:
- TimeZone with id or null
- Throws:
TzException- on fatal error
-
getXTimeZone
Get a timezone object from the server given the id.- Parameters:
tzid- the id- Returns:
- IcalendarType with id or null
- Throws:
TzException- on fatal error
-
getAliasedXTimeZone
Get an aliased timezone object from the server given the id.- Parameters:
tzid- the id- Returns:
- IcalendarType with id or null
- Throws:
TzException- on fatal error
-
getAliasedCachedVtz
Get an aliased cached VTIMEZONE specifications- Parameters:
name- tzid- Returns:
- cached spec or null.
- Throws:
TzException- on fatal error
-
getTimezones
List<org.bedework.util.timezones.model.TimezoneType> getTimezones(String[] tzids) throws TzException - Parameters:
tzids- - to fetch- Returns:
- list of summary info
- Throws:
TzException- on fatal error
-
getTimezones
List<org.bedework.util.timezones.model.TimezoneType> getTimezones(String changedSince) throws TzException - Parameters:
changedSince- - null or dtstamp value- Returns:
- list of summary info
- Throws:
TzException- on fatal error
-
findTimezones
- Parameters:
name- to be partially matched- Returns:
- list of matching summary info
- Throws:
TzException- on fatal error
-