org.jasig.portlet.weather.service
Interface IWeatherService
- All Known Implementing Classes:
- AbstractWeatherService, WeatherServiceImpl
public interface IWeatherService
Weather Service interface. Interfaced in case others want to implement the
service calls differently.
- Author:
- Dustin Schultz
getWeather
Weather getWeather(String locationCode,
TemperatureUnit unit)
find
Collection<Location> find(String location)
addWeatherLocation
SavedLocation addWeatherLocation(javax.portlet.PortletPreferences prefs,
String locationCode,
String location,
TemperatureUnit unit)
- Throws:
DuplicateLocationException - If a location with the specified code already exists
deleteWeatherLocation
void deleteWeatherLocation(javax.portlet.PortletPreferences prefs,
String locationCode)
getSavedLocations
List<SavedLocation> getSavedLocations(javax.portlet.PortletPreferences prefs)
saveLocations
void saveLocations(List<SavedLocation> savedLocations,
javax.portlet.PortletPreferences prefs)
getWeatherProviderName
String getWeatherProviderName()
getWeatherProviderLink
String getWeatherProviderLink()
Copyright © 2011 Jasig. All Rights Reserved.