org.jasig.portlet.weather.portlet
Class WeatherEditController
java.lang.Object
org.jasig.portlet.weather.portlet.WeatherEditController
@Controller
@RequestMapping(value="EDIT")
public class WeatherEditController
- extends Object
This class handles navigation from the edit form.
- Version:
- $Id: WeatherEditController.java 22379 2010-11-15 22:19:56Z edalquist $
- Author:
- Dustin Schultz
|
Method Summary |
void |
addCity(String location,
String locationCode,
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
deleteCity(String locationCode,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
org.springframework.web.portlet.ModelAndView |
renderEditView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
void |
saveCityOrder(String[] locationCodes,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
setAjaxPortletSupport(org.jasig.web.service.AjaxPortletSupport ajaxPortletSupport)
|
void |
setWeatherService(IWeatherService weatherService)
|
void |
updateCityUnits(String locationCode,
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeatherEditController
public WeatherEditController()
setWeatherService
public void setWeatherService(IWeatherService weatherService)
setAjaxPortletSupport
public void setAjaxPortletSupport(org.jasig.web.service.AjaxPortletSupport ajaxPortletSupport)
renderEditView
@RequestMapping
public org.springframework.web.portlet.ModelAndView renderEditView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws Exception
- Throws:
Exception
addCity
@RequestMapping(params="action=add")
public void addCity(@RequestParam(value="location",required=false)
String location,
@RequestParam(value="locationCode",required=false)
String locationCode,
@RequestParam(value="unit",required=false)
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
- Throws:
Exception
saveCityOrder
@RequestMapping(params="action=saveOrder")
public void saveCityOrder(@RequestParam(value="locationCodes")
String[] locationCodes,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
- Throws:
Exception
updateCityUnits
@RequestMapping(params="action=updateUnits")
public void updateCityUnits(@RequestParam(value="locationCode")
String locationCode,
@RequestParam(value="unit")
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
- Throws:
Exception
deleteCity
@RequestMapping(params="action=delete")
public void deleteCity(@RequestParam(value="locationCode")
String locationCode,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
- Throws:
Exception
Copyright © 2011 Jasig. All Rights Reserved.