org.jasig.portlet.calendar.mvc.controller
Class EditUserHttpICalController

java.lang.Object
  extended by org.jasig.portlet.calendar.mvc.controller.EditUserHttpICalController

@Controller
@RequestMapping(value="EDIT")
@SessionAttributes(value="userHttpIcalCalendarForm")
public class EditUserHttpICalController
extends Object

EditCalendarDefinitionController allows a user to add or edit a user-defined calendar definition.

Author:
Jen Bourey

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
EditUserHttpICalController()
           
 
Method Summary
protected  UserHttpIcalCalendarForm getHttpCalendarForm(javax.portlet.PortletRequest request)
          Generate a new calendar form.
 void setCalendarStore(CalendarStore calendarStore)
           
 String showHttpCalendarForm(javax.portlet.RenderRequest request, org.springframework.ui.Model model)
          Show the Calendar editing form
 void updateHttpCalendar(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, UserHttpIcalCalendarForm form, org.springframework.validation.BindingResult result, org.springframework.web.bind.support.SessionStatus status)
          Update the calendar in the data store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

EditUserHttpICalController

public EditUserHttpICalController()
Method Detail

setCalendarStore

public void setCalendarStore(CalendarStore calendarStore)

showHttpCalendarForm

@RequestMapping(params="action=editUrl")
public String showHttpCalendarForm(javax.portlet.RenderRequest request,
                                                  org.springframework.ui.Model model)
Show the Calendar editing form

Parameters:
request -
model -
Returns:

updateHttpCalendar

@ActionMapping(params="action=editUrl")
public void updateHttpCalendar(javax.portlet.ActionRequest request,
                                             javax.portlet.ActionResponse response,
                                             @ModelAttribute(value="userHttpIcalCalendarForm")
                                             UserHttpIcalCalendarForm form,
                                             org.springframework.validation.BindingResult result,
                                             org.springframework.web.bind.support.SessionStatus status)
                        throws Exception
Update the calendar in the data store.

Parameters:
request -
response -
form -
result -
status -
Throws:
Exception

getHttpCalendarForm

protected UserHttpIcalCalendarForm getHttpCalendarForm(javax.portlet.PortletRequest request)
Generate a new calendar form.

Parameters:
request -
Returns:


Copyright © 2012 Jasig. All Rights Reserved.