public interface IWeatherService
| Modifier and Type | Method and Description |
|---|---|
SavedLocation |
addWeatherLocation(javax.portlet.PortletPreferences prefs,
String locationCode,
String location,
TemperatureUnit unit)
Adds a weather location.
|
void |
deleteWeatherLocation(javax.portlet.PortletPreferences prefs,
String locationCode) |
Collection<Location> |
find(String location) |
List<SavedLocation> |
getSavedLocations(javax.portlet.PortletPreferences prefs) |
Weather |
getWeather(String locationCode,
TemperatureUnit unit) |
String |
getWeatherProviderLink() |
String |
getWeatherProviderName() |
void |
saveLocations(List<SavedLocation> savedLocations,
javax.portlet.PortletPreferences prefs) |
Weather getWeather(String locationCode, TemperatureUnit unit)
Collection<Location> find(String location)
SavedLocation addWeatherLocation(javax.portlet.PortletPreferences prefs, String locationCode, String location, TemperatureUnit unit)
prefs - portlet preferenceslocationCode - location codelocation - locationunit - temperatur unitDuplicateLocationException - If a location with the specified code already existsvoid deleteWeatherLocation(javax.portlet.PortletPreferences prefs,
String locationCode)
List<SavedLocation> getSavedLocations(javax.portlet.PortletPreferences prefs)
void saveLocations(List<SavedLocation> savedLocations, javax.portlet.PortletPreferences prefs)
String getWeatherProviderName()
String getWeatherProviderLink()
Copyright © 2015 Jasig. All Rights Reserved.