org.jasig.portlet.weather.portlet
Class WeatherEditController
java.lang.Object
org.jasig.portlet.weather.portlet.WeatherEditController
@Controller
@RequestMapping(value="EDIT")
public class WeatherEditController
- extends java.lang.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(java.lang.String location,
java.lang.String locationCode,
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
deleteCity(java.lang.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(java.lang.String[] locationCodes,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
setAjaxPortletSupport(org.jasig.web.service.AjaxPortletSupport ajaxPortletSupport)
|
void |
setWeatherService(IWeatherService weatherService)
|
void |
updateCityUnits(java.lang.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 java.lang.Exception
- Throws:
java.lang.Exception
addCity
@RequestMapping(params="action=add")
public void addCity(@RequestParam(value="location",required=false)
java.lang.String location,
@RequestParam(value="locationCode",required=false)
java.lang.String locationCode,
@RequestParam(value="unit",required=false)
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveCityOrder
@RequestMapping(params="action=saveOrder")
public void saveCityOrder(@RequestParam(value="locationCodes")
java.lang.String[] locationCodes,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateCityUnits
@RequestMapping(params="action=updateUnits")
public void updateCityUnits(@RequestParam(value="locationCode")
java.lang.String locationCode,
@RequestParam(value="unit")
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteCity
@RequestMapping(params="action=delete")
public void deleteCity(@RequestParam(value="locationCode")
java.lang.String locationCode,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2010 Jasig. All Rights Reserved.