@Controller @RequestMapping(value="EDIT") public class WeatherEditController extends Object
| Constructor and Description |
|---|
WeatherEditController() |
| Modifier and Type | Method and Description |
|---|---|
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 |
redirectToView(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse 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 |
setWeatherViewController(WeatherViewController that) |
void |
updateCityUnits(String locationCode,
TemperatureUnit unit,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
@Autowired public void setWeatherViewController(WeatherViewController that)
@Autowired public void setWeatherService(IWeatherService weatherService)
@Autowired public void setAjaxPortletSupport(org.jasig.web.service.AjaxPortletSupport ajaxPortletSupport)
@RequestMapping
public org.springframework.web.portlet.ModelAndView renderEditView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws Exception
Exception@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
Exception@RequestMapping(params="action=saveOrder")
public void saveCityOrder(@RequestParam(value="locationCodes")
String[] locationCodes,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
Exception@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
Exception@RequestMapping(params="action=delete")
public void deleteCity(@RequestParam(value="locationCode")
String locationCode,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
Exception@ResourceMapping(value="weatherFeed")
public org.springframework.web.portlet.ModelAndView redirectToView(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Copyright © 2015 Jasig. All Rights Reserved.