org.jasig.portlet.weather.dao
Interface IWeatherDao
- All Known Implementing Classes:
- WeatherDaoImpl
public interface IWeatherDao
Weather data access interface. Implement this interface to retrieve weather
information from source.
- Version:
- $Id: IWeatherDao.java 46960 2009-10-21 17:22:23Z edalquist $
- Author:
- Dustin Schultz
getWeather
Weather getWeather(java.lang.String locationCode,
TemperatureUnit unit)
- Gets the weather from an implemented source.
- Parameters:
locationCode - A string value representing the location to retrieve weather
from.metric - A boolean value representing metric or not.
- Returns:
- A Weather object representing the current weather and an optional
forecast.
find
@Cacheable(modelId="weatherSearchCacheModel")
java.util.Collection<Location> find(java.lang.String location)
- Parameters:
location - A String representing a location to find
- Returns:
- A collection of locations representing the possible location or
an empty or null collection representing location not found.
Copyright © 2009 Jasig. All Rights Reserved.