org.jasig.portlet.weather.service
Class AbstractWeatherService

java.lang.Object
  extended by org.jasig.portlet.weather.service.AbstractWeatherService
All Implemented Interfaces:
IWeatherService
Direct Known Subclasses:
WeatherServiceImpl

public abstract class AbstractWeatherService
extends java.lang.Object
implements IWeatherService

Provides partial implementation of service methods. Delegates remaining methods to be implemented by subclass.

Version:
$Id$
Author:
Dustin Schultz

Constructor Summary
AbstractWeatherService()
           
 
Method Summary
 SavedLocation addWeatherLocation(javax.portlet.PortletPreferences prefs, java.lang.String locationCode, java.lang.String location, TemperatureUnit unit)
           
 void deleteWeatherLocation(javax.portlet.PortletPreferences prefs, java.lang.String locationCode)
           
 java.util.List<SavedLocation> getSavedLocations(javax.portlet.PortletPreferences prefs)
           
 void saveLocations(java.util.List<SavedLocation> savedLocations, javax.portlet.PortletPreferences prefs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jasig.portlet.weather.service.IWeatherService
find, getWeather, getWeatherProviderLink, getWeatherProviderName
 

Constructor Detail

AbstractWeatherService

public AbstractWeatherService()
Method Detail

getSavedLocations

public java.util.List<SavedLocation> getSavedLocations(javax.portlet.PortletPreferences prefs)
Specified by:
getSavedLocations in interface IWeatherService

saveLocations

public void saveLocations(java.util.List<SavedLocation> savedLocations,
                          javax.portlet.PortletPreferences prefs)
Specified by:
saveLocations in interface IWeatherService

addWeatherLocation

public SavedLocation addWeatherLocation(javax.portlet.PortletPreferences prefs,
                                        java.lang.String locationCode,
                                        java.lang.String location,
                                        TemperatureUnit unit)
Specified by:
addWeatherLocation in interface IWeatherService

deleteWeatherLocation

public void deleteWeatherLocation(javax.portlet.PortletPreferences prefs,
                                  java.lang.String locationCode)
Specified by:
deleteWeatherLocation in interface IWeatherService


Copyright © 2010 Jasig. All Rights Reserved.