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(java.lang.String locationCode,
TemperatureUnit unit)
find
java.util.Collection<Location> find(java.lang.String location)
addWeatherLocation
SavedLocation addWeatherLocation(javax.portlet.PortletPreferences prefs,
java.lang.String locationCode,
java.lang.String location,
TemperatureUnit unit)
- Throws:
DuplicateLocationException - If a location with the specified code already exists
deleteWeatherLocation
void deleteWeatherLocation(javax.portlet.PortletPreferences prefs,
java.lang.String locationCode)
getSavedLocations
java.util.List<SavedLocation> getSavedLocations(javax.portlet.PortletPreferences prefs)
saveLocations
void saveLocations(java.util.List<SavedLocation> savedLocations,
javax.portlet.PortletPreferences prefs)
Copyright © 2009 Jasig. All Rights Reserved.